Expand test coverage of invalid URLs in tabs.create/update / windows.create
Categories
(WebExtensions :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: robwu, Unassigned)
References
Details
For completeness, we should verify that invalid URLs are consistently rejected across the extension APIs that open new tabs:
- tabs.create
- tabs.update
- (none, despite the message stating
tabs.update
in thetabs.create
test linked above)
- (none, despite the message stating
- windows.create
It would also be nice to have tests like these in toolkit/, so that they can run on Android too. E.g. by creating a new test file that lists a bunch of invalid URLs and then calling tabs.create / tabs.update / windows.create (after doing feature detection to verify that these methods exist and/or adding conditions to skip unsupported APIs on specific platforms) and expecting a rejection. That could also be expanded to other extension APIs that accept URLs.
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Reporter | ||
Comment 1•11 months ago
|
||
The tabs.create API already has unit tests for file:-URLs, the windows.create API doesn't have tests either. We should ensure that all these APIs test file:-URLs (e.g. to verify the intended behavior that was questioned in bug 1864001).
Description
•