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

832785 Коммитов

Автор SHA1 Сообщение Дата
Brad Werth 35295e5966 Bug 1631735 Part 1: Make nsCocoaWindow animated transitions asynchronous and atomic. r=mstange
This patch attempts to make nsCocoaWindow transitions (fullscreen,
windowed, minimize, zoom) atomic operations that can't be disrupted by
user action or by programmatic triggers. To accomplish this, it defines a
transition queue which ensures that when a transition is submitted, it is
always run to completion before another transition is started. Native
transitions execute asynchronously, and emulated ones execute
synchronously.

Additionally, this patch adds intermediary transitions to handle
programmatic transitions which aren't allowed by macOS, which include:

1) Attempting to minimize a fullscreen window will first transition to
windowed state.
2) Any transition on a minimized window will first transition to windowed
state.

A later part of this patch stack tests this behavior.

Differential Revision: https://phabricator.services.mozilla.com/D166450
2023-03-02 22:26:56 +00:00
sotaro 04266eba2f Bug 1817674 - Change RDDProcess shutdown from XPCOMShutdown event to gfxPlatform::ShutdownLayersIPC() r=KrisWright,gfx-reviewers,lsalzman
There was a case that RDD process was shut down during WebRender rendering. It happens by RDDProcess shutdown during XPCOMShutdown event. In this case, there could be a widget that nsBaseWidget::Shutdown() has not yet been called.

RDD process must be shutdown after all nsBaseWidget::Shutdown()s are called. gfxPlatform::ShutdownLayersIPC() is called immediately after XPCOMShutdown event in ShutdownXPCOM(). Then the ShutdownLayersIPC() is a good place to handle RDDProcess shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D171313
2023-03-02 22:22:58 +00:00
Brad Werth 5546663d79 Bug 1817691 Part 2: Make HandlePartialUpdate tolerate the same fuzziness as NotifySurfaceReady. r=mstange
Now that NotifySurfaceReady will clean up a 1-pixel strip invalid region,
this change makes HandlePartialUpdate allow a 1-pixel strip invalid
region. This should hopefully make HandlePartialUpdate only crash on the
cases that will also crash NotifySurfaceReady.

Differential Revision: https://phabricator.services.mozilla.com/D171500
2023-03-02 22:14:08 +00:00
Daniel Holbert 5ec38fdff7 Bug 1819455: Loosen fuzzy threshold on WPT test transform-input-013.html to match observed values on wpt.fyi harness. r=layout-reviewers,emilio
This test compares transformed input elements against untransformed ones. This
can end up producing slight subpixel positioning differences at paint time,
which results in a fuzzy reftest failure.  The test already has a fairly
liberal fuzzy allowance, and this patch just relaxes that a bit more to account
for the fuzzy differences that we're currently seeing on the wpt.fyi harness.

Differential Revision: https://phabricator.services.mozilla.com/D171275
2023-03-02 22:01:50 +00:00
Ben Visness 7c1f265635 Bug 1814924: Implement memory.discard for shared memories. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D170839
2023-03-02 22:00:53 +00:00
Tim Huang c3a3a5ebc3 Bug 1816064 - Part 4: Don't generate randomization key if unnecessary. r=tjr
We don't need to generate the randomization key if fingerprinting
protection is disabled. This could happen if fingerprinting protection
is disabled or exempted from normal windows. In these cases, we don't
need to generate the key, which can save us the cost of generating the
key.

Differential Revision: https://phabricator.services.mozilla.com/D171397
2023-03-02 21:47:07 +00:00
Tim Huang 5a71baef51 Bug 1816064 - Part 3: Add tests for fingerprinting randomization key generation. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D170605
2023-03-02 21:47:07 +00:00
Tim Huang 449649877a Bug 1816064 - Part 2: Implement the fingerprinting randomization key to cookieJarSettings. r=tjr,pbz
This patch adds a fingerprintingRandomizationKey to the
nsICookieJarSettings. The random key will be generated when loading a
top-level http channel and set to the cookieJarSettings. The key will
propagate to the top-level documant and all sub-documents with the
cookieJarSettings. Accessing the fingerprintingRandomizationKey will
return an error if the fingerprinting randomization is disabled.

Differential Revision: https://phabricator.services.mozilla.com/D170604
2023-03-02 21:47:06 +00:00
Tim Huang 3a6e536d7c Bug 1816064 - Part 1: Implement the session key for generating the random noise key for fingerprinting randomization. r=tjr
This patch implements the session key that will be used to generate the
random noise for fingerprinting randomization. The session keys will
live in the nsRFPService in the parent process only. nsRFPServices holds
two session keys for normal and private windows respectively. The
lifetime of normal sessino key is tie to the Firefox; it resets with
Firefox restarts. For private session key, it resets when the private
session ends. i.e. all private windows are closed.

Differential Revision: https://phabricator.services.mozilla.com/D170603
2023-03-02 21:47:06 +00:00
Tim Huang 4d752ebbe4 Bug 1818292 - Add email tracking protection to ETP strict. r=pbz,mconley
Differential Revision: https://phabricator.services.mozilla.com/D170759
2023-03-02 21:42:48 +00:00
alwu f26b7cb257 Bug 1818790 - part3 : connect WMFCDMProxyCallback to MFCDMChild in order to propagate events. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170958
2023-03-02 21:26:10 +00:00
alwu 39a1024e0b Bug 1818790 - part2 : implement WMFCDMProxyCallback. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170957
2023-03-02 21:26:10 +00:00
alwu ec8906d0fc Bug 1818790 - part1 : implement key message/key status/expiration methods for WMFCDMProxy. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170956
2023-03-02 21:26:09 +00:00
Sandor Molnar fb6a33a87f Backed out changeset 63a09dcaf7a6 (bug 1818828) for causing xpc failures in dom/webtransport/test/xpcshell/test_simple.js CLOSED TREE 2023-03-02 23:40:26 +02:00
Sandor Molnar bf87798f51 Backed out 4 changesets (bug 1805511, bug 1805509) for causing bc and xpc failures. CLOSED TREE
Backed out changeset 31a8dcad0d88 (bug 1805509)
Backed out changeset 3dd1735b85fa (bug 1805509)
Backed out changeset 87641a6eee2b (bug 1805509)
Backed out changeset e5bd4ad558f2 (bug 1805511)
2023-03-02 23:26:06 +02:00
Calixte ca60ab6060 Bug 1819982 - Update pdf.js to new version 4e52bcee4484a1c755a90af48a507b4532542f82 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D171493
2023-03-02 21:06:58 +00:00
edgul cd6db21d98 Bug 1818828 - Added basic DOM-using xpcshell testing for simple webtransport coverage. r=necko-reviewers,kershaw,jesup
Differential Revision: https://phabricator.services.mozilla.com/D170955
2023-03-02 20:59:35 +00:00
Brad Werth 20f25f94b8 Bug 1819502: Turn off Windows occlusion pref for another animating crashtest. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D171403
2023-03-02 20:56:20 +00:00
Barret Rennie b0e202be93 Bug 1805509 - Add SET_DEFAULT_PDF_HANDLER special message action r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D169818
2023-03-02 20:33:22 +00:00
Barret Rennie eec9f6d959 Bug 1805509 - Add ShellService.setAsDefaultPDFHandler r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D169817
2023-03-02 20:33:22 +00:00
Barret Rennie fb45d2062f Bug 1805509 - Set default extension handlers via defaultagent r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D169816
2023-03-02 20:33:21 +00:00
Barret Rennie 4ee24e27d8 Bug 1805511 - Add targeting for default PDF and HTML handlers r=nalexander,omc-reviewers,emcminn
This also fixes a bug in ASRouter devtools that prevented evaluation of
expressions containing nested promises. Objects containing promises are now
correctly serialized to the ASRouter devtools and expressions evaluate
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D169408
2023-03-02 20:33:21 +00:00
Gavin Suntop 22bd20fde8 Bug 1820019 - Turn on Save To Pocket button landing page r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D171499
2023-03-02 20:27:46 +00:00
alwu 05dc7154df Bug 1818632 - part5 : fix unified build errors. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170834
2023-03-02 20:06:23 +00:00
alwu 493301010f Bug 1818632 - part4 : use EME log for CDM related classes. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170833
2023-03-02 20:06:22 +00:00
alwu 0a326a35dc Bug 1818632 - part3 : using Microsoft::WRL in MFCDMParent. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170832
2023-03-02 20:06:22 +00:00
alwu 2054f37cea Bug 1818632 - part2 : set PMPHostApp on the CDM. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170831
2023-03-02 20:06:21 +00:00
alwu 5541b48a8d Bug 1818632 - part1 : implement MFPMPHostWrapper. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D170830
2023-03-02 20:06:21 +00:00
Jonathan Sudiaman 526447435e Bug 1818521 - Create delayed apply version of browser/components/places/tests/browser/browser_bookmark_popup.js r=mak
Differential Revision: https://phabricator.services.mozilla.com/D171259
2023-03-02 20:03:32 +00:00
Ray Kraesig 35bd8dac49 Bug 772424 - Reenable TestWinDND.cpp r=handyman
TestWinDND.cpp was disabled when libxul became a separate library which
could no longer be used by cppunittests.

Add a few shims to turn it into a gtest instead, and hook it back up.

Differential Revision: https://phabricator.services.mozilla.com/D171280
2023-03-02 19:09:44 +00:00
Sandor Molnar dcf64fc565 Backed out 4 changesets (bug 1805509, bug 1805511) for causing node newtab failures. CLOSED TREE
Backed out changeset 1c1d335d4ef5 (bug 1805509)
Backed out changeset 0bf2579bccd7 (bug 1805509)
Backed out changeset a87f459f2caa (bug 1805509)
Backed out changeset ae16a9890f22 (bug 1805511)
2023-03-02 21:03:45 +02:00
Mozilla Releng Treescript b261ba96c8 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
bg -> cd4a32db66fd302c3ef8f2e5462c9cb3101bfbe2
cy -> 8095410763433e946c56c38c96a40078758ff74e
id -> c5bbdf549e72d540725c4621d8b7c1d5fb95e5bb
it -> cf1b6e5a36f04195759c4b9b9924f0811cea1fed
lo -> cf1bd41fb0bdf1f242c84c713ed0767a21f4f0f3
pa-IN -> 8a6fa63392586520dc594fbf75ca19e9a6d69a20
pt-BR -> 7edf282909c4df1dd76326135a69df8aa60379e2
sr -> 134dc0ce265e07dc5501d24ff5ca432588f76ea8
tg -> 523a554a0d80d1b798951e62af80ee66f275831f
th -> c053617860635f246166600d1df8ddd406081d88
2023-03-02 19:05:09 +00:00
Nico Grunbaum 444bd4b5e1 Bug 1819518 - reduce screen space of PeerConnection config in about:webrtc;r=mjf,dbaker,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D171306
2023-03-02 18:54:04 +00:00
Jens Stutte b1a1a8b6b4 Bug 1816025 - Downgrade diagnostic assertion in BrowsingContextGroup::EnsureHostProcess. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D171457
2023-03-02 18:45:46 +00:00
Jonathan Kew 3be9a8c3bb Bug 1819843 - Add missing harfbuzz source file to moz.build list. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D171446
2023-03-02 18:45:39 +00:00
Jeff Muizelaar d4b665dc34 Bug 1819966 - Add some more tests around single number versioning. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D171488
2023-03-02 18:34:06 +00:00
Barret Rennie 41a7e2e406 Bug 1805509 - Add SET_DEFAULT_PDF_HANDLER special message action r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D169818
2023-03-02 18:27:14 +00:00
Barret Rennie c87b42b8c1 Bug 1805509 - Add ShellService.setAsDefaultPDFHandler r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D169817
2023-03-02 18:27:14 +00:00
Barret Rennie 3613ec66d5 Bug 1805509 - Set default extension handlers via defaultagent r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D169816
2023-03-02 18:27:13 +00:00
Barret Rennie 42b3aa3286 Bug 1805511 - Add targeting for default PDF and HTML handlers r=nalexander,omc-reviewers,emcminn
This also fixes a bug in ASRouter devtools that prevented evaluation of
expressions containing nested promises. Objects containing promises are now
correctly serialized to the ASRouter devtools and expressions evaluate
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D169408
2023-03-02 18:27:13 +00:00
Emilio Cobos Álvarez f18db8cf1b Bug 1819664 - Cleanup some DOMLocalization methods that can't throw. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D171482
2023-03-02 18:15:10 +00:00
Morgan Rae Reschenberg 7a080d4df8 Bug 1778441: Call into HyperTextAccessible::CharBounds when computing char bounds for local-acc TextLeafPoint's r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D171285
2023-03-02 18:08:15 +00:00
Sean Feng 5ad9ff01bc Bug 1814478 - Add JSON parsing to JS Validator r=farre,smaug,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D166946
2023-03-02 17:55:31 +00:00
Eden Chuang 1dfb294968 Bug 1819307 - Enable devtools/client/netmonitor/test/browser_net_worker_stacks.js test. r=jdescottes
After PFetch is enabled, fetch() in workers will go through the PFetch IPC to the parent process directly.
It means fetch() in the workers would not create any channels in content process and would not be blocked by the content process main thread anymore.

But since there is no channel in content process anymore, the netmonitor would also not get any notifications which expected from the channel.

Therefore, we remove checking for fetch() in the test, and enable the test.

https://searchfox.org/mozilla-central/rev/f7edb0b474a1a922f3285107620e802c6e19914d/devtools/client/netmonitor/test/browser_net_worker_stacks.js#74-81

We are planing to make worker's execution to be off-main thread, which means script loading, xhr and other network access will suppose to create channels in the parent process directly.
Therefore, we might need a new way to propagate these information for devtools.
There are two possible solutions
1. Faking a channel in the content process, such that netmonitor can still listen the notification.
2. Netmonitor listens on the parent process, and propagate the needed information to the content process devtool.

However, no matter which solution is applied, they both have some problem need to be figure out and fix.

Differential Revision: https://phabricator.services.mozilla.com/D171449
2023-03-02 17:45:59 +00:00
Eden Chuang dff80ae68e Bug 1819742 - Directly set up stream according to the IPC stream type in InternalRequest. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D171450
2023-03-02 17:44:45 +00:00
Csoregi Natalia 5ddfea87da Backed out changeset 6b47f8d493b3 (bug 1816025) for causing assertion failures. CLOSED TREE 2023-03-02 19:26:01 +02:00
Robin Steuber 3033d10a14 Bug 1815019 - Saved provenance data should be copied to the install directory r=nalexander
After the 7z stub saves the provenance data to the same directory as the installer, the installer should copy it to the installation directory. If the user runs the full installer, it should copy the provenance data of the full installer download. But if the user runs the stub installer, only the stub should copy its provenance data and the full installer should avoid overwriting the useful data from the stub.

Differential Revision: https://phabricator.services.mozilla.com/D171110
2023-03-02 16:44:11 +00:00
Robin Steuber 2f86417468 Bug 1815019 - Customize 7z to write provenance data r=nalexander
This patch was heavily inspired by the existing 7z customizations that read the download token into the "postSigningData" file. In both cases, the installation self-extractor copies some data into the same temporary directory where the installer is written. It will then be up to the NSIS installer to copy that file into the installation directory (that work will be done later in this stack).

This patch also includes changes to some files that were regenerated based on the code changes made.
 - `mozilla_customizations.diff` was updated so that it still reflects all Mozilla-made code changes to 7z.
 - The `7zSD.ARM64.sfx` and `7zSD.Win32.sfx` executables were re-built from the new code.
 - `SFXSetup.vcxproj` was updated to use newer toolchains.

Differential Revision: https://phabricator.services.mozilla.com/D171109
2023-03-02 16:44:10 +00:00
Robin Steuber 42042888c1 Bug 1815019 - Document procedure for changing 7zstub r=nalexander
I wanted to figure out how to re-generate `mozilla_customizations.diff` in a way that matched the way that it was originally created. This is so that (a) I could ensure that I was starting with a clean slate and that the current `mozilla_customizations.diff` matched the existing changes to `other-licenses/7zstub/src` and (b) when I regenerated `mozilla_customizations.diff` after making further changes to it, the patch of the diff changes would be at least somewhat readable rather than being a huge mess.

Some aspects of regenerating it created changes that I think are appropriate (ex: the full path to the user directory being present in the diff'ed file names). There were also some changes that I just couldn't figure out how to avoid (ex: the length of the function name context line). I'm not sure what diff utility was originally used, but I'm hoping that documenting how I generated it this time will allow it to be generated consistently in the future. And this commit should bring it in line with that consistency.

Differential Revision: https://phabricator.services.mozilla.com/D171108
2023-03-02 16:44:10 +00:00
filips 20d7c9c0d8 Bug 1747722 - Allow changing window class hints using attributes. r=emilio,stransky
This patch adds two new attributes to the window's `html` element, `windowclass` and `windowname`, to allow directly controlling the window's class hints on Xorg/Wayland (`res_class` and `res_name`) from the chrome/JS code. When they are set, values are used as class hints for their window. When they are not set, the current behavior of determining `res_class` and `res_name` (using `gdk_get_program_class` for `res_class` and parsing `windowtype` for `res_name`) is preserved.

Changes in `widget/nsIWidget.h` and `widget/nsBaseWidget.h` are only interface changes so that `setWindowClass` can accept three attributes. Although this patch does not affect Windows, `widget/windows/nsWindow.h` and `widget/windows/nsWindow.cpp` have been updated to comply with the new interface. `xpfe/appshell/AppWindow.cpp` has been updated to get the additional attributes and call `setWindowClass` with them. The main changes are in `widget/gtk/nsWindow.h` and `widget/gtk/nsWindow.cpp`.

Differential Revision: https://phabricator.services.mozilla.com/D169720
2023-03-02 16:22:05 +00:00