Clean up xpi content handling
Categories
(Toolkit :: Add-ons Manager, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
Details
(Whiteboard: [addons-jira])
Attachments
(3 external files)
xpi content handling is more complicated than it needs to be, mainly for historical reasons.
Although the InstallTrigger implementation was removed (bug 1776426), there is still some dead code. We can also put the handler in the parent and remove _handleUriInChrome (originally introduced in bug 1175267) and perhaps also this special exception for null principals (note: relevant bug for unit test is at bug 2014500).
The code surrounding that null principal check also includes several aBrowser && checks. These were introduced in the first patch of bug 1599580, and used in the last patch of it. But that implementation has since changed (by bug 1866906), so these null checks are no longer needed.
| Assignee | ||
Comment 1•6 months ago
|
||
Drop dead code and move remaining logic to parent.
| Assignee | ||
Comment 2•6 months ago
|
||
browser_localfile.js already covers the behavior, but one scenario was
missing, so I added browser_localfile_navigation.js for completeness.
| Assignee | ||
Comment 3•6 months ago
|
||
Make the aBrowser option required again, undoing bug 1599580.
The test_installOrigins.js was the only consumer, modify test to
use real browsers with the given principal.
Also remove the isNullPrincipal check and comment, as we handle XPI
loads in the parent.
| Assignee | ||
Updated•6 months ago
|
Comment 5•5 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fd38a35c0d45
https://hg.mozilla.org/mozilla-central/rev/bfa74c831f3a
https://hg.mozilla.org/mozilla-central/rev/c28de820218c
Updated•5 months ago
|
Description
•