Closed Bug 1735500 Opened 4 years ago Closed 4 years ago

When we do not have the initial URI a page is loading, default the browser to the PRIVILEGEDABOUT_REMOTE_TYPE

Categories

(Firefox :: Tabbed Browser, task)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In looking at landing bug 1649599, we saw some performance regressions in the startup_about_home_* tests.

Investigation showed that due to the performance improvements for sessionstore, it was being initialised earlier. As a result, gBrowserInit.uriToLoadPromise would return a promise rather than a URI, which means this piece of code is triggered. The result is that it causes the first browser to be loaded as a web content process, and we then have to later change to the privileged about process.

Changing that to load the browser as PRIVILEGEDABOUT_REMOTE_TYPE does not appear to hurt session restore performance (the improvements remain), but also fixes the startup_about_home_* regressions. This makes sense as it is restoring the status-quo.

Whilst we could await on the promise, that would mean that gBrowser.selectedBrowser might not always exist - which would potentially break a lot of code.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f569a8aacf0 When we do not have the initial URI the first browser in a window is loading, default the browser to the PRIVILEGEDABOUT_REMOTE_TYPE. r=Gijs

We've fixed a Marionette test issue, but we can't reproduce the main failure on try server:

https://treeherder.mozilla.org/jobs?repo=try&revision=3d33640229b5066b107d53749e343212c06c758a

We're going to try landing again and see what happens. It could have been a conflict with another patch that had landed or something like that.

Flags: needinfo?(standard8)
Depends on: 1736061
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/16d787b72947 When we do not have the initial URI the first browser in a window is loading, default the browser to the PRIVILEGEDABOUT_REMOTE_TYPE. r=Gijs
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch

== Change summary for alert #31952 (as of Tue, 19 Oct 2021 06:06:21 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
7% JS windows10-64-2004-shippable-qr tp6 261,403,577.71 -> 242,255,369.97
6% Explicit Memory windows10-64-2004-shippable-qr tp6 672,551,393.30 -> 631,045,730.28
6% Resident Memory windows10-64-2004-shippable-qr tp6 897,387,752.06 -> 847,368,710.55
5% Resident Memory windows10-64-2004-shippable-qr tp6 903,676,210.53 -> 856,928,896.44

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=31952

Regressions: 1742819
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: