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•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/19de2822bc0c support extension matching in webAccessibleResources r=zombie,smaug
Comment 3•3 years ago
|
||
bugherder |
Comment 4•2 years ago
|
||
Backed out changeset 19de2822bc0c (bug 1711168) for causing Bug 1719063.
https://hg.mozilla.org/integration/autoland/rev/8fc06b7667d8102c267b236488da6bbc39ef962e
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 5•2 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•2 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/c2757388a512ccf02cf172dffb9da01203ce3099
Assignee | ||
Comment 7•2 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•2 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•2 years ago
|
||
Found issues with the patch on try, it's being worked on.
Assignee | ||
Comment 10•2 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•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 11•2 years ago
|
||
Updated•2 years ago
|
Updated•1 year ago
|
Assignee | ||
Comment 12•1 year ago
|
||
Updated•1 year ago
|
Comment 13•1 year ago
|
||
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3d061ce03de7 support extension matching in webAccessibleResources r=zombie,smaug,rpl https://hg.mozilla.org/integration/autoland/rev/902385a7ce60 allow extension pages to be loaded as top level tabs by other extensions r=rpl
Comment 14•1 year 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•1 year ago
|
Comment hidden (obsolete) |
Updated•1 year ago
|
Assignee | ||
Comment 16•1 year 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•1 year 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•1 year ago
|
||
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4cfd51c07734 support extension matching in webAccessibleResources r=zombie,smaug,rpl https://hg.mozilla.org/integration/autoland/rev/d0da1be14163 allow extension pages to be loaded as top level tabs by other extensions r=rpl,geckoview-reviewers,calu
Comment 19•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4cfd51c07734
https://hg.mozilla.org/mozilla-central/rev/d0da1be14163
Updated•1 year ago
|
Comment 20•1 year 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•1 year ago
|
||
Description
•