gecko-dev/browser
Drew Willcoxon 8cf8a6212d Bug 1646086 - Improve UrlbarProviderSearchTips's impact on ts_paint. r=mak
ts_paint depends on the first MozAfterPaint in the content window, not in the
browser as I had thought. After MozAfterPaint, it pings the parent process and
waits for a response (see `TalosPowers.loadPromise`), and then it ends. It will
wait up to 500ms for the response before timing out. Source:
https://dxr.mozilla.org/mozilla-central/source/testing/talos/talos/startup_test/tspaint_test.html

At first I modified UrlbarProviderSearchTips to wait on
`browser-delayed-startup-finished`, but the jsm kept appearing in ts_paint
profiles, and that's how I found out the above. So that's not sufficient.

There's already a promise in browser.js for waiting on the first paint in the
first content window, but it's "private." I added a public getter for it and
changed the name so it's clearer that it's related to the first content window,
not the browser window.

I also added a 500ms timeout just like the worst case in ts_paint.

Both checks (paint and the timeout) are done for a particular browser window
only the first time UrlbarProviderSearchTips sees it.

Finally, UrlbarProviderSearchTips can avoid importing BrowserWindowTracker
during startup by having browser.js pass the window to its `onLocationChange`. I
saw the BrowserWindowTracker.jsm import in some profiles while working on this.

With these changes, UrlbarProviderSearchTips no longer appears in ts_paint
profiles when I run it locally -- except when it is imported by
UrlbarProvidersManager, which ultimately happens due to setting the placeholder
text in the urlbar input. But even that doesn't appear in every profile.

I've also included the reordering of checks from a previous version of this
patch. That's still worth doing in general even if it's no longer relevant to
ts_paint.

Differential Revision: https://phabricator.services.mozilla.com/D80799
2020-06-29 21:28:07 +00:00
..
actors Bug 1646086 - Improve UrlbarProviderSearchTips's impact on ts_paint. r=mak 2020-06-29 21:28:07 +00:00
app Bug 1648223 - Enable the Experimental Preferences by default. r=mstriemer,preferences-reviewers,ntim 2020-06-26 18:23:24 +00:00
base Bug 1646086 - Improve UrlbarProviderSearchTips's impact on ts_paint. r=mak 2020-06-29 21:28:07 +00:00
branding Bug 1639672 - Added svg about-logo icons r=pdahiya 2020-06-11 04:11:18 +00:00
components Bug 1646086 - Improve UrlbarProviderSearchTips's impact on ts_paint. r=mak 2020-06-29 21:28:07 +00:00
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-06-29 15:15:46 +00:00
docs Bug 1620358: Gather telemetry on toolbar state. r=Gijs,zombie 2020-06-16 21:06:15 +00:00
extensions Bug 1648417 - Fix the doorhanger icon for updating an autofilled form r=MattN 2020-06-29 16:38:39 +00:00
fonts Bug 1644346 - Update bundled Twemoji Mozilla font to v0.5.1 to support new emojis. r=lsalzman 2020-06-09 14:45:40 +00:00
fxr Bug 1644863 - fix trailing whitespace in browser/toolkit/devtools/mobile frontend code files, r=mossop,geckoview-reviewers,agi 2020-06-17 22:40:53 +00:00
installer Bug 1598111 - Document install pings more completely. r=mhowell 2020-06-25 00:53:33 +00:00
locales Bug 1646178 - Use similar markup as the other preference categories to show a header within the search results. r=mstriemer,fluent-reviewers,preferences-reviewers 2020-06-26 06:03:04 +00:00
modules Bug 1648251: Running browser_UsageTelemetry_interaction.js a second time fails due to automatic opening of the extension's sidebar. r=Gijs 2020-06-24 22:47:12 +00:00
themes Bug 1648961 - Position the warning icon for the experiments section in the right place for RTL r=jaws,preferences-reviewers 2020-06-29 14:54:03 +00:00
tools/mozscreenshots Bug 1648175, remove history and library panel views from the main panel and place in template r=Gijs 2020-06-29 15:41:43 +00:00
.eslintrc.js
app.mozbuild
build.mk Bug 1641184, use only the merge dir for repacks, r=nalexander 2020-05-27 17:04:06 +00:00
confvars.sh
defs.mk
l10n-registry.manifest
LICENSE
Makefile.in
moz.build Bug 1643811 - [ci] Add a SCHEDULES rule to prevent 'android' builds and tests on pushes that exclusively modify files under /browser, r=gbrown,Gijs 2020-06-09 15:54:10 +00:00
moz.configure