Граф коммитов

3723 Коммитов

Автор SHA1 Сообщение Дата
Toshihito Kikuchi ee072f14eb Bug 1701368 - Part6: Tab unloading precedes memory pressure events. r=gsvelto
This is the main part to address bug 1701368.

Before this patch, `nsAvailableMemoryWatcher` directly broadcasted a memory-pressure
event when we enter into a low-memory situation and `TabUnloader` unloaded a tab in
response to the memory-pressure message.  We want to decouple `TabUnloader` from
memory-pressure listeners because unloading a tab may solve a low-memory situation
alone.

With this patch, if `nsAvailableMemoryWatcher` detects a low-memory situation,
it invokes `TabUnloader` synchronously via an XPCOM interface.  If `TabUnloader`
unloads a tab, we don't do any further action.  If there is no discardable tab,
`TabUnloader` notifies back `nsAvailableMemoryWatcher` via another XPCOM interface,
so that `nsAvailableMemoryWatcher` can notify of a memory-pressure event.

Differential Revision: https://phabricator.services.mozilla.com/D117673
2021-07-06 22:30:59 +00:00
Toshihito Kikuchi 02f0a6ddd5 Bug 1701368 - Part5: Convert nsAvailableMemoryWatcher to an XPCOM object. r=gsvelto
This patch introduces an XPCOM object which is represented by the single instance of
`nsAvailableMemoryWatcherBase` so that `nsAvailableMemoryWatcher` can synchronously
access `TabUnloader`.

We currently implement a watcher class for Windows only.  For other platforms, what
we need to do is to define a class inherinting `nsAvailableMemoryWatcherBase` and
a simple factory method `CreateAvailableMemoryWatcher()` returning an instance of
that class.

Differential Revision: https://phabricator.services.mozilla.com/D118393
2021-07-06 22:30:59 +00:00
Paul Zuehlcke 03054d7ef0 Bug 1711869 - Part 1: Refactor SiteDataManager to key sites by base domain. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D116859
2021-07-06 21:10:58 +00:00
Butkovits Atila 785829138d Backed out 7 changesets (bug 1701368) for causing build bustages on TestMemoryPressure.cpp. CLOSED TREE
Backed out changeset 3be9f410b666 (bug 1701368)
Backed out changeset 907317341862 (bug 1701368)
Backed out changeset 38fb1e114a53 (bug 1701368)
Backed out changeset f3a475931a13 (bug 1701368)
Backed out changeset 98046adfc310 (bug 1701368)
Backed out changeset d773413513cf (bug 1701368)
Backed out changeset feca7daa9c96 (bug 1701368)
2021-07-07 00:21:34 +03:00
Toshihito Kikuchi 37bb76635c Bug 1701368 - Part6: Tab unloading precedes memory pressure events. r=gsvelto
This is the main part to address bug 1701368.

Before this patch, `nsAvailableMemoryWatcher` directly broadcasted a memory-pressure
event when we enter into a low-memory situation and `TabUnloader` unloaded a tab in
response to the memory-pressure message.  We want to decouple `TabUnloader` from
memory-pressure listeners because unloading a tab may solve a low-memory situation
alone.

With this patch, if `nsAvailableMemoryWatcher` detects a low-memory situation,
it invokes `TabUnloader` synchronously via an XPCOM interface.  If `TabUnloader`
unloads a tab, we don't do any further action.  If there is no discardable tab,
`TabUnloader` notifies back `nsAvailableMemoryWatcher` via another XPCOM interface,
so that `nsAvailableMemoryWatcher` can notify of a memory-pressure event.

Differential Revision: https://phabricator.services.mozilla.com/D117673
2021-07-06 18:59:10 +00:00
Toshihito Kikuchi 42a8a18b8f Bug 1701368 - Part5: Convert nsAvailableMemoryWatcher to an XPCOM object. r=gsvelto
This patch introduces an XPCOM object which is represented by the single instance of
`nsAvailableMemoryWatcherBase` so that `nsAvailableMemoryWatcher` can synchronously
access `TabUnloader`.

We currently implement a watcher class for Windows only.  For other platforms, what
we need to do is to define a class inherinting `nsAvailableMemoryWatcherBase` and
a simple factory method `CreateAvailableMemoryWatcher()` returning an instance of
that class.

Differential Revision: https://phabricator.services.mozilla.com/D118393
2021-07-06 18:59:09 +00:00
Dorel Luca 57801f8ba0 Backed out changeset 5ca5387a57ce (bug 1712750) on Dev's request. CLOSED TREE 2021-07-06 19:26:21 +03:00
Paul Zuehlcke 80b7bda1cd Bug 1713578 - Removed leftover PermissionStateChange events. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D118850
2021-07-05 10:10:23 +00:00
Mike Conley 56e7baaf05 Bug 1712750 - Open sanitize dialog using the window modal dialog box when possible. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D117567
2021-06-22 20:43:41 +00:00
Andrew Osmond 98f810e4e4 Bug 1715515 - Part 1. Switch Windows 32 and mingwclang tests to WebRender. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117287
2021-06-21 12:46:32 +00:00
Brindusan Cristian 97b71ee13f Backed out 2 changesets (bug 1715515) for breaking the decision task.
CLOSED TREE

Backed out changeset 2e674ac39f8f (bug 1715515)
Backed out changeset 39580a1b4188 (bug 1715515)
2021-06-18 03:20:07 +03:00
Andrew Osmond be550ad9c9 Bug 1715515 - Part 1. Switch Windows 32 and mingwclang tests to WebRender. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117287
2021-06-17 23:53:39 +00:00
Alexandru Michis b07cc86a4a Backed out changeset dc5c5ba21183 (bug 1712750) for causing bc failures in browser_interventions.js
CLOSED TREE
2021-06-18 00:47:32 +03:00
Mike Conley d90592e793 Bug 1712750 - Open sanitize dialog using the window modal dialog box when possible. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D117567
2021-06-17 15:47:16 +00:00
Ed Lee 9930a18c9b Bug 1633883 - TelemetryTestUtils.assertScalar assumes Number (so behaves odd for boolean, strings) r=chutten
Split assertScalar to assertScalarUnset to allow the former to plain check the value including strings, false and 0.

Differential Revision: https://phabricator.services.mozilla.com/D117457
2021-06-11 21:06:26 +00:00
Michelle Goossens 1895a736f3 Bug 1714352 - Remove browser.proton.doorhangers.enabled pref r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D117091
2021-06-08 00:41:43 +00:00
Julian Descottes 5f47d42219 Bug 1714348 - [marionette] Update chrome imports for Marionette modules to /remote/content/marionette r=webdriver-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116732
2021-06-07 10:08:24 +00:00
Gijs Kruitbosch a9281aec97 Bug 1711519 - remove trivial gProton and gProtonDoorhangers checks, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D116630
2021-06-03 11:41:54 +00:00
Gijs Kruitbosch cd50b177a7 Bug 1711523 - remove private proton tracking flags in frontend modules, r=mak,emalysz,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D116009
2021-05-28 19:33:38 +00:00
Paul Zuehlcke 550c3ecf40 Bug 1705029 - Added CookieCleaner deleteByBaseDomain. r=johannh,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113496
2021-05-26 13:49:37 +00:00
Gijs Kruitbosch cb95fdbd77 Bug 1711004 - get telemetry for tab-related items in the toolbar context menu, r=mossop
Rather than adding a new scalar I'm just filing the toolbar context menu's tab-related items
under the tab context menu. The use of other items - customization options like
showing/hiding toolbars and adding/removing buttons - are already covered by other event
telemetry, and this will help group similar items together.

Differential Revision: https://phabricator.services.mozilla.com/D115640
2021-05-25 10:42:22 +00:00
Bryce Seager van Dyk 16f81a9237 Bug 1706164 - Share screen and window sharing status from webrtcUI via sharedData. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D115416
2021-05-24 16:50:19 +00:00
Michelle Goossens f5a803b567 Bug 1711500 - Remove checks for gProton and gProtonDoorhangers smart pref getters from tests r=Gijs,robwu
Differential Revision: https://phabricator.services.mozilla.com/D115748
2021-05-24 13:46:39 +00:00
Sandor Molnar 2ef849fd1c Backed out 4 changesets (bug 1706164) for causing build bustages in media/eme/MediaKeys. CLOSED TREE
Backed out changeset 5d3f67175482 (bug 1706164)
Backed out changeset 4630540c3717 (bug 1706164)
Backed out changeset 4a2463270858 (bug 1706164)
Backed out changeset a2b896ddc631 (bug 1706164)
2021-05-21 23:21:58 +03:00
Bryce Seager van Dyk 5e5e77b651 Bug 1706164 - Share screen and window sharing status from webrtcUI via sharedData. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D115416
2021-05-21 19:59:53 +00:00
Michelle Goossens 6af282754f Bug 1711498 - Remove checks for protonAppMenuEnabled or protonToolbarEnabled smart pref getters from tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D115651
2021-05-21 15:51:13 +00:00
Michelle Goossens 16dd2093e1 Bug 1711497 - Remove browser.proton.enabled checks/setters from tests r=Gijs,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D115539
2021-05-20 13:03:51 +00:00
Emilio Cobos Álvarez 3c48e4f525 Bug 1710643 - Use an slightly higher threshold to consider a color dark. r=Gijs
Luminance goes from 0 to 255, so using 127 makes sense, and allows all
disabled titlebar colors that I found in various GTK themes to still be
considered dark enough (for those, 110 was too low).

Differential Revision: https://phabricator.services.mozilla.com/D114876
2021-05-12 22:52:28 +00:00
Toshihito Kikuchi b62b42bf9a Bug 1709113 - Add null check in DefaultTabUnloaderMethods.iterateProcesses. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D114118
2021-05-03 15:42:25 +00:00
David Parks e37ad4b27a Bug 1698959: Remove HangData union and SLOW_SCRIPT enum value r=dthayer,geckoview-reviewers,agi
HangData is the only member left in the union and SLOW_SCRIPT is the only member left in the enum.
This patch also migrates the one remaining (invalid) use of PLUGIN_HANG in testing to work as a SLOW_SCRIPT instead.

Differential Revision: https://phabricator.services.mozilla.com/D113885
2021-05-01 01:12:46 +00:00
David Parks 27e7bb9383 Bug 1698959: Clean up dead terminatePlugin references r=dthayer
PLUGIN_HANG events are no longer sent so terminatePlugin is unused.

Differential Revision: https://phabricator.services.mozilla.com/D113884
2021-05-01 01:12:45 +00:00
David Parks 2284427083 Bug 1698959: Remove NPAPI plugin telemetry references r=dthayer
PLUGIN_HANG events are no longer possible so all of these markers are already inactive.

Differential Revision: https://phabricator.services.mozilla.com/D113882
2021-05-01 01:12:45 +00:00
Toshihito Kikuchi 643e02bdb1 Bug 1708822 - Handle a case where processMap did not have a corresponding entry. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D114020
2021-04-30 21:23:38 +00:00
Valentin Gosu 5c93080204 Bug 1694662 - Remove appcache from site data manager r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D106446
2021-04-30 07:20:20 +00:00
Csoregi Natalia a76b78d543 Backed out changeset e01ec8694924 (bug 1700957) as requested. CLOSED TREE 2021-04-28 18:09:01 +03:00
Emma Malysz ce84c86379 Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 03:17:56 +00:00
Butkovits Atila 9597a30fbb Backed out changeset 1c362512f27b (bug 1700957) for causing failures at test_chrome_only_media_queries.html. CLOSED TREE 2021-04-28 05:55:14 +03:00
Emma Malysz a344c0fa4c Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 00:29:45 +00:00
Emilio Cobos Álvarez 9402e09c63 Bug 1707895 - Make the -moz-toolbar-prefers-color-scheme a tri-state. r=mstriemer
This will allow detecting the system theme, which allows fixing some of
the blocked bugs.

Note that when using the system theme we will still match light or dark
appropriately, so this shouldn't change behavior just yet.

Differential Revision: https://phabricator.services.mozilla.com/D113516
2021-04-27 16:20:35 +00:00
Mike Conley c0f33ff43d Bug 1705849 - Update toolbar icon fill colours for system/light/dark themes to remove opacity and match Proton spec. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112820
2021-04-26 16:55:12 +00:00
Cosmin Sabou 6143c3b834 Backed out changeset a08a2e0aee43 (bug 1705849) for causing Bug 1707357. a=backout 2021-04-24 18:52:22 +03:00
Joel Maher 8a9f37b534 Bug 1706716 green up mda, xpcshell, browser-chrome, reftest for apple silicon. r=necko-reviewers,extension-reviewers,preferences-reviewers,application-update-reviewers,zombie,ahal,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D113001
2021-04-22 18:39:40 +00:00
Mike Conley 5adce32a77 Bug 1705849 - Update toolbar icon fill colours for system/light/dark themes to remove opacity and match Proton spec. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D112820
2021-04-22 15:29:51 +00:00
Marco Bonardo 40fdf805bd Bug 1703590 - Fix custom themes urlbar/searchbar separators. r=harry,desktop-theme-reviewers,rpl
Stop supporting toolbar_field_separator in themes. We have no more
vertical separators in toolbar fields, and it could hide functional horizontal
separators in the urlbar panel, because it was misused there.

Introduce an autocomplete_popup_separator experimental color instead and use
a color-mix of currentColor to better adapt to LWT theme colors.

Differential Revision: https://phabricator.services.mozilla.com/D112616
2021-04-20 11:24:22 +00:00
Mark Striemer 209f987106 Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-18 22:22:49 +00:00
Narcis Beleuzu b6e1337b20 Bug 1659101 - Disable browser_preloading_tab_moving.js on Windows for frequent failures. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D112465
2021-04-17 11:05:15 +00:00
Noemi Erli f90389736b Backed out changeset 1c9943dacbdb (bug 1701691) for causing failures in browser_toolbar_prefers_color_scheme.js CLOSED TREE 2021-04-16 05:29:10 +03:00
Mark Striemer 53099a968e Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-16 00:43:46 +00:00
Csoregi Natalia 5cfbff72cd Backed out changeset 79c1392f7c43 (bug 1701691) for failures on browser_toolbar_prefers_color_scheme.js. CLOSED TREE 2021-04-15 22:18:09 +03:00
Emma Malysz ccbfbd3ba6 Bug 1704717, sentence casing for site permission panel r=flod
This does not apply to the strings in the cancel button (allow, block, etc)

Differential Revision: https://phabricator.services.mozilla.com/D112218
2021-04-15 18:22:27 +00:00