Make addTab default skipLoad to createLazyBrowser
Categories
(Firefox :: Tabbed Browser, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: Oriol, Assigned: Oriol)
References
Details
Attachments
(1 file)
In https://phabricator.services.mozilla.com/D17084 I added support for using addTab
to add a lazy tab. However, using createLazyBrowser: true
is not enough, e.g. this just produces a blank tab:
gBrowser.addTrustedTab("http://example.com", {createLazyBrowser: true})
As a workaround, in adoptTab
I used allowInheritPrincipal: true
, since this works well:
gBrowser.addTrustedTab("http://example.com", {createLazyBrowser: true, allowInheritPrincipal: true})
https://phabricator.services.mozilla.com/D18742 tried to change that, since
allowInheritPrincipal
has other implications that we should limit as much as possible to avoid unpleasant surprises from a security perspective
However, that patch was backed out because of unrelated reasons.
Using skipLoad: true
instead of allowInheritPrincipal: true
seems to work well too:
gBrowser.addTrustedTab("http://example.com", {createLazyBrowser: true, skipLoad: true})
So I think that skipLoad
should just default to createLazyBrowser
.
Assignee | ||
Comment 1•2 years ago
|
||
And make callers rely on that instead of allowInheritPrincipal when
creating lazy tabs.
Comment 3•2 years ago
|
||
Backed out for causing bc failures in browser/components/customizableui/test/browser_open_in_lazy_tab.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/708c665f54920af5bcf4aea2426e1f06a3b4bd9b
TEST-UNEXPECTED-FAIL | browser/components/customizableui/test/browser_open_in_lazy_tab.js | Test timed out -
Comment 5•2 years ago
|
||
bugherder |
Assignee | ||
Updated•2 years ago
|
Description
•