This patch adds two scalars:
* `browser.engagement.tab_unload_count`: Incremented by 1 when TabUnloader
successfully unloaded a tab.
* `browser.engagement.tab_reload_count`: Incremented by 1 when an unloaded
tab was reloaded.
The value of `browser.engagement.tab_reload_count` will be the same as
the count of the histogram `TAB_UNLOAD_TO_RELOAD` data, but we still need
this scalar to compare it to `browser.engagement.tab_unload_count`, which
tells us the ratio of reload-after-unload tabs to all unloaded tabs.
Depends on D120019
Differential Revision: https://phabricator.services.mozilla.com/D120020
The new histogram `TAB_UNLOAD_TO_RELOAD` records how long a tab had been
unloaded until it was reload by a user. With this data, we can evaluate
the selection logic to choose a tab to unload. For example, if many of
unloaded tabs are reloaded within 30 seconds or so, we unload a wrong tab.
Differential Revision: https://phabricator.services.mozilla.com/D120019
This patch also addresses bug 1645293. It essentially reverts parts 1 and 3 of bug 1616700 for users with searching disabled. Since we had to introduce branching behaviour, there are some new constructs like a shouldHandOffToSearchMode multi-pref in UrlbarPrefs.
Differential Revision: https://phabricator.services.mozilla.com/D118606
We need to be displayed when cloning into a same-process frame, so that
the preview code hooks up to the view tree correctly and the frame is
correctly painted.
This works for out-of-process frames, but mostly by chance.
Fortify the printPreview() API code to gracefully handle that case, and
remove the sessionrestore special-case which is not really special.
Differential Revision: https://phabricator.services.mozilla.com/D119980
These styles were copied from the popupnotification's `.panel-footer > button`
CSS, with a couple of adjustments which have comments here, and skipping over
the disabled styles because this button is never disabled.
Differential Revision: https://phabricator.services.mozilla.com/D119338
This patch draws a 1px black line around the Urlbar in macOS HCM, which resembles other high contrast macOS apps. This patch only supports Light HCM mode. Since we apply the Firefox Dark lwttheme when in Dark mode, and we do not support lightweight themes in high contrast mode, significantly more work is required to implement basic support for dark HCM on Mac.
Differential Revision: https://phabricator.services.mozilla.com/D116406
It seems like this test occasionally goes over our time budget not because it
falls off of some cliff and hangs somewhere for a chunk of time, but just
because it's big. Accordingly, this patch just splits it up.
Differential Revision: https://phabricator.services.mozilla.com/D120017
The functions were only called from RDM ui `updateTouchSimulation`, before
the call to updateConfiguration for touch simulation, based on the touch simulation value.
This means we can directly set the proper flag on the docShell in
BrowsingContextTargetActor#updateTargetConfiguration before handling touch simulation.
The devtools.responsive.metaViewport.enabled pref is removed, as it was set to
true by default, and wasn't exposed in any UI.
Differential Revision: https://phabricator.services.mozilla.com/D120456
If one closes the last tab with the session restore enabled, it will re-open after restart.
Fix that by closing completely the tabs before the stop of the browser.
Differential Revision: https://phabricator.services.mozilla.com/D118270
This patch also addresses bug 1645293. It essentially reverts parts 1 and 3 of bug 1616700 for users with searching disabled. Since we had to introduce branching behaviour, there are some new constructs like a shouldHandOffToSearchMode multi-pref in UrlbarPrefs.
Differential Revision: https://phabricator.services.mozilla.com/D118606