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

764218 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell acdcfb91e7 Bug 1721898 - Support async conditions in {SimpleTest,ContentTaskUtils}.waitForCondition, r=kmag
This is already the behaviour of TestUtils.waitForCondition.

Unfortunately it appears that a couple of callers were already passing async
functions as the condition to waitForCondition, which was leading to the
conditions being immediately considered fulfilled. A couple of these tests
unfortunately do not pass with a correctly behaving waitForCondition, and have
been updated to comment out the failing code.

Differential Revision: https://phabricator.services.mozilla.com/D120670
2021-07-26 23:59:33 +00:00
Emilio Cobos Álvarez 71a69ae4ed Bug 1721648 - Use the promise version of SpecialPowers.pushPrefEnv in APZ tests to ensure that we wait if needed. r=hiro
The callback version doesn't necessarily wait for rAF if needed:

  https://searchfox.org/mozilla-central/rev/59e797b66f5ce8a27ede0e7677688931be7aed20/testing/specialpowers/content/SpecialPowersChild.jsm#902

This is legacy behavior, but switching to the promise version does the
right thing.

Differential Revision: https://phabricator.services.mozilla.com/D120869
2021-07-26 23:29:16 +00:00
Iulian Moraru ee9e1dd7c0 Backed out changeset 4f0fe70a0e34 (bug 1714382) for causing assertion failures on nsCycleCollector.cpp. CLOSED TREE 2021-07-27 02:48:53 +03:00
Emilio Cobos Álvarez 0e751adf89 Bug 1721881 - Use pushPrefEnv in test_selection_underline.html. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D120865
2021-07-26 23:28:24 +00:00
Gijs Kruitbosch 9b0101e1b2 Bug 1721816 - force font: Menu on bookmarks toolbar menubutton menus as well as folders on the bookmarks toolbar to avoid -moz-pull-down-menu from menu.css on macOS making a difference on some macOS versions, r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D120896
2021-07-26 22:56:52 +00:00
Kirk Steuber 2cf695ea2d Bug 1720993 - Assume that a parent process that we don't have access to is not the same binary r=aklotz,tkikuchi
This patch doesn't cover turning the launcher process back on, because that already happens automatically during the PostUpdate process.

Differential Revision: https://phabricator.services.mozilla.com/D120507
2021-07-26 22:56:15 +00:00
Haik Aftandilian b00b0d585c Bug 1714382 - Include the Mac memory pressure state in crash reports r=spohl,KrisWright
Subscribe to memory pressure events on macOS and add crash report annotations to parent and content process crash reports that can be used to determine if the system was under memory pressure at the time of the crash.

Include the memory pressure level reported via the DISPATCH_SOURCE_TYPE_MEMORYPRESSURE dispatch with timestamps of transitions, the memory pressure level as read from the kern.memorystatus_vm_pressure_level sysctl, and a measurement of the percentage of available memory in the system read from the kern.memorystatus_level sysctl.

Differential Revision: https://phabricator.services.mozilla.com/D116725
2021-07-26 22:52:33 +00:00
Toshihito Kikuchi 8af900c435 Bug 1721700 - Move browser.tabs.unloadOnLowMemory to TabUnloader.unloadTabAsync. r=haik
We have the pref `browser.tabs.unloadOnLowMemory` to turn on the tab unloading
feature.  Since it controlled whether we initialize the memory watcher or not
in `TabUnloader.init()`, changing it required process start.

To conduct A/B testing for this feature, our infrastructure needs to be able
to change the pref in the middle of session.  So this change moves the pref
check from `TabUnloader.init()` to `TabUnloader.unloadTabAsync()`.  With this,
we fully exercise the memoruy watcher regardless of the pref's value, but invokes
tab unloading only when the pref is on.

Differential Revision: https://phabricator.services.mozilla.com/D120744
2021-07-26 22:48:02 +00:00
Yury d5f55f7fab Bug 1721963 - Fixed packets lost metric in about:webrtc page. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D120698
2021-07-26 22:24:14 +00:00
Greg Tatum 17a66918ee Bug 1721697 - Add platform-i18n-reviewers to reviews.rst; r=platform-i18n-reviewers,dminor DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120524
2021-07-26 22:13:36 +00:00
Agi Sferro 892355f7e9 Bug 1722387 - Fix paths in AVD ini config file. r=nalexander
I somehow assumed that |mach test| and |mach android-emalator| would share the
code that starts the emulator, but somehow, they don't. So we need to fix the
AVD path in this code path too.

We should probably eventually merge these two code paths to have one way to
launch the emulator.

Differential Revision: https://phabricator.services.mozilla.com/D120893
2021-07-26 22:09:39 +00:00
Mike Hommey aff44b1957 Bug 1721251 - Skip autoconf's xmkmf tests. r=firefox-build-system-reviewers,andi
Also remove the test for X11 in spidermonkey, which doesn't need X11.

Differential Revision: https://phabricator.services.mozilla.com/D120696
2021-07-26 21:59:01 +00:00
Kirk Steuber 7da98642c1 Bug 1722093 - Cleanup AUS and UpdateManager service getters in UpdateService.jsm r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D120880
2021-07-26 21:55:55 +00:00
Eitan Isaacson d0303f3525 Bug 1722394 - Slim AccAttributes::AttrValueType by removing nsString. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D120897
2021-07-26 21:38:48 +00:00
Emilio Cobos Álvarez 511cbd050e Bug 1722362 - Tweak selection color in GeckoView so that it works better with dark websites. r=agi
And make highlight colors consistent with our selection colors.

Differential Revision: https://phabricator.services.mozilla.com/D120874
2021-07-26 21:34:34 +00:00
Iulian Moraru ed15d48c87 Backed out changeset e3e4ce3c1020 (bug 1715965) for causing xpcshell failures on test_addon_update.js. CLOSED TREE 2021-07-27 00:43:47 +03:00
Emilio Cobos Álvarez e16b720d45 Bug 1722353 - Remove unused defines.css in geckoview. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D120873
2021-07-26 21:17:33 +00:00
Emilio Cobos Álvarez 8d34b18bfe Bug 1722353 - Minor cleanup in Android's nsLookAndFeel. r=geckoview-reviewers,agi
This is in preparation to adding dark system color support to Android.

Differential Revision: https://phabricator.services.mozilla.com/D120863
2021-07-26 21:17:00 +00:00
Ting-Yu Lin 77a7201399 Bug 1722356 - Cleanup the logic computing button's rect in nsComboboxControlFrame. r=emilio
This shouldn't change the behavior.

Differential Revision: https://phabricator.services.mozilla.com/D120868
2021-07-26 21:14:42 +00:00
Ting-Yu Lin 15bc31db96 Bug 1722356 - Restore grid reftests in layout/reftests/css-grid/reftest.list. r=emilio
These grid reftests were removed accidentally in
https://hg.mozilla.org/mozilla-central/diff/46fc8d45948300d9e635c684d01ac7a4444dd6c8/layout/reftests/css-grid/reftest.list

Differential Revision: https://phabricator.services.mozilla.com/D120867
2021-07-26 21:14:42 +00:00
Ting-Yu Lin 869a7381f7 Bug 1722356 - Remove frameToAddToList in ConstructFrameFromItemInternal(). r=emilio
If we need to construct a scroll frame, we can just assign it to
`primaryFrame` variable.

Differential Revision: https://phabricator.services.mozilla.com/D120866
2021-07-26 21:14:42 +00:00
Mike Kaply 0721f12bf4 Bug 1715965 - Handle errors for local XPIs installed by policy. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D120763
2021-07-26 20:55:31 +00:00
Iulian Moraru b6f2df7d69 Bug 1707401 - disable browser_autocomplete_import.js on windows_10_64_qr for frequent failures. r=intermittent-reviewers,bhearsum DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120890
2021-07-26 20:25:29 +00:00
Iulian Moraru bbb0465443 Bug 1683265 - disable browser_toolbox_zoom.js on windows_10_64_qr for frequent failures. r=intermittent-reviewers,bhearsum DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120887
2021-07-26 20:17:34 +00:00
Brendan Dahl 72813a5bd7 Bug 1722352 - Update pdf.js to version 2.11.5 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D120864
2021-07-26 20:04:23 +00:00
Gijs Kruitbosch 6c30054cef Bug 1721655 - stop using yellow 'caution' borders on network error pages, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D120686
2021-07-26 20:02:43 +00:00
Emily McDonough 072710086d Bug 1720554 Part 2 - Add WPT for paper name with orientation r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120389
2021-07-26 19:31:51 +00:00
Iulian Moraru a4ec557be4 Bug 1652192 - disable browser_test_visibility.js on windows_10_64_qr for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120786
2021-07-26 19:04:50 +00:00
Thomas Wisniewski b738e5eb65 Bug 1713692 - Add a SmartBlock shim for Google PageAd; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D120875
2021-07-26 18:51:12 +00:00
Steve Fink 0df8aa085c Bug 1721291 - Report jsapi-tests failures with more than just the result code. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D120294
2021-07-26 18:47:48 +00:00
Alexandru Michis 152604b0fb Bug 1639020 - Disable browser_filter-editor-04.js and browser_flame-graph-01.js for frequent failures on linux and windows webrender. r=intermittent-reviewers,jmaher DONTBUILD
browser_filter-editor-04.js is frequently failing on windows/linux webrender platforms together with browser_flame-graph-01.js on windows webrender ones.

Differential Revision: https://phabricator.services.mozilla.com/D120778
2021-07-26 18:43:43 +00:00
Emilio Cobos Álvarez ebffc1928f Bug 1722359 - Remove ui.showHideScrollbars. r=mstange
It probably did something more useful in the past, but right now it's
only used to avoid throttling some overflow-causing animations.

It returns 0 everywhere except on Android (for some reason?), but in any
case it doesn't seem this would need to be a LookAndFeel integer, it
could just be a regular pref that we turn on for tests.

However the tests pass with this patch locally, so for now I'm not
adding a pref to replace it.

Differential Revision: https://phabricator.services.mozilla.com/D120871
2021-07-26 18:42:36 +00:00
Dave Townsend 19ac12a39e Bug 1721647: Add a stub page data service API to enable parallel development. r=mak
This adds the stub API for the page data service and some basic docs. The service can be used from
xpcshell tests and the events respond with sane data. As there are no consumers currently the
in-memory cache never clears.

Differential Revision: https://phabricator.services.mozilla.com/D120498
2021-07-26 18:23:06 +00:00
Julian Descottes f59663fd57 Bug 1722311 - [devtools] Disable debugger ACTION logs in mochitests r=ochameau
You can re-enable action logs when running a test by passing --setpref devtools.debugger.log-actions=true

Differential Revision: https://phabricator.services.mozilla.com/D120855
2021-07-26 18:22:40 +00:00
Agi Sferro 6296f9a20b Bug 1722347 - Check for the AVD in |mach android-emulator|. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D120862
2021-07-26 17:57:30 +00:00
Luca Greco 7f7e073259 Bug 1638099 - Cover with an explicit xpcshell test the expected service worker lifecycle events on addon reload and browser restart. r=asuth,mixedpuppy
This patch introduce an additional xpcshell test task (built on top of the other one added in D119799)
which cover explicitly the following behaviors:
- the extension service worker registrations are expected to:
  - not be unregistered if the addon is shutting down as part of the application shutdown
  - to be unregistered if the addon is disabled (while the application is not shutting down)
- the extension service worker is expected to:
  - receive the "install" and "activate" lifecycle events when the service worker is registered for the first time
    or if the addon is disabled and then re-enabled while the application is not shutting down
  - not receive the "install" and "activate" lifecycle events when a previously active worker
    is spawned again (in particular after the entire application is restarted)

Ideally these behavior shoud be tested by restarting the browser instance as in a real Browser instance
but asserting all these behavior from a marionette test would be a bit trickier (but I still plan to
take a look into that, at least to cover with a marionette test a subset of the expected behaviors on
browser restart).

As an additional side note, the test case introduced in this test is currently assuming that we
may not proceed with D119531, and so to avoid to hit the issue described in that patch description
this patch is currently introducing an additional test-only method to nsIServiceWorkerManager
(named reloadRegistrationsForTest) which currently does the bare minimum to mock the "Browser restart"
scenario.

If on the contrary, we decide to proceed further with D119531, the new nsIServiceWorkerManager.reloadRegistrationsForTest
helper would not be needed anymore (because we would just use the existing ServiceWorkerRegistrationInfo instance which
is basically in the same state that the new one loaded from the ServiceWorkerRegistar would be, besides the issue with the
stale WebExtensionPolicy instance stored in the principal associated to the previous service worker registration).

Differential Revision: https://phabricator.services.mozilla.com/D120351
2021-07-26 17:52:26 +00:00
Luca Greco f9985ad963 Bug 1638099 - Add xpcshell test to explicitly assert that service workers fail to spawn if the addon is disabled. r=asuth,mixedpuppy
This patch introduces a new xpcshell test that covers the behavior expected by the changes
applied from D119532.

The current testing strategy is based on the same internal Gecko platform APIs that are used
internally by Firefox DevTools internal API that about:debugging is using to detect when a worker is
spawned and terminated (based on JSProcessActors and nsIWorkerDebuggerManager) and to force spawn
a registered service worker (by calling the nsIServiceWorkerRegistrationInfo.attachDebugger method).

Differential Revision: https://phabricator.services.mozilla.com/D119799
2021-07-26 17:52:25 +00:00
Luca Greco c346419b44 Bug 1638099 - Ensure spawning a new service worker for a disabled webextension does fail. r=asuth
This patch does prevent a service worker previously registered by a webextension to be spawned
if the webextension isn't enabled.

Instead of marking the service worker as disabled (e.g. as part of the registration data that we
store on disk), this patch is currently adding an additional check in
ServiceWorkerPrivateImpl::SpawnIfNeeded to make it early exit with an error if:
- the worker principal has a moz-extension url
- and it does not have a WebExtensionPolicy or the WebExtensionPolicy is not active
  (which would mean that the extension was being uninstalled or disabled)

Differential Revision: https://phabricator.services.mozilla.com/D119532
2021-07-26 17:52:25 +00:00
Luca Greco 4f6b894e7a Bug 1638099 - Unregister all extension service workers on extension shutdown if the app is not also shutting down. r=mixedpuppy
This patch introduces changes to parent/ext-backgroundPage.js and Extension's shutdown methods to make sure
that all service workers registered by an extension are unregistered when the extension is shutting down,
unless the application is also shutting down (in which case the registration is not unregistered because
for the already installed extenson the previously activeWorker is expected to be still active across browser
restarts).

These changes prevent also to hit the issue that D119532 was triggering when an extension was reloaded
and it does not need any of the changes to ContentPrincipal::AddonPolicy from D119531.

Differential Revision: https://phabricator.services.mozilla.com/D119903
2021-07-26 17:52:24 +00:00
Kagami Sascha Rosylight 38acfa9c75 Bug 1712339 - Remove mouse event default action and revert bug 1674658 r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D120854
2021-07-26 17:34:07 +00:00
Agi Sferro 0e754e748c Bug 1722347 - Uncomment ensure_*_packages. r=nalexander
This was missed in Bug 1721669, likely a rebase error.

Differential Revision: https://phabricator.services.mozilla.com/D120861
2021-07-26 17:16:03 +00:00
Agi Sferro a193bd2970 Bug 1722347 - Add missing |application| parameter in install_private_packages. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D120857
2021-07-26 17:16:03 +00:00
Christoph Kerschbaumer 5a0e65f9c3 Bug 1720535: Add https-first-disabled annotation to mochitest harness r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D119970
2021-07-26 16:47:45 +00:00
Michelle Goossens adf989bb23 Bug 1718297 - Part 1: Disable failing mochitest-media tests on Windows 10 2004 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D119836
2021-07-26 16:40:35 +00:00
Michelle Goossens c638f51ce3 Bug 1718292 - Part 1: Disable failing xpcshell tests on Windows 10 2004 r=jmaher,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119633
2021-07-26 16:38:22 +00:00
Cosmin Sabou a0159236f1 Backed out changeset e9a336383b55 (bug 1721647) for bc failures on browser_all_files_referenced.js. CLOSED TREE 2021-07-26 20:04:46 +03:00
Bryce Seager van Dyk 418bebb92e Bug 1721874 - Remove getDecryptingGMPVideoDecoder. r=jolin
This code path is now the same as getGMPVideoDecoder, so we can merge them into
one and remove the decrypting decoder specific case.

Differential Revision: https://phabricator.services.mozilla.com/D120649
2021-07-26 16:15:24 +00:00
ffxbld 24499204c2 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=pascalc
Differential Revision: https://phabricator.services.mozilla.com/D120836
2021-07-26 15:45:06 +00:00
Dave Townsend 5cbb812cba Bug 1721647: Add a stub page data service API to enable parallel development. r=mak
This adds the stub API for the page data service and some basic docs. The service can be used from
xpcshell tests and the events respond with sane data. As there are no consumers currently the
in-memory cache never clears.

Differential Revision: https://phabricator.services.mozilla.com/D120498
2021-07-26 15:30:58 +00:00
Dorel Luca e6c34860a8 Backed out 7 changesets (bug 1719194) for Spidermonkey failure in gecko/js/src/frontend/SyntaxParseHandler. CLOSED TREE
Backed out changeset d5966f092353 (bug 1719194)
Backed out changeset 5b1c02e1173b (bug 1719194)
Backed out changeset a0b7896b840d (bug 1719194)
Backed out changeset 09725af9e55b (bug 1719194)
Backed out changeset 74fe6205ace1 (bug 1719194)
Backed out changeset 6fbc8ee2c1bd (bug 1719194)
Backed out changeset bd6a7fdc412e (bug 1719194)
2021-07-26 19:03:47 +03:00