Bug 248155
| Summary: | browser.runtime.getURL() has some edge cases that should be failures or return different results | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Timothy Hatcher <timothy> |
| Component: | WebKit Extensions | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | carlosj-webkit-bugzilla, timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Timothy Hatcher
Non-string types:
browser.runtime.getURL(42); // ${baseURL}/42
browser.runtime.getURL(/test/); // ${baseURL}/test/
Double-slashes truncate the host:
browser.runtime.getURL('//'); // test-extension://
browser.runtime.getURL('//example'); // test-extension://example
browser.runtime.getURL('///'); // test-extension:///
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/102694661>