Commit Graph

845742 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
cea323d30e Bug 1837816 - Make selector cache not tied to a document. r=media-playback-reviewers,karlt,mstange
It doesn't really need to.

Differential Revision: https://phabricator.services.mozilla.com/D180591
2023-06-16 17:20:42 +00:00
Jeff Muizelaar
551660673f Bug 1838900 - Increase the size of the canvas ring buffer. r=bobowen
When drawing complicated content to canvas the ring buffer will fill up
faster than we can consume which causes us to block on the main thread.

This shows up noticeably on the chartjs SP3 test.

Other browsers don't suffer from this problem:

Safari uses 2MB buffer:
https://searchfox.org/wubkat/rev/a420a9f3f6ab4c8d0c75aae3877d736d66affe36/Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp

Chrome records into a resizable vector.

In local testing a size of 512Kb was insufficient to avoid blocking but
1Mb was enough. I'm setting it to 512Kb for now in the hope that we can
reduce the recording size and make the replay fast enough that 512Kb wil
be enough.

Differential Revision: https://phabricator.services.mozilla.com/D181272
2023-06-16 17:14:49 +00:00
Jonas Jenwald
1449a50e56 Bug 1838883 - Correctly bundle the PDF Viewer findbar icons. r=pdfjs-reviewers,calixte
Because of a typo, the findbar icons weren't included in the build.

The reason that this has gone unnoticed until now is that the Firefox PDF Viewer uses the *browser* findbar by default, and the affected findbar is only needed for PDF documents embedded in e.g. `<iframe>` elements; this can be reproduced with e.g. https://web.archive.org/web/20220309040754/https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf

Differential Revision: https://phabricator.services.mozilla.com/D181265
2023-06-16 16:56:13 +00:00
Jari Jalkanen
fd25b91a7b Bug 1755206 - Add remote debugging info for SetItem quota errors. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D180433
2023-06-16 16:52:38 +00:00
Jon Coppeard
41354b583a Bug 1838484 - Don't create module loader for template contents owner document r=smaug
When I added ScriptLoader::SetGlobalObject I didn't realise that more than one
document could share the same global object. It turns out that this happens for
these template contents owner documents and this causes the assert that checks
that right module loader is associated with the global to fail because it finds the
other document's module loader.

As far as I can tell we don't need a module load for these documents so we can
skip this call that creates it.

For some reason the test times out on Android and I wasn't able to work out why
so I didn't enable it there.

Differential Revision: https://phabricator.services.mozilla.com/D181267
2023-06-16 16:47:39 +00:00
Greg Tatum
f74991659a Bug 1835367 - Include programmatic label for the translate from/to menulist; r=nordzilla
This changes the spoken on macOS VoiceOVer:

from: "Spanish, collapsed, pop up button"
to:  "Spanish, Translate from, collapsed, pop up button"

Differential Revision: https://phabricator.services.mozilla.com/D180969
2023-06-16 16:41:35 +00:00
Greg Tatum
59930c462a Bug 1835361 - Drive by remove unneeded tabindex=0 attributes; r=nordzilla
These were needed due to a bug in the button implementation that has
since been fixed. I don't have the bug number, but I received this
feedback in a review, but the other bug hadn't landed yet.

Depends on D180986

Differential Revision: https://phabricator.services.mozilla.com/D180987
2023-06-16 16:40:22 +00:00
Greg Tatum
7bb9646bf4 Bug 1835361 - Pass keypress events to the translations openPopup to fix focus issue; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D180986
2023-06-16 16:40:22 +00:00
Stanca Serban
cb33cee97e Backed out 3 changesets (bug 1556358) for causing Bb build bustages in ElementInternals.cpp. CLOSED TREE
Backed out changeset f7e94ea82252 (bug 1556358)
Backed out changeset c80f29a9cefc (bug 1556358)
Backed out changeset 413225d91666 (bug 1556358)
2023-06-16 19:46:02 +03:00
Stanca Serban
0d0e04555d Backed out changeset 0ec4b06c796a (bug 1838739) for causing build bustages in OutOfMemoryError.h 2023-06-16 19:43:19 +03:00
Kelsey Gilbert
da36186386 Bug 1838739 - Initialize result of SetAsGPUOutOfMemoryError. r=webgpu-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D181161
2023-06-16 16:21:57 +00:00
Brad Werth
1a725a175d Bug 1802193 Part 6: Make browser_fullscreen-tab-close-race work with asynchronous fullscreen transitions. r=edgar
This ensures that the calls to SpecialPowers.spawn are always awaited. It
also changes setupFn to setupAndCompleteFn to clarify that that function
returns a promise, which needs to be setup before the click and awaited
afterwards. It also removes the "async" keyword from functions that return
Promises, but don't await them.

Differential Revision: https://phabricator.services.mozilla.com/D181165
2023-06-16 16:14:04 +00:00
Brad Werth
2c45ec4f81 Bug 1802193 Part 5: Disable a synchronous fullscreen test on macOS. r=edgar
The comment in the test indicates that the intent of the test is to invoke
two calls that should resolve in opposite order (the "race" in the test
title), but that behavior is specific to a synchronous fullscreen
transition. So this patch disables the test for macOS.

Differential Revision: https://phabricator.services.mozilla.com/D181126
2023-06-16 16:14:04 +00:00
Brad Werth
578edca377 Bug 1802193 Part 4: Make test_fullscreen_modal.html work with asynchronous fullscreen transitions. r=edgar
This ensures the fullscreen div has focus before requesting fullscreen.

Differential Revision: https://phabricator.services.mozilla.com/D181124
2023-06-16 16:14:03 +00:00
Brad Werth
8a6619a09a Bug 1802193 Part 3: Make a PiP test work with asynchronous fullscreen transitions. r=pip-reviewers,mhowell
This test is checking the state of PiP UI elements in the video window,
and how they change in response to fullscreen. The logic in the test waits
on the fullscreenchange events it receives from the parent process, and
the PiP UI changes depending on the fullscreenchange events it receives
from the content process. The changes in this patch ensure that the PiP UI
elements have time to receive their fullscreenchange events from the
refresh driver. This was already in place for fullscreen exits, presumably
because it was causing problems when transitioning from test-to-test. This
change adds that same pause to fullscreen enters, which gives time for the
UI elements to receive their event and get updated.

Prior to this change, this test was using the pattern of defining async
functions which await other Promises. But the last Promise in the chain
was never awaited. This changes the test to use the pattern of returning
the Promises, which works becauses the calling functions are awaiting
the results of each step in the chain.

It also adds more logging to the test.

Depends on D180884

Differential Revision: https://phabricator.services.mozilla.com/D181123
2023-06-16 16:14:03 +00:00
Brad Werth
d04111bac7 Bug 1802193 Part 2: Make a test of focus exiting fullscreen work with asynchronous fullscreen transitions. r=edgar
This adds an additional action that is triggered when the fullscreen
transition event is received. That interim action is used to re-focus the
original tab. Without this change, an asynchronous fullscreen transition
will silently swallow the MozAfterPaint event that is necessary to detect
the end of fullscreen.

Before this change, with asynchronous transitions, here's the flow:
1) The test opens Tab 1 which opens Tab 2.
2) Tab 1 enters fullscreen. This transition takes awhile but signals
success early. This is intentional because we want web content to be able
to be fully layed out when the fullscreen transition is complete.
3) Thinking that it has reached fullscreen, the test focuses Tab 2, which
causes a fullscreen exit transition to be queued up but not yet run.
Then Tab 1 is unfocused and a MozAfterPaint message is sent, but nobody is
listening for it so it has no effect. If the fullscreen transition was
synchronous, the actions of Step 6 (below) would happen before the change
in focus and there would be an event listener ready for the MozAfterPaint
event.
4) The test waits for the DOMFullscreenChild to send the
DOMFullscreen:Painted message, which it will do when it receives a
MozAfterPaint event.
5) Enter fullscreen transition completes, exit fullscreen transition
starts.
6) The MozDOMFullscreen:Exited event is sent to the DOMFullscreenChild,
which starts listening for the MozAfterPaint event. This event has
already been sent.
7) Test times out.

This change adds an additional action to take place between steps 6 and 7.
That additional action refocuses Tab 1. This makes it send another
MozAfterPaint event which the DOMFullscreenChild is ready to receive.

Differential Revision: https://phabricator.services.mozilla.com/D180884
2023-06-16 16:14:03 +00:00
Brad Werth
6475bde8c2 Bug 1802193 Part 1: Turn macOS native fullscreen pref on for Nightly. r=mac-reviewers,spohl
Differential Revision: https://phabricator.services.mozilla.com/D162890
2023-06-16 16:14:03 +00:00
Alexandre Lissy
63186bc601 Bug 1835804 - Completely block from doing audio decoding on Content and RDD r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D179699
2023-06-16 15:38:55 +00:00
Emilio Cobos Álvarez
c27a7a2b3e Bug 1835068 - Parse relative selectors for nesting. r=dshin
Make parsing test not depend on under-specified serialization details,
see https://github.com/w3c/csswg-drafts/issues/8970.

Differential Revision: https://phabricator.services.mozilla.com/D181125
2023-06-16 15:29:59 +00:00
Emilio Cobos Álvarez
698a78bf91 Bug 1838670 - Match parent selector like :scope. r=zrhoffman
https://drafts.csswg.org/css-nesting-1/#nest-selector:

    When used in any other context, it represents the same elements as
    :scope in that context (unless otherwise defined).

Differential Revision: https://phabricator.services.mozilla.com/D181119
2023-06-16 15:22:31 +00:00
Adam Vandolder
61ab1463b6 Bug 1556358 - Part 3: Restore FACE state in SessionStore. r=edgar,farre
Depends on D174115

Differential Revision: https://phabricator.services.mozilla.com/D179278
2023-06-16 15:02:11 +00:00
Adam Vandolder
401c77f4ac Bug 1556358 - Part 2: Save and restore custom element form data. r=edgar
Depends on D175542

Differential Revision: https://phabricator.services.mozilla.com/D174115
2023-06-16 15:02:11 +00:00
Adam Vandolder
61b3524702 Bug 1556358 - Allow FormData::ForEach to take a closure instead of a raw function pointer. r=edgar
Depends on D174114

Differential Revision: https://phabricator.services.mozilla.com/D175542
2023-06-16 15:02:10 +00:00
Stanca Serban
cf0c7e1d74 Backed out 3 changesets (bug 1580095) for causing mochitests failures in browser_audioScrubber.js. CLOSED TREE
Backed out changeset fa8f9b71e4db (bug 1580095)
Backed out changeset 2d042439b759 (bug 1580095)
Backed out changeset 66a695629d4b (bug 1580095)
2023-06-16 18:32:48 +03:00
Stanca Serban
ee3137f15f Backed out changeset ec9815c8c589 (bug 1775167) for causing xpcshell failures in test_telemetry.js. CLOSED TREE 2023-06-16 18:23:33 +03:00
Jan Varga
f3d184cc09 Bug 1838153 - Add a way to conditionally report QM_TRY failures; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D180788
2023-06-16 14:56:50 +00:00
Barret Rennie
f1e2e8da62 Bug 920187 - Remove FileUtils.getFile r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D180462
2023-06-16 14:48:44 +00:00
Barret Rennie
3463d51539 Bug 1838874 - Remove remaining uses of FileUtils.getFile r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D181255
2023-06-16 14:48:44 +00:00
Micah Tigley
d8b7d92301 Bug 1838007 - Update CreditCardRuleset model to 142fd4d. r=dimi,credential-management-reviewers
Adds es-ES keyword support for cc-name and cc-number.

Differential Revision: https://phabricator.services.mozilla.com/D180879
2023-06-16 14:47:03 +00:00
Niklas Baumgardner
a31b19ec06 Bug 1580095 - Update netflix wrapper. r=pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D180874
2023-06-16 14:35:03 +00:00
Niklas Baumgardner
cb994ab63e Bug 1580095 - Update youtube wrapper. r=pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D180873
2023-06-16 14:35:03 +00:00
Niklas Baumgardner
3ccac42558 Bug 1580095 - Add audio scrubber to PiP. r=pip-reviewers,desktop-theme-reviewers,kpatenio,dao
Differential Revision: https://phabricator.services.mozilla.com/D179556
2023-06-16 14:35:03 +00:00
Barret Rennie
9af21be92d Bug 1784622 - Annotate test skip for test_TelemetryControllerShutdown.js on Android r=chutten
This test is disabled for failures on Android, but the component doesn't run on
Android, so annotate the test skip as such.

Differential Revision: https://phabricator.services.mozilla.com/D179744
2023-06-16 14:20:52 +00:00
Barret Rennie
8154330f97 Bug 1775167 - Remove OS.File error support from ErrorSanitizer r=markh,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181174
2023-06-16 14:20:21 +00:00
Olli Pettay
f987f828ec Bug 1836235, bring back the pre-Fission null check to nsFrameLoader::CheckForRecursiveLoad, r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D181212
2023-06-16 14:16:03 +00:00
Stanca Serban
f36cc743ce Backed out changeset e88377109e68 (bug 920187) as requested by dev for potential test failures. CLOSED TREE 2023-06-16 17:20:03 +03:00
Cathie Chen
1cedb71f13 Bug 1837360 - Popover: Align to the update of specification regarding nested popover, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D181121
2023-06-16 13:59:43 +00:00
Cathie Chen
57335ae14d Bug 1836996 - Popover: Tighten auto popover list definition, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D180099
2023-06-16 13:58:34 +00:00
Barret Rennie
e54875dacc Bug 920187 - Remove FileUtils.getFile r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D180462
2023-06-16 13:55:19 +00:00
Alexandre Lissy
b0070329f0 Bug 1838794 - Use correct lib name for flatpak debug info r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D181186
2023-06-16 13:07:17 +00:00
Jens Stutte
c680a372a1 Bug 1837467 - Enable dom.abort_script_on_child_shutdown everywhere. r=smaug
Now that we start the ShutdownKill timer only after we actually sent the shutdown message, we want to ensure that a content process that we know will die but did not yet receive the shutdown message will start to idle as early as possible in case the parent process is too busy to send the shutdown message right away.

Differential Revision: https://phabricator.services.mozilla.com/D180960
2023-06-16 12:55:37 +00:00
Jens Stutte
f47c712349 Bug 1837467 - StartForceKillTimer only after SendShutdown has been called. r=smaug
The parent process might be busy such that the time that passes between NotifyTabDestroying and ShutdownProcess can become significant in terms of activating the ShutdownKill timer too early. In order to avoid this, we will start the timer only after we actually sent the shutdown message.

To cover the time that passes between NotifyTabDestroying (right after sending a delete to the Browser actor) and the effective NotifyTabDestroyed (in response to the Browser actor destroy roundtrip through the content process), we add a second timer that triggers the sending of the shutdown message.

Differential Revision: https://phabricator.services.mozilla.com/D180959
2023-06-16 12:55:37 +00:00
Tim Huang
53d92ca6fc Bug 1838255 - Keep processing fingerprinting override even if the override pref is empty. r=tjr
We won't add the default fingerprinting protection targets if the
override pref is empty. This is undesirable, we should still add the
default RFPTargets in this case.

Differential Revision: https://phabricator.services.mozilla.com/D180869
2023-06-16 12:27:46 +00:00
Kagami Sascha Rosylight
752e9eb70d Bug 1794508 - Add tests r=asuth,anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D161069
2023-06-16 11:17:40 +00:00
William Durand
ea54808066 Bug 1838435 - Handle the case where bss.gecko isn't defined but bss.gecko_android is. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D181103
2023-06-16 11:16:20 +00:00
Emilio Cobos Álvarez
91f4b5156a Bug 1803752 - Generate a dict from id to property, rather than a list in ServoCSSPropList. r=peterv
Also include the list of alias ids in the longhand and shorthands, so
that they can be looked up.

Differential Revision: https://phabricator.services.mozilla.com/D181110
2023-06-16 11:00:42 +00:00
Stanca Serban
5679aabaee Backed out 11 changesets (bug 1818718, bug 1836459) for causing gtest failures. CLOSED TREE
Backed out changeset 38531e113de0 (bug 1818718)
Backed out changeset 19c4e299d828 (bug 1818718)
Backed out changeset aaf27ff2dac4 (bug 1818718)
Backed out changeset 7c520c7014c8 (bug 1836459)
Backed out changeset cba5865f9ae8 (bug 1818718)
Backed out changeset c51e3ae78a9c (bug 1818718)
Backed out changeset 3a93a5dfb529 (bug 1818718)
Backed out changeset c6754289e9ca (bug 1818718)
Backed out changeset db5c464acf23 (bug 1818718)
Backed out changeset 1c9a402b6cea (bug 1818718)
Backed out changeset 0895e95eb9cc (bug 1818718)
2023-06-16 13:30:33 +03:00
Stanca Serban
0c0327ae6a Backed out changeset f4f3e84e7e15 (bug 1835804) for win64-nightlyasrelease opt related Bpgo build bustages in PDMFactory.cpp. 2023-06-16 13:27:29 +03:00
Stanca Serban
8e6d3f75c0 Backed out changeset 6cf058adc460 (bug 1838794) as requested by dev for a better optimization. 2023-06-16 13:25:01 +03:00
James Graham
8e0b42573a Bug 1838074 - Add mach commands for interop scoring CI runs, r=Sasha,ahal
This adds two new mach commands:

`mach wpt-fetch-logs` which can download log files from mozilla CI or
taskcluster runs on GitHub.

`mach wpt-interop-score` which can download runs and compute the
interop score. By default this filters tasks to those most like
upstream CI i.e. linux64 opt builds.

The actual implementation is mostly in external packages; the mach
commands are mostly frontends to these.

Differential Revision: https://phabricator.services.mozilla.com/D180731
2023-06-16 09:36:55 +00:00