support extensions in web_accessible_resources
Categories
(WebExtensions :: General, enhancement, P2)
Tracking
(firefox105 fixed)
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: mixedpuppy, Assigned: mixedpuppy)
References
(Depends on 2 open bugs, Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete, Whiteboard: [mv3-m2] )
Attachments
(2 files, 2 obsolete files)
Add support for extension id matching in WAC, and require either matches or extensions, not both.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
bugherder |
Comment 4•4 years ago
|
||
Backed out changeset 19de2822bc0c (bug 1711168) for causing Bug 1719063.
https://hg.mozilla.org/integration/autoland/rev/8fc06b7667d8102c267b236488da6bbc39ef962e
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
enforcing a restriction on extensions opening other extension resources breaks newtab, homepage, probably protocol handlers. In order to enforce such a restriction, we need to flag these "ui resources" somehow, perhaps like we do for some about pages using nsIAboutModule::MAKE_LINKABLE or nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT. Another option would be to set nsIProtocolHandler::URI_LOADABLE_BY_ANYONE in the extension protocol handler.
Comment 6•4 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/c2757388a512ccf02cf172dffb9da01203ce3099
Assignee | ||
Comment 7•4 years ago
|
||
Another thought is to bypass the extension match restriction if BrowsingContext->isTop. That (I think) should allow something like a tab manager to open tabs to other extensions, but require matching for embedding iframes/etc.
Comment 8•4 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:mixedpuppy, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 9•4 years ago
|
||
Found issues with the patch on try, it's being worked on.
Assignee | ||
Comment 10•4 years ago
|
||
A special exception is made to allow certain resource to be accessed by any extenison.
This allows e.g. a tab manager to open a newtab that is provided by a different extension.
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 12•3 years ago
|
||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
Comment 14•3 years ago
|
||
Backed out 3 for causing failures at test_ext_web_accessible_resources.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/afb50a831d7ac9e372bc71f0aeb796e479151366
Failure log:
Assignee | ||
Updated•3 years ago
|
Comment hidden (obsolete) |
Updated•3 years ago
|
Assignee | ||
Comment 16•3 years ago
|
||
Alexandru,
I'm trying to understand what the perf improvements are. From what I can see, the values for the commit in comment 13 are all in line with previous values. The backout seems to be improving overal perf, but that doesn't make sense. The google-docs value is an clear example. Backout and report in comment 15 says a 9% improvement. But the prior entry is my patch, which is 760ms, which is what almost all prior tests have.
I'm not sure how I'm supposed to think about this.
Assignee | ||
Comment 17•3 years ago
|
||
I've looked over the perfherder graphs and our patches with another team member. We don't see how the changes have any relation or affect and given the patch that landed had the same timing as prior patches, we don't think the "improvement" is related to the patch and is otherwise a coincidence. I'm going to reland and see how this looks after.
Comment 18•3 years ago
|
||
Comment 19•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4cfd51c07734
https://hg.mozilla.org/mozilla-central/rev/d0da1be14163
Updated•3 years ago
|
Comment 20•3 years ago
|
||
Considering the backwards-breaking change in this bug, we should add a note to the changelog at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/105:
Extensions resources can no longer be loaded by other extensions by default, unless the extension resource is listed in web_accessible_resources.
Comment 21•2 years ago
|
||
Updated•2 years ago
|
Description
•