Closed Bug 1808615 Opened 2 years ago Closed 2 years ago

Make addTab default skipLoad to createLazyBrowser

Categories

(Firefox :: Tabbed Browser, task)

task

Tracking

()

RESOLVED FIXED
110 Branch
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.

And make callers rely on that instead of allowInheritPrincipal when
creating lazy tabs.

Blocks: 1488053
Pushed by oriol-bugzilla@hotmail.com: https://hg.mozilla.org/integration/autoland/rev/2b67bd0dd255 Make addTab default skipLoad to createLazyBrowser. r=Gijs,extension-reviewers,nika,robwu

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

Push with failures

Failure log

TEST-UNEXPECTED-FAIL | browser/components/customizableui/test/browser_open_in_lazy_tab.js | Test timed out -
Flags: needinfo?(oriol-bugzilla)
Pushed by oriol-bugzilla@hotmail.com: https://hg.mozilla.org/integration/autoland/rev/af3799d0f7a5 Make addTab default skipLoad to createLazyBrowser. r=Gijs,extension-reviewers,nika,robwu
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Flags: needinfo?(oriol-bugzilla)
Blocks: 1763272
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: