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

89987 Коммитов

Автор SHA1 Сообщение Дата
alwu 7bfc3e2bf5 Bug 1611031 - always trigger corespending controller method when receving media control key events. r=chunmin
The check here was used to prevent calling play or pause during playing or pausing.

However, according to the spec [1], even if media session is playing, we would still want to trigger its play action handler when play action happens. So we should forward all media control key events to the content, not to block any of them.

[1] https://w3c.github.io/mediasession/#handle-media-session-action

Differential Revision: https://phabricator.services.mozilla.com/D60918

--HG--
extra : moz-landing-system : lando
2020-01-24 21:31:34 +00:00
Kris Maglione 11a00dbf84 Bug 1595936: Part 4 - Assert that we don't init FrameLoaders when unsafe. r=smaug
We go to some lengths to defer FrameLoader initialization to the end of
document updates. However, it is still possible for initialization to happen
earlier as a side-effect of other operations (such as
`nsFrameLoader::GetBrowsingContext()`) if they're called before initialization
has already happened. Since this is such an easy mistake to make, we should
assert that it doesn't happen so that we find out about it sooner rather than
later.

Differential Revision: https://phabricator.services.mozilla.com/D55877

--HG--
extra : moz-landing-system : lando
2020-01-24 19:03:20 +00:00
Kris Maglione 3c23c76a5f Bug 1595936: Part 3c - Dispatch message manager observers only when safe. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55876

--HG--
extra : moz-landing-system : lando
2020-01-24 19:03:22 +00:00
Kris Maglione b0061d264f Bug 1595936: Part 3b - Don't force FrameLoader initialization on removal. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55875

--HG--
extra : moz-landing-system : lando
2020-01-24 19:03:20 +00:00
Kris Maglione e92365dba5 Bug 1595936: Part 3a - Don't force early FrameLoader initialization in recursion check. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55874

--HG--
extra : moz-landing-system : lando
2020-01-24 19:03:12 +00:00
Kris Maglione 878d4b6711 Bug 1595936: Part 2 - Refresh feature policy when attaching browsing context. r=farre,baku
We go to great lengths to try to avoid initializing FrameLoaders during
document updates. That means that when `BindToTree` is called, the element's
FrameLoader is not initialized, and it has no BrowsingContext. Calling
`GetBrowsingContext()` (which happens as a side-effect of
`HTMLIFrameElement::RefreshFeaturePolicy`), however, forces eager
initialization, which can cause any number of problems.

This patch moves that logic from being triggered by `BindToTree` to being
triggered by `BrowsingContext::Embed`, which happens as soon as the
BrowsingContext is bound to the element, but does not force it to be created
early.

Differential Revision: https://phabricator.services.mozilla.com/D55872

--HG--
extra : moz-landing-system : lando
2020-01-24 19:03:10 +00:00
Kris Maglione 1a5f46e923 Bug 1595936: Part 1 - Warn for unsafe event dispatch in non-document system globals. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55871

--HG--
extra : moz-landing-system : lando
2020-01-24 19:03:03 +00:00
Andrea Marchesini 8e1058f24f Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 4 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60431

--HG--
extra : moz-landing-system : lando
2020-01-24 16:31:44 +00:00
Andrea Marchesini c4cb10712a Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 3 - CloneDataPolicy, r=smaug,sfink,lth
Differential Revision: https://phabricator.services.mozilla.com/D60485

--HG--
extra : moz-landing-system : lando
2020-01-24 16:31:21 +00:00
Andrea Marchesini 4ddc1cf3a9 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 2 - MessageDataType, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60428

--HG--
extra : moz-landing-system : lando
2020-01-24 16:19:59 +00:00
Andrea Marchesini 6829eab59f Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 1 - No JS exceptions, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60484

--HG--
extra : moz-landing-system : lando
2020-01-24 16:19:57 +00:00
Andrea Marchesini c4f533906f Bug 1611424 - Intermittent TV dom/broadcastchannel/tests/test_wasm.html, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60977

--HG--
extra : moz-landing-system : lando
2020-01-24 18:08:23 +00:00
Dzmitry Malyshau be7fae486d Bug 1609175 - WebGPU bind groups and compute pipelines r=jgilbert,webidl,smaug,bzbarsky
Adds support for bind groups and compute pipelines
The end goal of this PR is to run the compute example.

Differential Revision: https://phabricator.services.mozilla.com/D60746

--HG--
extra : moz-landing-system : lando
2020-01-24 16:27:09 +00:00
Gabriele Svelto f40b611e19 Bug 1610566 - Prevent child processes crashing before the exception-handler is in place from triggering an assertion in the parent process r=froydnj
This also adds an explicit warning when this happens so that the child processes don't crash without leaving a trace.

Differential Revision: https://phabricator.services.mozilla.com/D60650

--HG--
extra : moz-landing-system : lando
2020-01-23 21:33:37 +00:00
Noemi Erli e4b712dcb8 Backed out 4 changesets (bug 1609990) for causing Spidermonkey rust bustage CLOSED TREE
Backed out changeset 81a77bb3772c (bug 1609990)
Backed out changeset d4524885cb97 (bug 1609990)
Backed out changeset c95aac908332 (bug 1609990)
Backed out changeset bae3e50ab64d (bug 1609990)
2020-01-24 18:13:24 +02:00
Noemi Erli f3e1f0d3c6 Backed out changeset 1154b297e921 (bug 1611424) for causing ESlint failure in test_wasm.html 2020-01-24 18:00:23 +02:00
Andrea Marchesini 960b3ab7c5 Bug 1611424 - Intermittent TV dom/broadcastchannel/tests/test_wasm.html, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60977

--HG--
extra : moz-landing-system : lando
2020-01-24 15:11:54 +00:00
Andrea Marchesini 7434daefe0 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 4 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60431

--HG--
extra : moz-landing-system : lando
2020-01-24 15:25:24 +00:00
Andrea Marchesini ac6024f408 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 3 - CloneDataPolicy, r=smaug,sfink,lth
Differential Revision: https://phabricator.services.mozilla.com/D60485

--HG--
extra : moz-landing-system : lando
2020-01-24 15:25:24 +00:00
Andrea Marchesini b1846b3da4 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 2 - MessageDataType, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60428

--HG--
extra : moz-landing-system : lando
2020-01-24 15:26:23 +00:00
Andrea Marchesini 4c90eea6f3 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 1 - No JS exceptions, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60484

--HG--
extra : moz-landing-system : lando
2020-01-24 15:25:56 +00:00
Noemi Erli 835cec6cf9 Backed out changeset 136b3044f6a6 (bug 1609175) for causing build bustages in WebGPUChild.cpp CLOSED TREE 2020-01-24 17:20:31 +02:00
Tom Ritter e17d117cab Bug 1611238 - Enforce eval restrictions in the Parent Process/System Context r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D60880

--HG--
extra : moz-landing-system : lando
2020-01-24 14:04:27 +00:00
Dzmitry Malyshau 73eff15f2c Bug 1609175 - WebGPU bind groups and compute pipelines r=jgilbert,webidl,smaug,bzbarsky
Adds support for bind groups and compute pipelines
The end goal of this PR is to run the compute example.

Differential Revision: https://phabricator.services.mozilla.com/D60746

--HG--
extra : moz-landing-system : lando
2020-01-24 05:05:34 +00:00
Mirko Brodesser 3375237ea1 Bug 1609662: part 19) Change `Selection::EqualsRangeAtPoint` to `HasEqualRangeBoundariesAt`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60950

--HG--
extra : moz-landing-system : lando
2020-01-24 14:40:35 +00:00
Mirko Brodesser bfba826996 Bug 1609662: part 18) Remove `RangeMatchesBeginPoint` function in Selection. r=smaug
The name was misleading.

Differential Revision: https://phabricator.services.mozilla.com/D60949

--HG--
extra : moz-landing-system : lando
2020-01-24 13:01:59 +00:00
Emilio Cobos Álvarez a25126cd0d Bug 1611181 - Make direction use an enum class. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D60857

--HG--
extra : moz-landing-system : lando
2020-01-24 11:46:14 +00:00
Paul Adenot f47d3d7072 Bug 1608505 - Cap the audio output channel count to something the device can handle. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D60549

--HG--
extra : moz-landing-system : lando
2020-01-24 11:23:37 +00:00
Dimi Lee dc9c52a9d5 Bug 1601660 - Part 2: Remove getContentBlockingLog from nsIDocShell.idl r=Ehsan
This patch removes the unnecessary getContentBlockingLog function from
nsIDocShell.idl.

Depends on D57464

Differential Revision: https://phabricator.services.mozilla.com/D57444

--HG--
extra : moz-landing-system : lando
2020-01-24 11:06:49 +00:00
Mirko Brodesser 77625a6782 Bug 1600267: part 19) Emit warnings when `Selection` couldn't compare nodes and pretends some order. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60818

--HG--
extra : moz-landing-system : lando
2020-01-23 17:38:17 +00:00
Andrea Marchesini 6b524374dc Bug 1610020 - BroadcastChannel + wasm - part 6 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60322

--HG--
extra : moz-landing-system : lando
2020-01-24 08:00:26 +00:00
Andrea Marchesini c4d5364f80 Bug 1610020 - BroadcastChannel + wasm - part 5 - RefMessageBody for BroadcastChannels, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60321

--HG--
extra : moz-landing-system : lando
2020-01-24 08:00:08 +00:00
Andrea Marchesini 2cb6cd3581 Bug 1610020 - BroadcastChannel + wasm - part 4 - BroadcastChannel connected to RefMessageBodyService, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60320

--HG--
extra : moz-landing-system : lando
2020-01-24 07:59:50 +00:00
Andrea Marchesini a77cc322ba Bug 1610020 - BroadcastChannel + wasm - part 3 - Move MessageData IPC struct into DOMTypes, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60319

--HG--
extra : moz-landing-system : lando
2020-01-24 07:59:43 +00:00
Andrea Marchesini f5408828e0 Bug 1610020 - BroadcastChannel + wasm - part 2 - Move SharedMessagePortMessage into dom/ipc, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60318

--HG--
rename : dom/messagechannel/SharedMessagePortMessage.cpp => dom/ipc/SharedMessageBody.cpp
rename : dom/messagechannel/SharedMessagePortMessage.h => dom/ipc/SharedMessageBody.h
extra : moz-landing-system : lando
2020-01-24 07:59:36 +00:00
Andrea Marchesini 1d307811b9 Bug 1610020 - BroadcastChannel + wasm - part 1 - Move RefMessageBodyService into dom/ipc, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60317

--HG--
rename : dom/messagechannel/RefMessageBodyService.cpp => dom/ipc/RefMessageBodyService.cpp
rename : dom/messagechannel/RefMessageBodyService.h => dom/ipc/RefMessageBodyService.h
extra : moz-landing-system : lando
2020-01-24 07:59:34 +00:00
Masayuki Nakano b1bf7e0db4 Bug 1540043 - part 1: Move all constants and methods of `nsIPlaintextEditor` to `nsIEditor` and make `nsIPlaintextEditor` inherit `nsIEditor` r=m_kato
For preparing to remove `nsIPlaintextEditor` interface, this patch moves
all of them to `nsIEditor`, but for avoiding bustage in comm-central, makes
`nsIPlaintextEditor` inherit `nsIEditor` for now (i.e., even with this patch,
script can access old `nsIPlaintextEditor` members with the interface.

In C++ code, this patch moves `SetWrapColumn()`, `InsertTextAsAction()`,
`InsertTextAsSubAction()` and `InsertLineBreakAsSubAction()` because
they do common things between `TextEditor` and `HTMLEditor`.  On the other
hand, this does not move `TextEditor::GetTextLength()` because it's designed
only for `TextEditor`.

Differential Revision: https://phabricator.services.mozilla.com/D60820

--HG--
rename : editor/libeditor/tests/test_nsIPlaintextEditor_insertLineBreak.html => editor/libeditor/tests/test_nsIEditor_insertLineBreak.html
extra : moz-landing-system : lando
2020-01-24 08:33:42 +00:00
Andrea Marchesini 2b5eb657d7 Bug 1605566 - MessagePort + wasm - part 5 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59616

--HG--
extra : moz-landing-system : lando
2020-01-24 07:59:31 +00:00
Andrea Marchesini ce553d0097 Bug 1605566 - MessagePort + wasm - part 4 - Implement RefMessageBodyService, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59615

--HG--
extra : moz-landing-system : lando
2020-01-24 07:58:34 +00:00
Andrea Marchesini 94ac5ab147 Bug 1605566 - MessagePort + wasm - part 3 - MessagePort serializes objects using MessageData union, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59614

--HG--
extra : moz-landing-system : lando
2020-01-24 07:58:21 +00:00
Andrea Marchesini 0077863f8e Bug 1605566 - MessagePort + wasm - part 2 - implement JS::StructuredCloneScope::UnknownDestination, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59613

--HG--
extra : moz-landing-system : lando
2020-01-24 07:57:56 +00:00
shindli 78f9c85759 Backed out changeset 86d1da74131f (bug 1264175) for causing mochitest failures in dom/serviceworkers/test/test_fetch_event.html CLOSED TREE 2020-01-24 06:18:04 +02:00
Perry Jiang 64699e71f7 Bug 1264175 - remove FetchEvent.isReload r=dom-workers-and-storage-reviewers,valentin,sg,bzbarsky
isReload is no longer a property defined by the FetchEvent specification.

Differential Revision: https://phabricator.services.mozilla.com/D60774

--HG--
extra : moz-landing-system : lando
2020-01-24 02:38:01 +00:00
Jan Varga 1439211b47 Bug 1608449 - Test fixes for old localStorage implementation; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D60884

--HG--
extra : moz-landing-system : lando
2020-01-23 20:34:55 +00:00
Edwin Takahashi 7ee98bde51 Bug 1602863 - run mochitest-chrome on linux1804 r=jmaher
Changes:

Migrate over the platform of `mochitest-chrome` to ubuntu1804:

Mark as expected failure one test, and expand the disable annotation of another test to include all platform variants of linux.

Resulting runs have some intermittent failures but nothing significant.

Differential Revision: https://phabricator.services.mozilla.com/D60612

--HG--
extra : moz-landing-system : lando
2020-01-24 01:04:09 +00:00
Masayuki Nakano b9e6df1063 Bug 1606043 - Make `TextControlState::SetValueWithoutTextEditor()` notify the text control element of value changed before dispatching `eEditorInput` event r=smaug
I made `nsContentUtils::DispatchInputEvent()` update validity of event target
before dispatching `eEditorInput` event in bug 1584963.  However, this is not
enough because it updates validity only when the type of `<input>` element is
`mail`, but it's required for other types, for example, `<input required>`.

This patch reverts the hack added in bug 1584963, instead, makes
`TextControlState::SetValueWithoutTextEditor()` notifies `TextControlElement`
of value change before dispatching `eEditorInput` event because it may have made
damage to the performance if `nsContentUtils::DispatchInputEvent()` updated
**all** validity state of the event target.

Differential Revision: https://phabricator.services.mozilla.com/D60828

--HG--
extra : moz-landing-system : lando
2020-01-23 17:50:37 +00:00
Edgar Chen 46fe2fb87d Bug 1597857 - Part 3: Add tests for asynchronous environment; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D54840

--HG--
extra : moz-landing-system : lando
2020-01-23 17:30:17 +00:00
Edgar Chen 082d76945e Bug 1597857 - Part 2: Move test_bug1012662_* to dom/base/test/useractivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D54839

--HG--
rename : dom/tests/mochitest/general/test_bug1012662_common.js => dom/base/test/useractivation/file_clipboard_common.js
rename : dom/tests/mochitest/general/test_bug1012662_editor.html => dom/base/test/useractivation/test_clipboard_editor.html
rename : dom/tests/mochitest/general/test_bug1012662_noeditor.html => dom/base/test/useractivation/test_clipboard_noeditor.html
extra : moz-landing-system : lando
2020-01-22 15:36:29 +00:00
Edgar Chen ff965689f5 Bug 1597857 - Part 1: Move execCommand("cut"/"copy") to new user activation model; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D54065

--HG--
extra : moz-landing-system : lando
2020-01-23 17:27:42 +00:00
Jeff Gilbert 3c0ff11f59 Bug 1609908 - Reset WebGL layer on resize. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60755

--HG--
extra : moz-landing-system : lando
2020-01-23 22:32:57 +00:00