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

97761 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke c902104cdb Bug 1660470 - Split ShmemMessageUtils.h from Shmem.h. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93543

Depends on D93321
2020-11-23 16:05:02 +00:00
Simon Giesecke 0fc89f327c Bug 1660470 - Avoid including FetchIPCUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93248

Depends on D93246
2020-11-23 16:04:50 +00:00
Simon Giesecke 9f20781c35 Bug 1660470 - Avoid including nsGUIEventIPC.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93246

Depends on D93245
2020-11-23 16:04:44 +00:00
Simon Giesecke d2bd9f1c46 Bug 1660470 - Avoid including PermissionDelegateIPCUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93245

Depends on D93244
2020-11-23 16:04:39 +00:00
Simon Giesecke a8e63182fe Bug 1660470 - Avoid including DataStorageIPCUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93244

Depends on D93243
2020-11-23 16:04:34 +00:00
Simon Giesecke 252f99be51 Bug 1660470 - Avoid including ErrorIPCUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93243

Depends on D93242
2020-11-23 16:04:28 +00:00
Simon Giesecke 394f4c2966 Bug 1660470 - Avoid including dom/cache/IPCUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93242

Depends on D93241
2020-11-23 16:04:22 +00:00
Simon Giesecke 40fc78c788 Bug 1660470 - Avoid including ClientIPCUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93241

Depends on D93240
2020-11-23 16:04:17 +00:00
Simon Giesecke 1ffd69fbb6 Bug 1660470 - Avoid including DocShellMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93239

Depends on D93238
2020-11-23 16:04:08 +00:00
Simon Giesecke 5232583190 Bug 1660470 - Avoid including GamepadMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93236

Depends on D93235
2020-11-23 16:03:52 +00:00
Simon Giesecke c077183836 Bug 1660470 - Avoid including IPCMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93235

Depends on D93234
2020-11-23 16:03:47 +00:00
Simon Giesecke c3c25a8337 Bug 1660470 - Avoid including GfxMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93234

Depends on D93233
2020-11-23 16:03:38 +00:00
Simon Giesecke 93dd261db8 Bug 1660470 - Include C++ header files only from cpp file. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93233

Depends on D87865
2020-11-23 16:03:32 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Marco Bonardo 7ebfd9d1f3 Bug 1677408 - Part 1 - Replace onPageChanged with a new favicon-changed notification. r=Standard8,emilio
Use the new notifications system to notify about favicon changes, that is the only
part left of onPageChanged.

Differential Revision: https://phabricator.services.mozilla.com/D97274
2020-11-23 16:23:46 +00:00
Simon Giesecke 8953086494 Bug 1677284 - Move PackingStrategy::Variant implementation to separate header file. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97075
2020-11-23 15:49:14 +00:00
Simon Giesecke 8500063de5 Bug 1677284 - Avoid using PackingStrategy::Variant fallback for MimeResultType. r=alwu
Here, Maybe can be used instead. Also, the returned string is always a literal
string, which makes MimeResultType a trivial type now.

Differential Revision: https://phabricator.services.mozilla.com/D97071
2020-11-23 15:48:43 +00:00
Butkovits Atila 470d497c4a Backed out 7 changesets (bug 1677408) for bustages on nsNavHistory.cpp. CLOSED TREE
Backed out changeset 1e0dc9aaa979 (bug 1677408)
Backed out changeset 4198bc35198c (bug 1677408)
Backed out changeset ff93f264138b (bug 1677408)
Backed out changeset 0f2d72d2ed5a (bug 1677408)
Backed out changeset 996cbd111957 (bug 1677408)
Backed out changeset b0c23854e117 (bug 1677408)
Backed out changeset f7d6cc5e4457 (bug 1677408)
2020-11-23 16:49:31 +02:00
Marco Bonardo e064fb5784 Bug 1677408 - Part 1 - Replace onPageChanged with a new favicon-changed notification. r=Standard8,emilio
Use the new notifications system to notify about favicon changes, that is the only
part left of onPageChanged.

Differential Revision: https://phabricator.services.mozilla.com/D97274
2020-11-23 12:53:04 +00:00
alwu b017db4b60 Bug 1673613 - part3 : do not notify media session attributes change from inactive document, but will notify them once document becomes active. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D97721
2020-11-21 05:12:18 +00:00
alwu ff5fa5f914 Bug 1673613 - part2 : wrap the process of updating playback state into a function. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D97719
2020-11-22 08:00:19 +00:00
alwu 8f7e3d1c6f Bug 1673613 - part1 : add a crashtest. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D97718
2020-11-22 07:54:58 +00:00
Noemi Erli e52ab350ac Backed out changeset b21f364898eb (bug 1678389) for causing Android gv-unit failures CLOSED TREE 2020-11-22 04:24:23 +02:00
Emilio Cobos Álvarez ec7eb5b86a Bug 1678389 - Use transient user activation for <input> file/color picker. r=edgar
This matches other browsers, see [1], and should fix this and other
similar bugs like bug 1610726.

[1]: https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/html/forms/file_input_type.cc;l=163;drc=8a5de62dd01360cfe3d150640d3ff4d974bbe842

Differential Revision: https://phabricator.services.mozilla.com/D97640
2020-11-22 00:20:03 +00:00
Olli Pettay 25c8782343 Bug 1674254 - Inside a WebWorker context, calling performance.addEventListener throws a generic NS_ERROR_FAILURE, r=barret
Differential Revision: https://phabricator.services.mozilla.com/D97805
2020-11-20 22:39:58 +00:00
Jon Bauman 6af16546a9 Bug 1675987 - No derogatory language: Remove references to "crazy" in dom module. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97654
2020-11-20 23:37:01 +00:00
alwu bf7e451e44 Bug 1659064 - ensure the focus would be gaved back to the original window. r=bryce
In D97474, I removed this line because I think we acutally didn't need to wait until the focus switched to the original window. However, the intermittent fail rate went high after doing that.

Therefore, adding this line back in order to not interfere the following fullscreen test, which would get failed if the window is not being focused.

Differential Revision: https://phabricator.services.mozilla.com/D97796
2020-11-20 18:37:11 +00:00
Florian Quèze 0d164d3a9f Bug 1674476 - ChromeUtils.addProfilerMarker should support capturing a stack or setting the category, r=gerald,gregtatum.
Differential Revision: https://phabricator.services.mozilla.com/D95406
2020-11-20 15:41:16 +00:00
Dzmitry Malyshau 921110e00f Bug 1678396 - Enable WebGPU uncaptured error r=webidl,smaug
No functional changes, just WebIDL.

Differential Revision: https://phabricator.services.mozilla.com/D97642
2020-11-20 12:57:45 +00:00
Steven MacLeod 6cd960cfb3 Bug 1585070 - move nsPIDOMWindowOuter::mIsActive to BrowsingContext. r=kmag
A new `BrowsingContext` field has been added to track the active
browser window for the `:-moz-window-inactive` pseudoclass. This
field takes the place of `nsPIDOMWindowOuter::mIsActive`.

With this change `:-moz-window-inactive` is now fission compatible.

Differential Revision: https://phabricator.services.mozilla.com/D86422
2020-11-20 15:16:58 +00:00
Masayuki Nakano e256502715 Bug 1674044 - Make `IMEStateManager` put off to handle focused browser change while the application becomes activated r=hsivonen
`IMEStateManager::OnFocusMovedBetweenBrowsers()` is called by
`BrowserParent::UnsetTopLevelWebFocusAll()` from
`nsFocusManager::WindowRaised()` when a window becomes active from the app
itself is deactivated.  At this time, `aBlur` is  set to the last
`BrowserParent` which had focus before inactivated, and `aFocus` is always
`nullptr` because of assuming the following code in
`nsFocusManager::WindowRised()` will call `OnFocusMovedBetweenBrowsers()` to
set focus to focused browser part at that time.  However, the first call of
`OnFocusMovedBetweenBrowsers()` requesting to commit composition if there is
a composition because it believes that the focused process is just blurred and
nobody would take focus.

So, `IMEStateManager::OnFocusMovedBetweenBrowsers()` needs to wait to handle
its jobs until another its call for setting focus to the remote process when
the app is activated.

Therefore, this patch makes `IMEStateManager` manage whether the process is
active or not from the point of view of IME handling.  I.e., in the main
process, it can be treated as active when a window is the focused window in
the desktop, and in a content process, it can be treated as active when the
process has focus.  So, this is managed by `sIsActive`.

Then, `IMEStateManager` needs information of first blurred `BrowserParent`
and `last focused `BrowserParent` in the case for putting off to handle its
jobs.  Therefore, this patch adds
`IMEStateManager::sPendingFocusedBrowserSwitchingData` to manage them.

Finally, this patch makes `IMEStateManager::OnFocusMovedBetweenBrowsers()`
cancel pending handling if first blurred `BrowserParent` and last focused
`RrowserParent`are same.  And also making
`IMEStateManager::OnFocusChangeInternal()` call `OnFocusMoveBetweenBrowsers()`
if there is pending jobs of `OnFocusMoveBetweenBrowsers()`.

UThis requires an API to create the case to all windows deactive to test it.
However, there is no way to do that.  Therefore, this patch does not have
any tests.

Differential Revision: https://phabricator.services.mozilla.com/D97687
2020-11-20 14:55:31 +00:00
Masayuki Nakano 2efcda6dc7 Bug 1335347 - Make `nsMenuBarListener::KeyUp` wait replay event if a content process has focus r=smaug
`keyup` event of `Alt` key should be fired in content process even if it'll
activate the menubar, and it should be cancelable as same as before enabling
e10s.

Unfortunately, the new test is complicated even they test simple things.
The reason is, this test requires the window running it is the active window.
However, the window may become inactive on Linux, therefore, this test
needs to manage window state by itself.

And another reason is, after inactivating the menubar, somebody keeps
consuming keyboard events in chrome.  Although, popups shouldn't be
opened by this test, but waiting all popups hidden makes the remaining
intermittent failure gone.  Therefore, this patch waits all popups become
hidden after inactivating the menubar and before new test.

Differential Revision: https://phabricator.services.mozilla.com/D95984
2020-11-20 03:49:55 +00:00
Jeff Gilbert 2b7c148c6e Bug 1671382 - reset() RaiiShmem if its allocator is invalid. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D96297
2020-11-20 00:17:38 +00:00
Anny Gakhokidze 7804c5bdd9 Bug 1661833 - Fix duplicate OnStateChange events during process switches, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D96228
2020-11-19 23:21:04 +00:00
Brindusan Cristian 4e4ee9d822 Merge mozilla-central to autoland on a CLOSED TREE 2020-11-19 23:48:30 +02:00
Brindusan Cristian 5b03a03156 Merge autoland to mozilla-central. a=merge 2020-11-19 23:43:43 +02:00
Brindusan Cristian eaa940bdeb Backed out changeset 16291a47acda (bug 1662254) for causing Bug 1677764. a=backout DONTBUILD 2020-11-19 21:43:10 +02:00
Byron Campen [:bwc] 573c881bae Bug 1677759: Don't assert when stream is obsolete in trickle_cb. r=mjf
Depends on D97637

Differential Revision: https://phabricator.services.mozilla.com/D97668
2020-11-19 20:52:23 +00:00
Byron Campen [:bwc] aae97a8cc7 Bug 1677759: Mark STUN/TURN client contexts failed when we encounter a socket read/write failure for TCP. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D97637
2020-11-19 20:29:21 +00:00
Byron Campen [:bwc] 9961c02d2f Bug 1677759: Emit per-stream null candidates when the last candidate fails to init. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D97636
2020-11-19 20:29:14 +00:00
Byron Campen [:bwc] 7e9b0c9dd0 Bug 1677759: Disable TCP in these tests to ensure that UDP srflx/relay are working. r=mjf
This was what ended up finding this bug.

Differential Revision: https://phabricator.services.mozilla.com/D97635
2020-11-19 20:52:16 +00:00
Narcis Beleuzu 01e345ebbb Backed out changeset 867bffcbc35a (bug 1605134) for causing bustages on backout. CLOSED TREE 2020-11-19 22:33:31 +02:00
Narcis Beleuzu 61193c6032 Backed out 16 changesets (bug 1666116, bug 1605134) for GTest failures on TestAudioTrackGraph . CLOSED TREE
Backed out changeset dba15089f5d3 (bug 1666116)
Backed out changeset c529b6732b08 (bug 1666116)
Backed out changeset 3225cdc96f82 (bug 1666116)
Backed out changeset 06ced7ee7c2c (bug 1666116)
Backed out changeset f65dbe0c4c64 (bug 1605134)
Backed out changeset dda7d98d3da7 (bug 1605134)
Backed out changeset 6fed7e4730c5 (bug 1605134)
Backed out changeset 9859d35abce6 (bug 1605134)
Backed out changeset e5fb448bbadf (bug 1605134)
Backed out changeset 3ef7199a547a (bug 1605134)
Backed out changeset c24bff49f331 (bug 1605134)
Backed out changeset f8612b562aa7 (bug 1605134)
Backed out changeset 0ba16e1f73ae (bug 1605134)
Backed out changeset 0736167ed294 (bug 1605134)
Backed out changeset 56ead9091c47 (bug 1605134)
Backed out changeset 841eedd33424 (bug 1605134)
2020-11-19 22:09:39 +02:00
Csoregi Natalia 1d34bd022d Merge autoland to mozilla-central. a=merge 2020-11-19 11:56:07 +02:00
Csoregi Natalia 511fc14c29 Backed out changeset e176bd45edd8 (bug 1335347) for failures on browser_alt_keyup_in_content.js. a=backout 2020-11-19 11:47:55 +02:00
alwu 4d3ab47735 Bug 1673509 - part9 : skip some tests on OSX test-verify. r=chunmin
These two tests become easily failed on OSX test-verify, I have no idea why adding event order test would cause that. Before they failed intermittently [1] and they both perform fullscreen and PIP mode operation which I suspect as a reason. Considering tv is a tier2 test and the root cause might not in media control side, disable them on OSX WebRender test-verify.

[1]
https://bugzilla.mozilla.org/show_bug.cgi?id=1674245
https://bugzilla.mozilla.org/show_bug.cgi?id=1674240

Differential Revision: https://phabricator.services.mozilla.com/D97476
2020-11-19 06:44:57 +00:00
alwu 99652e0712 Bug 1673509 - part8 : speed up tests. r=chunmin
As we integrate the event order test to all browser tests, it would better to speed up some tests in order to prevent them from running test too long and cause unnecessary timeout.

- browser_default_action_handler.js
Reduce the amount of tabs we open and test all actions in same tab.

- browser_media_control_non_eligible_media.js
change `testPlayPauseAndStop` to `testNonAudibleMediaCantActivateControllerButAudibleMediaCan`, which would observe the controller's activated state to ensure non-eligible media doesn't activate the controller. And reduce the waiting time we spent on the `checkIfMediaIsStillPlaying`.

For `testNonEligibleMediaEnterFullscreen` and `testNonEligibleMediaEnterPIPMode`, reduce the amount of tab we open and perform checks in the same tab.

- browser_nosrc_and_error_media.js
Don't really need to perform entering PIP mode or fullscreen mode multiple times, because we have set the event listener which would catch error if we activate controller. Doing that only once can also prevent issues caused by entering PIP mode and fullscreen too frequently. (sometime PIP would fail to close its window)

Differential Revision: https://phabricator.services.mozilla.com/D97474
2020-11-19 00:33:49 +00:00
alwu b6ac235416 Bug 1673509 - part7 : improve tests to allow them pass after testing events order on them. r=chunmin
- browser_media_control_keys_event.js
In `testPlayPauseAndStop`, we don't necessary to observe controller's playback state, because we've already observed the media element's play state. However, in `testPlayPause`, we need to observe controller's playback state which determines if we would perform `play` or `pause` on controller.

- browser_media_control_stop_timer.js
When controller stops, listen to its `deactivated` event directly, and make sure we do that before controller stops.

- browser_remove_controllable_media_for_active_controller.js
Ensure we can observe controller's `deactivated` event before it stops.

Differential Revision: https://phabricator.services.mozilla.com/D95363
2020-11-19 00:33:42 +00:00
alwu 26511feeb0 Bug 1673509 - part6 : remove 'createTabAndLoad' function. r=chunmin
All media control browser tests are already using new method to create tab, so we don't need the old method anymore.

As `browser_active_mediasession_among_tabs.js` is using them and import media control's `head.js`, remove the usage and use `BrowserTestUtils` method instead.

Differential Revision: https://phabricator.services.mozilla.com/D95362
2020-11-19 00:33:39 +00:00
alwu effc56292a Bug 1673509 - part5 : only check metadata change after controller is activated. r=chunmin
Those cases work because we would dispatch `metadatachange` before controller gets activated, so we have to modify them.

Differential Revision: https://phabricator.services.mozilla.com/D95361
2020-11-19 00:33:36 +00:00