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

87833 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 441f9a401b Bug 998590 - Prototype accessibility level changes for headings behind a pref. r=MarcoZ
I don't think these need invalidation of any sort since they only depend on
ancestors, and we recreate accessibles when the element's ancestor chain changes.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 12:31:21 +00:00
Emilio Cobos Álvarez 5ffa02e5a8 Bug 998590 - Factor out heading accessibility level into HTMLHeadingElement. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D49407

--HG--
extra : moz-landing-system : lando
2019-10-16 12:32:10 +00:00
Emilio Cobos Álvarez 2ec3bb2b4f Bug 998590 - Cleanup HTMLHeadingElement, and add HTMLHeadingElement::FromNode. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D49406

--HG--
extra : moz-landing-system : lando
2019-10-16 14:25:05 +00:00
Frederic Wang dccb496ee8 Bug 1587570 - Remove support for the subscriptshift and superscriptshift attributes. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/CAqw0Nxw6Pg

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

--HG--
extra : moz-landing-system : lando
2019-10-16 11:57:13 +00:00
Dzmitry Malyshau 727e68fef6 Bug 1586396 - Formatting fixes in WebGPUThreading
follow-up to D48229

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

--HG--
extra : rebase_source : a8d4a2c6a797c8b930edc61f87768731a5fba9ae
extra : source : 71d5a7f29d054c17bd35868be6463353626a3869
2019-10-16 02:53:07 +00:00
Dan Minor b7760faad1 Bug 1508567 - Move call to run_function_deprecated_ to outside of message loop; r=pehrsons
This moves the call to run_function_deprecated_, which ensures it is called at
least once prior to the thread exiting, to outside of the do/while loop. As
written, it is being called every time a message is received, causing desktop
capture frame rates on Windows to be higher than expected.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 12:11:43 +00:00
Cosmin Sabou e37b7b8834 Backed out changeset 972db326c375 (bug 1587570) for causing wr failures on subsup-legacy-scriptshift-attributes-001.tentative.html 2019-10-16 14:19:24 +03:00
Frederic Wang 32ca7cf404 Bug 1587570 - Remove support for the subscriptshift and superscriptshift attributes. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/CAqw0Nxw6Pg

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

--HG--
extra : moz-landing-system : lando
2019-10-16 07:57:38 +00:00
Jan de Mooij 026691dc76 Bug 1588810 - Fix ctypes UnicodeToNative callback to not assume null-terminated strings. r=bzbarsky
Bug 1586683 replaced the JS_FlattenString in the caller with JS_EnsureLinearString but
I wasn't aware of the nsDependentString vs nsDependentSubstring distinction.

This fixes assertion failures when starting the browser with non-null-terminated
JS strings.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 06:13:07 +00:00
Jean-Yves Avenard 03c17f1738 Bug 1413750 - Handle shift by 32 bits. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D49226

--HG--
extra : moz-landing-system : lando
2019-10-15 20:18:08 +00:00
Cosmin Sabou 76d4c77ef9 Backed out changeset 71d5a7f29d05 (bug 1586396) for breaking the wpts. CLOSED TREE 2019-10-16 08:12:32 +03:00
Dzmitry Malyshau e3328f020c Bug 1586396 - Formatting fixes in WebGPUThreading
follow-up to D48229

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

--HG--
extra : moz-landing-system : lando
2019-10-16 02:53:07 +00:00
Dzmitry Malyshau f072f15267 Bug 1586396 - Add WebGPUThreading mock r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D48229

--HG--
extra : moz-landing-system : lando
2019-10-15 21:57:37 +00:00
Marcos Cáceres caed406d12 Bug 1588420 - Add init() to SharePicker.idl, which provides a means to get to browser parent r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D49215

--HG--
extra : moz-landing-system : lando
2019-10-15 00:52:09 +00:00
Edwin Takahashi af84bcf3df Bug 1561046 - remove android api >= 23, api <= 17, api == 22 from manifest files r=gbrown
This change removes the following specifiers in the `mochitest` manifest files:

- api >= 23
- api <= 17
- api == 22

Of the three, api >= 23 may present some risks, but `mochitest-media` suite does not appear to report any issues.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 00:41:42 +00:00
Lina Cambridge 9d9b081407 Bug 1588329 - Introduce `mozIStorageAsyncConnection::variableLimit`. r=mak
This is a wrapper around the `sqlite3_limit` interface that returns the
binding parameter limit. Adding this getter lets us clean up the inline
`SQLITE_MAX_VARIABLE_NUMBER` constants scattered around Places.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 21:22:57 +00:00
Geoff Brown c906073cd5 Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
With the additional tests running, task times increase; I have added one
more test chunk for android mochitest-plain.
These tests were identified from a random sampling of mochitest manifests;
I intend to enable more mochitests in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 15:07:09 +00:00
Edgar Chen 2af9855ac3 Bug 1588208 - Don't need to traverse to TimeoutHandler; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D49282

--HG--
extra : moz-landing-system : lando
2019-10-15 20:53:00 +00:00
Anny Gakhokidze 509b178241 Bug 1530413 - Inconsistent error reporting for non-function object RHS to instanceof, r=bzbarsky,tcampbell
Additionally, this fixes test dom/tests/mochitest/bugs/test_bug1530292.html
which fails if fission is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 19:55:17 +00:00
Geoff Brown d0c30405e1 Bug 1521640 - Update android crashtest assertion ranges; r=geckoview-reviewers,snorp
Avoid assertion range mismatch errors in Android crashtests.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 19:40:24 +00:00
Ehsan Akhgari 9a0578ff9c Bug 1575934 - Create the channels used to download and verify appcache entries with the cookie settings belonging to the document which created the appcache; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D49018

--HG--
extra : moz-landing-system : lando
2019-10-15 17:32:54 +00:00
Kris Taeleman 8205a49853 Bug 1585801 - Fixing crash when folder is not writable and refactored logic. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D48999

--HG--
extra : moz-landing-system : lando
2019-10-15 17:03:22 +00:00
Bobby Holley 1aac000114 Bug 1244247 - Remove racey sScriptSettingsTLSInitialized. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D49213

--HG--
extra : moz-landing-system : lando
2019-10-15 02:10:02 +00:00
Nika Layzell 965f006a70 Bug 1576714 - Part 3: Initiate subframe process switches from the parent, r=kmag
This flips the direction in which the BrowserBridge actor is generally created
such that it is generally created in the parent and sent down to a child
process.

This is done by making the decision about what kind of switch to perform in the
parent, and sending messages down to child processes async to orchestrate these
process changes.

Process launching is changed to use an async `MozPromise`-returning API in this
patch, though the actual process launching still occurs synchronously. A future
patch will enable performing async process launching through the
NewOrUsedBrowserProcess mechanism.

I know of at least a few timing issues which exist with the new logic,
especially around the state of the BrowsingContext during the process
transition. I decided to not try to fix all of these issues in this patch, as
many are complex and will require changing how we manage the lifecycle of
BrowsingContext substantially. I do, however, think that the new logic is more
reliable and has fewer timing issues than the previous logic.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 16:19:16 +00:00
Nika Layzell 090b6dbc31 Bug 1576714 - Part 2: Remove mIPCOpen from PBrowserBridge actors, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47309

--HG--
extra : moz-landing-system : lando
2019-10-15 16:19:14 +00:00
Nika Layzell 87aa1365a0 Bug 1576714 - Part 1: Move BBC initialization into BrowserBridgeChild, r=kmag
This is useful in part 3, where the initialization will need to be called from
multiple places.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 16:19:13 +00:00
Emilio Cobos Álvarez 9eb8be65f7 Bug 1576714 - Don't update scrollbar visibility for non-top-level remote browsers. r=nika
This flag is only meant for window.open() stuff, so not relevant to iframes at
all.

This preserves the current fission behavior (which is quite broken) of always
showing scrollbars.

The way to control scrollbars for iframes (the scrolling attribute) is not
handled at all for Fission, I filed a bug and left a few FIXMEs.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 14:32:18 +00:00
Coroiu Cristina 5e1f2653cf Backed out changeset bc3714b56887 (bug 1575934) for wpt failures at /html/browsers/offline/application-cache-api/api_update_error.https.html on a CLOSED TREE 2019-10-15 17:28:16 +03:00
Emilio Cobos Álvarez 58050e8a18 Bug 1555947 - Be consistent in using composed / uncomposed doc for <link rel=localization>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49180

--HG--
extra : moz-landing-system : lando
2019-10-15 14:15:14 +00:00
Ehsan Akhgari 2eaec14333 Bug 1575934 - Create the channels used to download and verify appcache entries with the cookie settings belonging to the document which created the appcache; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D49018

--HG--
extra : moz-landing-system : lando
2019-10-13 17:45:30 +00:00
Emilio Cobos Álvarez 1aaa268725 Bug 1588743 - Remove old scroll-snap implementation, and scroll snapping prefs. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D49267

--HG--
extra : moz-landing-system : lando
2019-10-15 12:40:14 +00:00
Coroiu Cristina 291d475197 Backed out changeset 1a951477dca5 (bug 1588743) for xpcshell failures at devtools/shared/tests/unit/test_css-properties-db.js on a CLOSED TREE 2019-10-15 15:35:50 +03:00
Emilio Cobos Álvarez 8325c4b9a3 Bug 1588743 - Remove old scroll-snap implementation, and scroll snapping prefs. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D49267

--HG--
extra : moz-landing-system : lando
2019-10-15 11:39:30 +00:00
Daniel Varga a14a05de00 Merge mozilla-central to autoland. On a CLOSED TREE 2019-10-15 14:08:49 +03:00
Csoregi Natalia 4c3c765916 Merge autoland to mozilla-central. a=merge 2019-10-15 06:35:26 +03:00
Csoregi Natalia 22b13f01c9 Merge autoland to mozilla-central. a=merge 2019-10-15 00:30:01 +03:00
Bryce Seager van Dyk a37965e298 Bug 1586347 - Have BrowserChild internally take care of caching logic when checking if windows support protected media. r=dminor,rhunt
Currently when checking if a window supports protected media it's up to the
caller interacting with a BrowserChild to check if a response is already
cached, to perform the check if needed, and to then set the cached response if a
call was made. This patch moves that logic internal to Browser child so that
callers need to only worry about interacting with a single function.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 19:10:39 +00:00
Ms2ger 30b4e2a534 Bug 1194860 - Remove dom/imptests; r=jgraham
This leaves the testharness files, because they are used in various mochitests.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 08:22:15 +00:00
shindli 56880b8b3b Backed out changeset 8fb923925923 (bug 1194860) for causing perma mda3 failures in dom/media/webaudio/test/test_convolverNodeChannelInterpretationChanges.html CLOSED TREE
--HG--
extra : histedit_source : f6827f0392c7d385c8a78cb2ec2458cf679afa4a
2019-10-14 19:27:08 +03:00
Narcis Beleuzu 68337a887d Backed out 3 changesets (bug 1575051) for bc failures on browser_browsingContext-getWindowByName.js . CLOSED TREE
Backed out changeset 67aaf4a157af (bug 1575051)
Backed out changeset e01256038537 (bug 1575051)
Backed out changeset 0c8f70f9328b (bug 1575051)
2019-10-14 19:19:05 +03:00
arthur.iakab c6dfda4706 Merge autoland to mozilla-central. a=merge 2019-10-14 00:35:53 +03:00
Razvan Maries 6866d3a650 Merge autoland to mozilla-central a=merge 2019-10-13 12:35:16 +03:00
Emilio Cobos Álvarez e7e8c1f792 Bug 1559077 - Implement Element.part. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D48707

--HG--
extra : moz-landing-system : lando
2019-10-13 09:40:08 +00:00
Dorel Luca 1fdb03379e Merge autoland to mozilla-central. a=merge 2019-10-13 00:20:41 +03:00
Jorg K 7bebf29692 Bug 1588290 - Added missing include of WindowProxyHolder.h to nsGlobalWindowInner.h. r=emilio a=bustage-fix
MANUAL PUSH: bustage fix for Thunderbird
2019-10-12 18:21:47 +02:00
Emilio Cobos Álvarez 536c1bc0bb Bug 1581467 - Fix checks for display: inline{,-block} which don't account for inline list items. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D48346

--HG--
extra : moz-landing-system : lando
2019-10-12 21:05:16 +00:00
Marco Bonardo cff612c7b4 Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs
Add a new FIXUP_FLAG_PRIVATE_CONTEXT to nsIURIFixup, make it use the default
private search engine when it's set.
Update consumers to pass the new flag when necessary.

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

--HG--
extra : moz-landing-system : lando
2019-10-12 12:37:51 +00:00
Boris Zbarsky dd7b61f437 Bug 1568249. Remove all the LegacyQueryInterface machinery from Web IDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D48250

--HG--
extra : moz-landing-system : lando
2019-10-11 21:15:57 +00:00
Boris Zbarsky 17e55fc804 Bug 1568883. Remove the QI implementation from Web IDL elements. r=peterv,mossop
The XBL test is being removed because it was the only remaining consumer of
xbl's implements="interfacename" in the tree, and was triggering QI on elements
for that codepath.

I've verified that a try run that MOZ_CRASHes when the C++ binding
QueryInterface implementation is invoked is green with these changes.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 22:10:20 +00:00
Ms2ger 6d1c58e46c Bug 1194860 - Remove dom/imptests; r=jgraham
This leaves the testharness files, because they are used in mochitest-chrome
tests in dom/animation/test.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 15:13:32 +00:00
Andreas Farre e5c730845d Bug 1575051 - Part 1: Remove nsIDocShellTreeItem.findItemWithName. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46285

--HG--
extra : moz-landing-system : lando
2019-10-14 12:07:14 +00:00
Simon Giesecke 776d715465 Bug 1565224 - Added tests for Key::Set* and Key::CompareKeys. r=ttung,asuth
In addition to the tests added before, which test the decoding of encoded
keys, this adds test for other member functions of Key.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 14:46:55 +00:00
Simon Giesecke 624bd4d6a8 Bug 1565224 - Added some initial gtests for dom/indexedDB/Key. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D38360

--HG--
extra : moz-landing-system : lando
2019-10-14 14:47:18 +00:00
shindli 8aa10c0b78 Backed out changeset 73cbc0f61053 (bug 1194860) for causing lint failure in /builds/worker/checkouts/gecko/dom/imptests/testharness.js CLOSED TREE 2019-10-14 16:43:11 +03:00
Ms2ger ea25c9e00d Bug 1194860 - Remove dom/imptests; r=jgraham
This leaves the testharness files, because they are used in mochitest-chrome
tests in dom/animation/test.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 12:59:10 +00:00
Boris Zbarsky f400307b7b Bug 1588231. Remove special-cased QI-for-DOM-objects handling in CPOWs, since no one uses it outside of one test. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D49025

--HG--
extra : moz-landing-system : lando
2019-10-14 10:31:28 +00:00
Ting-Yu Lin 022a920854 Bug 1587624 - Add a console log when we propagate principal writing-mode from <body>. r=emilio
I use `warningFlag` instead of `infoFlag` because even if the principal
writing-mode propagation is written in the spec, its effect might
surprise the developers.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 17:58:33 +00:00
Andreea Pavel c45f72ed14 Bug 1533759 - update test_window_open_close.html disable condition for windows64 debug. r=bc
Differential Revision: https://phabricator.services.mozilla.com/D48925

--HG--
extra : moz-landing-system : lando
2019-10-11 13:45:19 +00:00
Jan de Mooij 6febd292ea Bug 1586683 - Remove flat strings from JSAPI. r=jwalden,bzbarsky
We want to remove flat strings (JSFlatString). With this patch we only expose
linear strings (JSLinearString) to API consumers.

This is very mechanical for the most part, because code typically only cares
about linear strings and not the null-termination aspect.

CTypes's Library.cpp has some Windows-specific code where we relied on null-terminated
strings. This patch adds JS_CopyStringCharsZ for that use case.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 09:32:07 +00:00
Paul Adenot 09ea1ff867 Bug 1575638 - Determine whether or not hard panning should be performed on OSX outside the audio callback. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D47283

--HG--
extra : moz-landing-system : lando
2019-10-11 15:45:18 +00:00
Paul Adenot 8fa26945d0 Bug 1575638 - Perform the hard-right panning on macbook pros in Gecko and not in cubeb. r=kinetik
Panning support in cubeb was removed in 8c3e32bd24

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

--HG--
extra : moz-landing-system : lando
2019-10-11 15:55:02 +00:00
Paul Adenot b0a6955511 Bug 1575883 - When the real-time limit is reached on the real-time thread, demote to a normal thread. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D45691

--HG--
extra : moz-landing-system : lando
2019-10-11 16:04:32 +00:00
Paul Adenot de38beab75 Bug 1575883 - Call setrlimit at startup via the audio_thread_priority crate. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D45689

--HG--
extra : moz-landing-system : lando
2019-10-11 16:04:32 +00:00
Paul Adenot bb8066315b Bug 1575883 - Handle SIGXCPU in Gecko. r=kinetik,glandium
This allows installing a SIGXCPU handler, which will simply set an atomic to
true when reached.

Another function allows querying this atomic.

Finally, another function allows demoting the current thread from real-time
priority.

This is per-process currently, as there is only one audio callback thread that
is set to RT scheduling per process, servicing all HTMLMediaElements and MSGs.
Whenever any of those go over the soft limit, the thread is demoted.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 16:02:36 +00:00
Paul Adenot 1cc0689e53 Bug 1575883 - Remove the code that created a couple threads at startup, in Gecko. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D45688

--HG--
extra : moz-landing-system : lando
2019-10-11 16:01:24 +00:00
Perry Jiang c0d0830d63 Bug 1578919 - Don't allow AutoIPCStream to outlive its IPCStream r=asuth
In ServiceWorkerPrivateImpl::SendFetchEvent, a heap-allocated AutoIPCStream can
point to a stack-allocated IPCStream (part of an IPCInternalRequest). If this
IPCStream is destroyed before the AutoIPCStream, the AutoIPCStream will have a
dangling pointer (and this is the case if SendFetchEvent is called when the
Service Worker's state is "activating" rather than "activated").

This patch moves around the logic to handle the AutoIPCStream's lifetime to
ensure it its lifetime is within its IPCStream's lifetime. The larger issue
might be that AutoIPCStream doesn't have inherent lifetime guarantees (it'll
definitely outlive its IPCStream if it points to its embedded one, but it
doesn't own any external IPCStreams it might point to).

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

--HG--
extra : moz-landing-system : lando
2019-10-11 23:22:31 +00:00
Kris Maglione d49f0b4f15 Bug 1583400: Follow-up: Fix cycle collector assertion.
Differential Revision: https://phabricator.services.mozilla.com/D49034

--HG--
extra : moz-landing-system : lando
2019-10-11 23:22:52 +00:00
Kris Maglione bc437d3e44 Bug 1583400: Make IsCurrentInnerWindow Fission-compatible. r=bzbarsky
IsCurrentInnerWindow() should only return true when we are the current inner
of our BrowsingContext, which has a longer lifetime than individual
GlobalWindowOuter instances. In particular, if our BrowsingContext has no
GlobalWindowOuter hanging off it, that means that currently it's hosting an
inner window from some other process and we are not the current inner. If it
_does_ have a GlobalWindowOuter hanging off it, it's possible that this is not
the same as our mOuterWindow, if the BrowsingContext navigated to a different
site and then navigated back to our site.

Therefore, we need to check that we are the current inner of whatever the
BrowsingContext's current GlobalWindowOuter is, if it has one at all.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 21:53:22 +00:00
shindli e7b5981fa2 Backed out 2 changesets (bug 1568883, bug 1568249) for causing c1 failures in dom/base/test/chrome/test_cpows.xul CLOSED TREE
Backed out changeset b1a2422a6fa0 (bug 1568249)
Backed out changeset d3f5f69f38a8 (bug 1568883)
2019-10-12 00:07:48 +03:00
Kris Maglione 456c394740 Bug 1587559 - Ignore noopener.newprocess preference under Fission. r=nika
It doesn't have any useful effect given the way Fission chooses processes, and
complicates the window.open logic in ways that are hard to maintain and cause
problems.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:59:10 +00:00
Boris Zbarsky 9c62fd6061 Bug 1585684. Fix error message for permission failures when passing a union member. r=peterv
The new error message is still not great, but it's a lot better than having %s
as the description of what's going on.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 09:22:05 +00:00
Kris Maglione babdf3507e Bug 1586887: Return WindowProxyHolder rather than BrowsingContext from Window WebIDL getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48429

--HG--
extra : moz-landing-system : lando
2019-10-11 19:32:09 +00:00
Kris Maglione b45bfec73f Bug 1586911: Silence SHEntry assertion after local->remote->local iframe navigation. r=peterv
When we have a parser-created iframe which starts out in-process, transitions
to remote, and then transitions back to in-process, we create separate
DocShells for the first and last in-process loads. Since both are
network-created, and have the same child index, they both try to add
themselves as children to their parent's SHistory at the same index. And since
the entry for the first DocShell already exists at that index when we try to
add the second, that triggers an assertion.

This isn't really ideal, but it is expected given the current state of session
history under Fission. It should hopefully be solved more gracefully when the
Fission-aware session history rewrite is done, but in the mean time, I think
we should just ignore the conflict, since it's expected.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:32:02 +00:00
Boris Zbarsky 092c3345a8 Bug 1568249. Remove all the LegacyQueryInterface machinery from Web IDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D48250

--HG--
extra : moz-landing-system : lando
2019-10-07 13:12:55 +00:00
Boris Zbarsky 226ca6e774 Bug 1568883. Remove the QI implementation from Web IDL elements. r=peterv,mossop
The XBL test is being removed because it was the only remaining consumer of
xbl's implements="interfacename" in the tree, and was triggering QI on elements
for that codepath.

I've verified that a try run that MOZ_CRASHes when the C++ binding
QueryInterface implementation is invoked is green with these changes.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 09:19:32 +00:00
Boris Zbarsky 5f2a4a2274 Bug 1584630. Implement missing property use counters for HTMLDocument. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D47504

--HG--
extra : moz-landing-system : lando
2019-10-11 16:56:36 +00:00
Imanol Fernandez 2d92d3cf9a Bug 1587366 - Fix VRManagerParent::GetVRActiveStatus race condition: Notify VRActiveStatus after a the VREventObserver is created. r=rbarker,daoshengmu
Notify VRActiveStatus after a the VREventObserver is created to prevent the VRManagerParent::GetVRActiveStatus race condition.
Call VRManager::Shutdown() when the app goes to background instead of calling it in the foreground event due to the inactivity timer.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 15:58:39 +00:00
Abdoulaye Oumar Ly c558bed276 Bug 1505916 - [Fission] Part 2: Make the fullscreen code work with oop iframes. r=NeilDeakin,smaug
e10s scenario:
1. An DOM element request fulscreen mode.
2. The request is redirected to the parent.
3. Parent enters fullscreen.
4. Parent notifies child that it has finished entering fullscreen.
5. Child goes fullscreen.
6. Then, child notifies parent that it has finished transitioning to fullscreen.
4. Finally, parent notify observers that fullscreen paint has finished.

Let's go into the details of how step 5 works in the above scenario.
5.a The element that made the request is set to fullscreen.
5.b Then, the document where that element lives is set to fullscreen as well as all of its ancestors until we reach the top level document. (see Document::ApplyFulscreen method)

Now in Fission world, we may have a request comming from an oop iframe. And it that case since we won't have  to ancestor documents living in different content process(es), we will first notiy those content processes (one after another from bottom to top) to go fullscreen. Once they all do, the content process where the request originated will be told to enter fullscreen.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 14:30:28 +00:00
Mirko Brodesser b761e516f6 Bug 1587746: remove `RangeBoundaryBase::Set` and use constructor instead. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48826

--HG--
extra : moz-landing-system : lando
2019-10-11 12:43:57 +00:00
Sebastian Hengst 0af4fd28ee Bug 1587836 - update permissions related Bugzilla components stored in moz.build files. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48869

--HG--
extra : moz-landing-system : lando
2019-10-11 08:44:00 +00:00
John Dai f36d0e4438 Bug 1587490 - Skip dom/base/test/browser_messagemanager_unload.js when fission enable; r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48854

--HG--
extra : moz-landing-system : lando
2019-10-10 23:47:59 +00:00
Mirko Brodesser 7ab5217f00 Bug 1587370: remove `RangeBoundaryBase::SetAfterRef` and use constructor instead. r=smaug
Simpler.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 16:13:47 +00:00
Sylvestre Ledru 22e8ae9853 Bug 1587905 - Remove useless variable 'typeTest' declaration & assignation r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D48887

--HG--
extra : moz-landing-system : lando
2019-10-10 22:48:49 +00:00
Jan Varga 111821c2c6 Bug 1587931 - LSNG: Force kill database actors during shutdown; r=asuth
Database actors are force killed after 5 seconds if the child side doesn't
respond to the RequestAllowToClose message during shutdown.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 03:03:01 +00:00
Emilio Cobos Álvarez 135388d85f Bug 1587457 - Remove Element::GetTokenList. r=bzbarsky
Looks like this used to be more generic, looking at:

https://hg.mozilla.org/mozilla-central/rev/263812990c503f6e238b33b2fd3314284ac1be3e

But now only specific element subclasses use it, and the token lists can just be
members in the relevant subclasses.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 04:09:40 +00:00
Chun-Min Chang 1f93dd2664 Bug 1580602 - P3: Implement setActionHandler API. r=bzbarsky
Implement the setActionHandler interface. The API will be enabled behind
a pref.

Depends on D45457

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

--HG--
extra : moz-landing-system : lando
2019-10-11 02:47:54 +00:00
Chun-Min Chang f6890b3d06 Bug 1580602 - P2: Implement MediaMetadata API. r=bzbarsky
Implement the MediaMetadata interface. The API will be enabled behind a
pref.

Depends on D45456

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

--HG--
extra : moz-landing-system : lando
2019-10-10 19:18:30 +00:00
Chun-Min Chang a5fc04d902 Bug 1580602 - P1: Implement a blank MediaSession interface. r=bzbarsky
Create dummy implementations for the MediaSession interfaces. The files
are generated by running `./mach webidl-example` with necessary changes
to make it buildable.

The internal implementations are blank in this patch. They will be done
in the following patches.

Due to some spec issues, the final implementations only support some
basic operations like "play" and "pause".

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

--HG--
extra : moz-landing-system : lando
2019-10-10 19:18:30 +00:00
Jan Varga be1002620d Bug 1587263 - IDB: Use specialized directory locks for database maintenances; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48658

--HG--
extra : moz-landing-system : lando
2019-10-11 03:03:01 +00:00
Ehsan Akhgari 94103f71d2 Bug 1546112 follow-up: Fix the comment in XMLDocument.webidl
Differential Revision: https://phabricator.services.mozilla.com/D48930

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:44 +00:00
Matt Woodrow 4cefa2fdd3 Bug 1578624 - P11: Add a flag to ask the parent to not actually load the URI when opening a window, since we'll do it ourselves anyway. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47867

--HG--
extra : moz-landing-system : lando
2019-10-11 01:56:35 +00:00
Matt Woodrow a3e396d5bf Bug 1578624 - P10: Update crash reporter's URL annotation when loading a new URI from the parent. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45485

--HG--
extra : moz-landing-system : lando
2019-10-11 02:28:08 +00:00
Matt Woodrow fe675abd66 Bug 1578624 - P6: Add LoadURI to BrowsingContext's webidl. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44762

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:14 +00:00
Matt Woodrow 1acea42856 Bug 1578624 - P5: Add DisplayLoadError to BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44761

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:07 +00:00
Matt Woodrow 70bb7111fa Bug 1578624 - P4: Add an option to set mIsNavigating on the docshell when loading using BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44760

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:05 +00:00
Matt Woodrow 94578c8761 Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
Differential Revision: https://phabricator.services.mozilla.com/D44758

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:01 +00:00
Luca Greco 9da1e2339a Bug 1580561 - Part 2: Extend mozAddonManager API to allow AMO to handoff reports to the integrated abuse report panel. r=kmag,zombie,webidl,smaug
Depends on D46024

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

--HG--
extra : moz-landing-system : lando
2019-10-10 22:53:08 +00:00
Ehsan Akhgari 1fd1ce7882 Bug 1587922 - Remove the remnants of the showModalDialog code; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48892

--HG--
extra : moz-landing-system : lando
2019-10-10 22:59:28 +00:00
Edgar Chen 5d70bb26af Bug 1587801 - Rewrite test_bug260264.html to use async/await; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48848

--HG--
extra : moz-landing-system : lando
2019-10-10 15:13:01 +00:00
Edgar Chen 2ff9c5e0b4 Bug 1587801 - Rewrite test_bug260264.html to use add_task(); r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48846

--HG--
extra : moz-landing-system : lando
2019-10-10 14:35:55 +00:00
Emilio Cobos Álvarez db6212cd4a Bug 1587599 - Remove some dead/useless code in nsAttrValue. r=bzbarsky
A forward declaration right before a definition is useless, and
ParseLazyURIValue is not implemented.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 19:02:14 +00:00
Oana Pop Rus b7d78b54e2 Backed out 3 changesets (bug 1580602) for eslint in test_setactionhandler.html on a CLOSED TREE
Backed out changeset b4a5a6bc1d56 (bug 1580602)
Backed out changeset e70e3c090791 (bug 1580602)
Backed out changeset 2c90724f42fc (bug 1580602)
2019-10-10 22:14:48 +03:00
Chun-Min Chang 133cf491bb Bug 1580602 - P3: Implement setActionHandler API. r=bz
Implement the setActionHandler interface. The API will be enabled behind
a pref.

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

Depends on D45457

--HG--
extra : histedit_source : 43cf16795b27126a96441b117c9bbfdf2aea6aa9
2019-10-09 23:59:54 +03:00
Chun-Min Chang ba9959f768 Bug 1580602 - P2: Implement MediaMetadata API. r=bz
Implement the MediaMetadata interface. The API will be enabled behind a
pref.

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

Depends on D45456

--HG--
extra : histedit_source : a572d4abe88c2b4cd8c03a0fadc6c7b30a8c8798
2019-10-09 23:59:50 +03:00
Chun-Min Chang 00c83a8573 Bug 1580602 - P1: Implement a blank MediaSession interface. r=bz
Create dummy implementations for the MediaSession interfaces. The files
are generated by running `./mach webidl-example` with necessary changes
to make it buildable.

The internal implementations are blank in this patch. They will be done
in the following patches.

Due to some spec issues, the final implementations only support some
basic operations like "play" and "pause".

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

--HG--
extra : histedit_source : 2fc6e1e63347211cad3a19354a38040760c7ce0f
2019-10-10 00:14:49 +03:00
Jan Varga 9dd55053d6 Bug 1587258 - QM: Add support for creating specialized directory locks from existing directory locks; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48657

--HG--
extra : moz-landing-system : lando
2019-10-10 14:55:53 +00:00
Ehsan Akhgari ff268df84b Bug 1546112 - Remove the code for XMLDocument.load/async; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48877

--HG--
extra : moz-landing-system : lando
2019-10-10 18:20:34 +00:00
Andreas Pehrson 7064471d78 Bug 1586328 - Make Extract take an aNow argument to avoid pushing a blob the very first call. r=bryce
The first call to Extract() comes from MediaEncoderInitialized() and runs before
we dispatch the task to fire "start". With a very small timeslice (even 0), the
first call to Extract() could decide to push a blob, which is against the spec.

With this patch, the caller is in control of what time Extract() thinks "now"
is. This lets the particular call from MediaEncoderInitialized() gather data
into the blob through Extract() without being at risk of pushing a blob.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 16:24:56 +00:00
Ehsan Akhgari 8d1f83f075 Bug 1587806 - Remove Document.loadBindingDocument; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48849

--HG--
extra : moz-landing-system : lando
2019-10-10 14:21:28 +00:00
Emilio Cobos Álvarez ca0bd9ef74 Bug 1587767 - Assert that link flag handling is correct, and that NodeInfoChanged is only called on disconnected nodes. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48830

--HG--
extra : moz-landing-system : lando
2019-10-10 15:39:20 +00:00
Emilio Cobos Álvarez 3c4c6733b5 Bug 1587797 - Simplify FlushPendingLinkUpdates. r=smaug
It's only called from a runnable nowadays.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 14:29:18 +00:00
Daniel Varga b285b016fb Backed out changeset 3a52a67311e2 (bug 1580602) to reland with part2 and part3 2019-10-10 10:22:51 +03:00
Chun-Min Chang 8f0d0a884e Bug 1580602 - P1: Implement a blank MediaSession interface. r=bzbarsky
Create dummy implementations for the MediaSession interfaces. The files
are generated by running `./mach webidl-example` with necessary changes
to make it buildable.

The internal implementations are blank in this patch. They will be done
in the following patches.

Due to some spec issues, the final implementations only support some
basic operations like "play" and "pause".

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

--HG--
extra : moz-landing-system : lando
2019-10-09 21:14:49 +00:00
John Lin 1bc3a5e9be Bug 1509316 - p4: disable HW codec in WebRTC tests. r=pehrsons,drno
Differential Revision: https://phabricator.services.mozilla.com/D47713

--HG--
extra : moz-landing-system : lando
2019-10-09 23:15:56 +00:00
John Lin a7677ba80a Bug 1509316 - p3: transfer image ownership when constructing VideoData. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D45773

--HG--
extra : moz-landing-system : lando
2019-10-09 23:08:31 +00:00
John Lin aeb8b64dbe Bug 1509316 - p1: move composite listening out of VideoData/VideoSink. r=jya,mattwoodrow
On Android, decoded buffers need to be send back to MediaCodec in order to be
rendered and/or recycled. The current mechanism introduced in bug 1299068 only
works for playback(VideoData/VideoSink) but not WebRTC(VideoFrame/VideoOutput).
Move the callback to SurfaceTextureImage because VideoData and VideoFrame both
own that when using MediaCodec, and move the notification to VideoFrameContainer
for both VideoSink and VideoOutput pass frames there for compositing.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 23:08:12 +00:00
Nazım Can Altınova 2e832289ac Bug 1512500 - Record parent page information in profiler r=gerald,nika
Differential Revision: https://phabricator.services.mozilla.com/D47426

--HG--
extra : moz-landing-system : lando
2019-10-09 21:25:19 +00:00
Nazım Can Altınova bbc7701155 Bug 1583271 - Part 2: Add the registration/unregistration parts for profiler page info r=nika
See the first patch's commit message to learn why we had to change the
PageInformation's IDs to BrowsingContextID and InnerWindowID.
Previously we were registering profiler PageInformation in the nsDocShell
methods. That was not the correct place to handle page loads correctly. That's
why we had to move the registration to WindowGlobalChild::SetDocumentURI and
WindowGlobalChild::ActorDestroy. In those functions we are sure that each
document URIs will come here only once.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 20:57:51 +00:00
Nazım Can Altınova 20fc64e558 Bug 1583271 - Part 1: Change profiler page information IDs to BrowsingContextID and InnerWindowID r=gerald,nika
We were keeping nsDocShell::mHistoryId and nsDocShell::mOSHE as keys. They
weren't quite good because:
1. While loading an iframe, they were being registered twice with the same
ids(for about:blank and the real URL) sometimes.
2. It wasn't possible to access to the parent mHistoryId and mOSHE from a child
processes if the parent is in a different process. That may not be the case for
now, but it will be after fission.
So we had to find other IDs to:
1. Determine the Tab of the frames.
2. Determine the URLs of the frames.
For the first use case, we were using nsDocShell::mHistoryId for that purpose
but that was wrong. The closest thing that we can get to a tab ID is
BrowsingContext ID because they don't change after a navigation. But iframes
have different BrowsingContext's, so we still need to create a tree to
construct a tab content. That can be either in the front-end or capture time.
For the second use case, we were using a key pair of mHistoryId and mOSHE. We
now chose to keep inner window IDs for that purpose. Inner window IDs are
unique for each navigation loads because inner window correspond to each JS
window global objects. That's why we can use that without any problem. But one
problem is that we cannot handle `history.pushState` and `history.replaceState`
changes with that change since window global objects won't change during those.
But that was the best thing we can do after fission. So this will be a small
sacrifice for us to keep that functionality working after fission.
In that patch we also remove the registration/unregistration calls. We are
going to add those calls in the next patch.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 21:25:11 +00:00
Simon Giesecke 7e3b8fe633 Bug 1558522 - Ensure that file actors created after the database was closed are expired. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48046

--HG--
extra : moz-landing-system : lando
2019-10-09 03:21:22 +00:00
Brian Hackett 2ed60fe6f2 Bug 1580168 Part 1 - Add processID and isParent accessors to ProcessMessageManager, r=nika.
Differential Revision: https://phabricator.services.mozilla.com/D48084

--HG--
extra : moz-landing-system : lando
2019-10-09 20:49:28 +00:00
Jon Coppeard 58e4c9be34 Bug 1587378 - Remove TraceCallbacks method that takes raw JSObject pointers r=mccr8
This method turned out to only be used for tracing wrapper cached things. The wrapper cache has its own way of implementing barriers and contains a raw JSObject pointer. Changing this trace method to take an nsWrapperCache pointer (effectively a JSObjct**) enforces correct use of Heap<T> for other TraceCallbacks callers.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 14:34:16 +00:00
Nika Layzell ed104ffa03 Bug 1581925 - Part 1: Capture parent process JSWindowActor events at InProcessBrowserChildMessageManager, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46864

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:06 +00:00
Christoph Kerschbaumer ecf163cc61 Bug 1587417: Add about:logo to allowlist of CSP assertion. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D48703

--HG--
extra : moz-landing-system : lando
2019-10-09 13:33:15 +00:00
Thomas Nguyen e66558e70c Bug 1584787 - Fix incorrect assignment when cloning document. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47772

--HG--
extra : moz-landing-system : lando
2019-10-04 16:33:34 +00:00
Emilio Cobos Álvarez 68daa729f5 Bug 1585823 - Make ShadowRoot use consistent DOM binding wrapping, and make nsINode::WrapObject final. r=smaug
Looks like an oversight from all the way back to bug 806506.



Depends on D48538

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

--HG--
extra : moz-landing-system : lando
2019-10-09 11:53:24 +00:00
Emilio Cobos Álvarez ce8587c1bc Bug 1585823 - Remove MayNeedToLoadXBLBinding and related code. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48538

--HG--
extra : moz-landing-system : lando
2019-10-09 11:53:20 +00:00
Marcos Cáceres fbff2e387c Bug 1312422 - Web Share Base/DOM implementation r=farre
Web Share base implementation just of DOM stuff - working together with @saschanaz.

@Baku, we would greatly appreciate your review.

-Nika, as she is traveling.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 10:57:11 +00:00
Gijs Kruitbosch f885567a48 Bug 1586220 - still treat shortcut/modifier keypresses as interaction for the purposes of GCs/timers and so on, just not for the website, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48623

--HG--
extra : moz-landing-system : lando
2019-10-09 10:39:41 +00:00
Mirko Brodesser 97932aef0b Bug 1587069: slightly simplify `RangeBoundaryBase` constructors. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48651

--HG--
extra : moz-landing-system : lando
2019-10-09 10:07:46 +00:00
Tim Nguyen 822add064c Bug 1513325 - Remove textbox binding. r=emilio,dao
Differential Revision: https://phabricator.services.mozilla.com/D38955

--HG--
extra : moz-landing-system : lando
2019-10-09 09:27:28 +00:00
Andreas Pehrson cea60bb690 Bug 1586387 - Don't append a device change message to a graph that is going away. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D48553

--HG--
extra : moz-landing-system : lando
2019-10-08 21:39:30 +00:00
John Dai 23aae786e0 Bug 1586779 - Enable dom/tests/mochitest/general/test_interfaces_secureContext.html for fission; r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48523

--HG--
extra : moz-landing-system : lando
2019-10-08 19:46:50 +00:00
Brindusan Cristian ef3c975bc9 Backed out 11 changesets (bug 1578624) for build bustages. CLOSED TREE
Backed out changeset b22733eb880f (bug 1578624)
Backed out changeset cb5e15489635 (bug 1578624)
Backed out changeset f1746b2f9dec (bug 1578624)
Backed out changeset d08a099a22ff (bug 1578624)
Backed out changeset 8ebd563c72a8 (bug 1578624)
Backed out changeset d8bfec2dc9b6 (bug 1578624)
Backed out changeset 591664928bce (bug 1578624)
Backed out changeset 63f5a619b9ef (bug 1578624)
Backed out changeset ff67cc13cdf3 (bug 1578624)
Backed out changeset 43556c937a09 (bug 1578624)
Backed out changeset 49065a55694d (bug 1578624)
2019-10-09 11:50:37 +03:00
Matt Woodrow 4b70f9f830 Bug 1578624 - P11: Add a flag to ask the parent to not actually load the URI when opening a window, since we'll do it ourselves anyway. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47867

--HG--
extra : moz-landing-system : lando
2019-10-09 07:54:45 +00:00
Matt Woodrow 9d3ac3d8bc Bug 1578624 - P10: Update crash reporter's URL annotation when loading a new URI from the parent. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45485

--HG--
extra : moz-landing-system : lando
2019-10-09 06:37:52 +00:00
Matt Woodrow 31a0796cdc Bug 1578624 - P6: Add LoadURI to BrowsingContext's webidl. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44762

--HG--
extra : moz-landing-system : lando
2019-10-09 06:37:51 +00:00
Matt Woodrow 44c59ca2d5 Bug 1578624 - P5: Add DisplayLoadError to BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44761

--HG--
extra : moz-landing-system : lando
2019-10-09 06:58:34 +00:00
Matt Woodrow a48a476531 Bug 1578624 - P4: Add an option to set mIsNavigating on the docshell when loading using BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44760

--HG--
extra : moz-landing-system : lando
2019-10-09 06:37:50 +00:00
Matt Woodrow 2b3ffb9596 Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
Differential Revision: https://phabricator.services.mozilla.com/D44758

--HG--
extra : moz-landing-system : lando
2019-10-09 06:37:50 +00:00
alwu 6de4865248 Bug 1582802 - part3 : add a basic request and revoke test for audio focus. r=chunmin
We should have a basic test where do a simply request and revoke audio focus for same controller.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 18:38:14 +00:00
alwu a99f11f839 Bug 1582802 - part2 : only run owing multiple audio focus test when we disable audio focus management. r=chunmin
`TestMultipleAudioFocusNums` is used to test whether we can increase the amount of the audio focus when we don't enable audio focus management. As we won't handle the audio competing in this situation, so we allow multiple controllers owing audio focus at the same time.

However, if we enable audio focus management, we would start to handle audio competing and ensure that only one controller can own audio focus at a time. As it involves multiple components, we are not able to test it by simply using `AudioFocusManager`'s APIs.

Therefore, we should have two separate tests to test the behavior of owning audio focus when enabling or disabling audio focus management.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 02:48:13 +00:00
Narcis Beleuzu 8a602174c2 Backed out changeset cd0a4cb33b3c (bug 1578624) for bustages on 2bc84d119d5f . CLOSED TREE 2019-10-09 09:13:03 +03:00
Narcis Beleuzu 3429292547 Backed out 11 changesets (bug 1578624) for bustages on WindowGlobalChild.h . CLOSED TREE
Backed out changeset 478897956ee0 (bug 1578624)
Backed out changeset ab9c09164df0 (bug 1578624)
Backed out changeset f461f10efa46 (bug 1578624)
Backed out changeset 9b958693a003 (bug 1578624)
Backed out changeset 3b8220a15051 (bug 1578624)
Backed out changeset 180407dc57a8 (bug 1578624)
Backed out changeset bb11892e2171 (bug 1578624)
Backed out changeset 4f5c28244290 (bug 1578624)
Backed out changeset 6c02bbe5c1c5 (bug 1578624)
Backed out changeset 1d762fdce921 (bug 1578624)
Backed out changeset 818bc6e20c7d (bug 1578624)

--HG--
extra : histedit_source : ea22e628bf35425402009e9af274602f342a7476
2019-10-09 08:52:25 +03:00
Jean-Yves Avenard 0b3b194e29 Bug 1578624 - P12. Fix rebase error.
Differential Revision: https://phabricator.services.mozilla.com/D48638

--HG--
extra : moz-landing-system : lando
2019-10-09 05:06:42 +00:00
Matt Woodrow d2a7eac05f Bug 1578624 - P11: Add a flag to ask the parent to not actually load the URI when opening a window, since we'll do it ourselves anyway. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47867

--HG--
extra : moz-landing-system : lando
2019-10-03 23:15:19 +00:00
Matt Woodrow 439000d51c Bug 1578624 - P10: Update crash reporter's URL annotation when loading a new URI from the parent. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45485

--HG--
extra : moz-landing-system : lando
2019-10-04 02:03:15 +00:00
Matt Woodrow 1fc44c3bea Bug 1578624 - P6: Add LoadURI to BrowsingContext's webidl. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44762

--HG--
extra : moz-landing-system : lando
2019-10-09 04:34:40 +00:00
Matt Woodrow f964e50c40 Bug 1578624 - P5: Add DisplayLoadError to BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44761

--HG--
extra : moz-landing-system : lando
2019-10-09 04:34:12 +00:00
Matt Woodrow 1696b97a9f Bug 1578624 - P4: Add an option to set mIsNavigating on the docshell when loading using BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44760

--HG--
extra : moz-landing-system : lando
2019-10-09 04:50:16 +00:00
Matt Woodrow 4a351e1a82 Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
Differential Revision: https://phabricator.services.mozilla.com/D44758

--HG--
extra : moz-landing-system : lando
2019-10-09 04:53:06 +00:00
Perry Jiang 7019a28bcf Bug 1456995 - reduce access levels for member variables/methods in ServiceWorkerManager r=asuth
The changes are just cleanup for member variables/methods that should
be private to ServiceWorkerManager.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:48:01 +00:00
Perry Jiang b3b727b8ee Bug 1456995 - shutdown unregistered Service Workers on browser shutdown r=asuth
Also replace ServiceWorkerManager shutdown logic's normal for-loops with
range-based for-loops.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:57 +00:00
Perry Jiang 398ea07602 Bug 1456995 - give InternalRequest::mMozErrors a default initializer r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D44514

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:36 +00:00
Perry Jiang 2f362be636 Bug 1456995 - make browser_devtools_serviceworker_interception.js compatible with parent-intercept r=asuth
- Listen for observer topics in the parent-process when in parent intercept mode
- Remove an extra postMessage call (and the corresponding message handler)

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:26 +00:00
Brendan Dahl 237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

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

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Brendan Dahl c68cd30ef2 Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:14 +00:00
Alexander J. Vincent eb2ce4c505 Bug 1508165, remove support for treecol[type=password]. r=MattN,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D48573

--HG--
extra : moz-landing-system : lando
2019-10-08 23:46:23 +00:00
Perry Jiang 87c3eb5a96 Bug 1575185 - Subscribe content processes spawning Service Workers to permission updates r=asuth
Previously, Service Workers could spawn in a process that isn't subscribed
to permission updates, which could happen if that process hadn't loaded any
same-origin documents. To address this, parent-process logic for spawning
Service Workers would snapshot the permissions state to be sent to a content
process.

Unfortunately, this approach could lead to outdated, unsynchronized permissions.
Note that nsIPermissionManager::SetPermissionsWithKey is only used to initialize
permissions for a given key and is a no-op if already called with the same key
in a given process. As a result, the following sequence of events could happen:

Assume a content process CP that isn't subscribed to permission changes for an
origin A:

1) Parent process decides to spawn an origin A Service Worker in CP,
snapshotting a value V for permission P.
2) The Service Worker is spawned in CP, setting CP's permission manager's
permission P to value V (for origin A).
3) Parent process updates its permission P to a value A', which is not
broadcasted to CP (because it's not subscribed).
4) By now, the initial Service Worker has been terminated, and the parent
process decides once again to spawn an origin A Service Worker in CP.
5) The Service Worker is spawned in CP, but the call to SetPermissionsWithKey
is a no-op, leaving CP1 with a mismatched value for permission P.

An additional scenario is if the parent process updates a permission during a
remote Service Worker's lifetime.

This patch, which would subscribe CP1 to permission updates when the parent
process knows a Service Worker would be spawned in CP1, prevents these problems.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 02:23:41 +00:00
Janice Shiu 22104a71dd Bug 1587242 - refactor ValueExtractor prototype into an ES6 class r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D48353

--HG--
extra : moz-landing-system : lando
2019-10-09 01:57:07 +00:00
Michael Froman 848b82fa19 Bug 1583997 - prefer ffvpx mp3 decoding on android. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D47674

--HG--
extra : moz-landing-system : lando
2019-10-08 22:44:07 +00:00
Jorg K 4c4181f772 Bug 1583348 - Implement gTest for mozilla::dom::DOMParser::CreateWithoutGlobal(). r=bz 2019-10-08 23:18:24 +02:00
Emma Malysz dd0ffd6562 Bug 1586862, replace XUL textbox with HTML input and generic XUL box in testcases within dom directory r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D48450

--HG--
extra : moz-landing-system : lando
2019-10-08 21:09:48 +00:00
Andreas Schuler 9cde4e3ef1 Bug 1585009: Support playout-delay RTP header extension r=bwc
Added playout-delay RTP header extension for video to JsepSessionImpl::SetupDefaultRtpExtensions.
This ensures that this extension will be preserved when generating an answer to an offer (by a sending peer) containing it.
Also updated JsepSessionTest to include a test verifying that the expected default audio and video extensions are set.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 12:49:52 +00:00
Matthew Gregan f1fe14d3cc Bug 1583996 - Unlock CubebDeviceEnumerator mutex during call to cubeb_enumerate_devices. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D48475

--HG--
extra : moz-landing-system : lando
2019-10-08 18:53:55 +00:00
Cosmin Sabou 73c11d0ebd Backed out changeset 388dbc366e53 (bug 1586862) for mochitest failures on test_focus_docnav.xul CLOSED TREE 2019-10-08 21:04:02 +03:00
Tom Ritter 23ba7b6fe3 Bug 1583949 - Add a check for IsEvalAllowed to the worker callpath for eval() r=ckerschb,baku
This patch does several things.  Because Workers aren't on the main thread,
many of the things done are in the name of off main thread access.

1) Changes a parameter in IsEvalAllowed from a nsIPrincipal to a bool.
   We only used the principal to determined if it was the System Principal.
   Principals aren't thread safe and can only be accessed on Main Thread, so
   if we passed a Principal in, we would be in error. Instead only pass in
   the bool which - for workers - comes from a thread-safe location.

2) Separates out the Telemetry Event Recording and sending a message to the
   console into a new function nsContentSecurityUtils::NotifyEvalUsage. (And
   creates a runnable that calls it.)

   We do this because we will need to only call this method on the main thread.

   Telemetry Event Recording has only ever been called on the Main Thread.
   While I possibly-successfully cut it over to happen Off Main Thread (OMT)
   by porting preferences to StaticPrefs, I don't know if there were other
   threading assumptions in the Telemetry Code. So it would be much safer to
   just continue recording Event Telemetry on the main thread.

   Sending a message to the console requires calling GetStringBundleService()
   which requires main thread. I didn't investigate if this could be made
   thread-safe, I just threw it onto the main thread too.

   If, in IsEvalAllowed, we are on the main thread - we call NotifyEvalUsage
   directly. If we are not, we create a runnable which will then call
   NotifyEvalUsage for us on the main thread.

3) Ports allow_eval_with_system_principal and allow_eval_in_parent_process
   from bools to RelaxedAtomicBool - because we now check these prefs OMT.

4) In RuntimeService.cpp, adds the call to IsEvalAllowed.

5) Add resource://gre/modules/workers/require.js to the allowlist of eval
   usage. This was the script that identified this gap in the first place.
   It uses eval (twice) for structural reasons (scope and line number
   massaging.)  The contents of the eval are the result of a request to a
   uri (which may be internal, like resource://). The whole point of this
   is to implement a CommonJS require() api.

   This usage of eval is safe because the only way an attacker can inject
   into it is by either controlling the response of the uri request or
   controlling (or appending to) the argument. If they can do that, they
   are able to inject script into Firefox even if we cut this usage of eval
   over to some other type of safe(r) script loader.

   Bug 1584564 tracks making sure calls to require.js are safe.

6) Adds cld-worker.js to the allowlist. Bug 1584605 is for refactoring that
   eval usage, which is decidedly non-trivial.

7) Does _not_ enforce the eval restrictions for workers. While I've gotten
   try to be green and not throw up any instances of eval-usage by workers,
   it is much safer to deploy this is Telemetry-only mode for Workers for
   a little bit to see if anything pops up from the Nightly population.

   Bug 1584602 is for enforcing the checks.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:31:35 +00:00
John Lin 7f69cb2948 Bug 1581902 - p2: add HW H.264 check and rename methods. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D47368

--HG--
extra : moz-landing-system : lando
2019-10-08 17:15:23 +00:00
Emma Malysz 2e3c4bba36 Bug 1586862, replace XUL textbox with HTML input and generic XUL box in testcases within dom directory r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D48450

--HG--
extra : moz-landing-system : lando
2019-10-08 15:32:07 +00:00
Tom Tung 690b5a5e54 Bug 1577311 - Ensure the js object is dropped while the holder is unlinked and destructored; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47218

--HG--
extra : moz-landing-system : lando
2019-10-04 16:32:38 +00:00
Emilio Cobos Álvarez 9fc657200d Bug 1397876 - Don't invalidate style / layout of the host if it has no children. r=smaug
In that case, the flat tree cannot possibly be changing, so we don't really need
to invalidate anything.  This, in theory, is just a really minor optimization.

In practice however, the browser chrome needs it, at least for now, because XUL
elements get frames really early (because we don't have lazy frame construction
for XUL, bug 1584935), and because destroying some kinds of frames (like panels)
does have side effects (they're popups), even though ideally they shouldn't.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 13:13:35 +00:00
Liang-Heng Chen c313d09fdf Bug 1584690 - append nonexistent hash to `ContentBlockingLog`; r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D47746

--HG--
extra : moz-landing-system : lando
2019-10-04 22:23:20 +00:00
alwu cd4002626d Bug 1579127 - part2 : always present a valid timestamp on image. r=jolin
As we would calculate time difference between frames by checking their timestamp, so we would always ensure that image has valid timestamp.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 08:06:13 +00:00
Alexander Surkov f6aae7a3e7 Bug 1397876 - Replace panel and arrowpanel bindings with a custom element r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D35040

--HG--
rename : toolkit/content/widgets/popup.xml => toolkit/content/widgets/panel.js
extra : moz-landing-system : lando
2019-10-07 21:57:04 +00:00
Olli Pettay bf03e4a42e Bug 1552814, make it possible to start dnd from dragable element even if DataTransfer is empty, r=NeilDeakin
Chrome and old Edge at least seem to have this behavior, and this way the testcase on the bug doesn't trigger click anymore since
we enter dnd mode and get dragleave etc. events.

Manually tested on linux and Windows, and annyg tested on Mac

Update test_dragstart.html's draggable=true test to follow the pattern used by other tests

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

--HG--
extra : moz-landing-system : lando
2019-10-07 21:01:57 +00:00
Barret Rennie 1147cb5ce8 Bug 1586871 - Ensure we have optional data before derefing in BrowserParent r=Ehsan
Previously we assumed that we could trust the `OnLocationChange`,
`OnStateChange`, and `OnSecurityChange` IPC messages from the BrowserChild to
BrowserParent to always contain their optional data if the message was
top-level. However, if a content process becomes compromised, this could be
used to DOS the parent process by maliciously sending these messages to the
parent process with invalid data.

Now we explicitly check that the data is valid before derefing.

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

--HG--
extra : moz-landing-system : lando
2019-10-07 20:51:02 +00:00
Ricky Stewart c010710916 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal
(Same content as bad revision https://phabricator.services.mozilla.com/D48230, but with a very small change to config/external/icu/data/moz.build to fix the build breakage.)

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=833f6a69fcac689488a640b43e8e0bdaa086a56c

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

--HG--
extra : moz-landing-system : lando
2019-10-07 21:15:19 +00:00
Daniel Varga 27d99ab2df Backed out 6 changesets (bug 1581902) for xpcshell failure at xpcshell/rs-blocklist/test_gfxBlacklist_Equal_DriverNew.js. On a CLOSED TREE
Backed out changeset c900fdf28f82 (bug 1581902)
Backed out changeset 92c9ea70040d (bug 1581902)
Backed out changeset 1f588b5bf019 (bug 1581902)
Backed out changeset f837f2c5224f (bug 1581902)
Backed out changeset 44e248976099 (bug 1581902)
Backed out changeset c7dfff053f71 (bug 1581902)
2019-10-07 23:07:36 +03:00
John Lin 4015942753 Bug 1581902 - p2: add HW H.264 check and rename methods. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D47368

--HG--
extra : moz-landing-system : lando
2019-10-01 16:55:08 +00:00
Daniel Varga 052ef806b5 Backed out changeset 8d95f2c8867b (bug 1586358) for build bustage with FATAL ERROR PROCESSING MOZBUILD FILE. On a CLOSED TREE
--HG--
extra : rebase_source : 325fbad2455afc7f693087e75fa57dba79f4d86b
2019-10-07 20:22:08 +03:00
Ricky Stewart 940d91af38 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=nalexander
This patch doesn't remove all references to GENERATED_FILES, but does remove most of them, leaving only those which can't be trivially translated to the new template.

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4a25230c3992b9c5519ceb351fb37f6b2bf605e

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

--HG--
extra : moz-landing-system : lando
2019-10-07 15:31:05 +00:00
Bogdan Tara cfbd01b5d9 Backed out changeset c9b71d1747ea (bug 1552814) for assertion failures on nsBaseDragService.cpp CLOSED TREE
--HG--
extra : rebase_source : 4a3e9922237c8638c9b2edd45cc2309094f3d352
extra : amend_source : 1629bf05b705065193ec1ee3e17086db3efd254e
2019-10-07 19:02:02 +03:00
Olli Pettay 6ceb072e65 Bug 1552814, make it possible to start dnd from dragable element even if DataTransfer is empty, r=NeilDeakin
Chrome and old Edge at least seem to have this behavior, and this way the testcase on the bug doesn't trigger click anymore since
we enter dnd mode and get dragleave etc. events.

Manually tested on linux and Windows, and annyg tested on Mac

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

--HG--
extra : moz-landing-system : lando
2019-10-07 09:43:18 +00:00
Mirko Brodesser e05ff83715 Bug 1583221: change test `PreformatFlowedQuotes` to use `<span>` with `_moz_quote="true"`. r=hsivonen,jorgk
Because that's how such spans are generated in `HTMLEditor::InsertAsPlaintextQuotation`.

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

--HG--
extra : moz-landing-system : lando
2019-10-07 13:04:27 +00:00
Sebastian Streich ceace3f3aa Bug 1585055 - Flip Pref for XTCO-NoSniff and update test to match r=ckerschb
***

Use Window.opener in test

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

--HG--
extra : moz-landing-system : lando
2019-10-07 12:05:36 +00:00
Valentin Gosu 93f1ab4c3f Bug 1576480 - Fix test_setting_document.domain_idn.html for fission r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D48038

--HG--
extra : moz-landing-system : lando
2019-10-03 20:38:02 +00:00
Edgar Chen 534d501cf9 Bug 1129227 - Part 3: Add test for requesting fullscreen in async callback; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47152

--HG--
extra : moz-landing-system : lando
2019-10-07 08:54:40 +00:00
Edgar Chen 37dc0de88e Bug 1129227 - Part 2: Switch Fullscreen to use transient-user-activation API; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47151

--HG--
extra : moz-landing-system : lando
2019-09-30 13:42:40 +00:00
Edgar Chen 4567360897 Bug 1129227 - Part 1: Merge nsContentUtils::CheckRequestFullscreenAllowed into GetFullscreenError; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47018

--HG--
extra : moz-landing-system : lando
2019-09-27 20:07:37 +00:00
Andreas Pehrson ae61a0ccfa Bug 1583463 - End the tab source's track when the draw timer is guaranteed to have stopped. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47685

--HG--
extra : moz-landing-system : lando
2019-10-03 19:50:42 +00:00
Andreas Pehrson d33ecdb1dd Bug 1583463 - Don't allocate and append frames when the tab source's stream has been destroyed. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47684

--HG--
extra : moz-landing-system : lando
2019-10-03 19:50:31 +00:00
Andreas Pehrson 1827049285 Bug 1583463 - Move all usage of the tab source's mWindowId usage from media to main thread. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47683

--HG--
extra : moz-landing-system : lando
2019-10-03 19:50:20 +00:00
Andreas Pehrson 6cb1836336 Bug 1583463 - Merge the tab source's InitRunnable and StartRunnable to avoid checking mWindow on the media thread. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47682

--HG--
extra : moz-landing-system : lando
2019-10-03 19:50:09 +00:00
Andreas Pehrson f31a417045 Bug 1583463 - Lock SourceMediaStream's mMutex also during shutdown. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D47681

--HG--
extra : moz-landing-system : lando
2019-10-03 19:49:47 +00:00
Jan Varga 458afbbe35 Bug 1586315 - LSNG: Finish RequestHelper when LSRequestChild actor is unexpectedly destroyed; r=asuth
If LSRequestChild actor is unexpectedly destroyed, the nested event loop runs
until the timer fires. This patch improves that by calling the callback in
LSRequestChild::ActorDestroyed which immediatelly finishes RequestHelper and
finishes the nested event loop in the end too.

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

--HG--
extra : moz-landing-system : lando
2019-10-06 21:05:45 +00:00
Brindusan Cristian bb90c3cbf6 Backed out changeset 41c6b7e917fd (bug 1367251) for mochitest failures at test_conformance__textures__image_bitmap_from_blob__tex-2d-luminance-luminance-unsigned_byte.html. CLOSED TREE 2019-10-07 04:46:13 +03:00
aardgoose 730d95aa10 Bug 1367251 - add bindings for options to createImageBitmap and support flipY r=bzbarsky,aosmond
implementation of imageOrientation: none|flipY.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:20:53 +00:00
Sylvestre Ledru f12b9fa5c3 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-10-06 18:29:55 +00:00
Frederic Wang 138d2ac0fb Bug 1575870. Remove support for XLink on MathML elements. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/70NFnet82cU

This commit introduces a new mathml.xlink.disabled option to disable support
for XLink attributes on MathML elements together with a use counter and
deprecation warning when support is enabled. For now, support is only disabled
in Nightly.

In the past, we relied on custom MathML deprecation warnings but those are
removed here. Corresponding tests for these legacy warning messages are
also removed from test_bug553917.html.

link-1.xhtml is run with XLink support enabled (since it checks xlink:href)
while browser_contentAltClick.js and browser_contentAreaClick.js are updated
to instead check MathML links (i.e. href instead of xlink:href).

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

--HG--
extra : moz-landing-system : lando
2019-10-05 21:47:38 +00:00
Frederic Wang de2b53a526 Bug 1586008 - Factor out IsNodeInEditableRegion. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D48174

--HG--
extra : moz-landing-system : lando
2019-10-05 11:39:16 +00:00
Frederic Wang deaf58acd2 Bug 1571487 - Implement MathML DOM r=bzbarsky
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/ssTytf-pT7k

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

--HG--
extra : moz-landing-system : lando
2019-10-04 19:05:36 +00:00
Daniel Varga 1a37376531 Backed out 6 changesets (bug 1456995) for devtools failure at browser/browser_aboutdebugging_serviceworker_timeout.js. On a CLOSED TREE
Backed out changeset 2237ceb903a4 (bug 1456995)
Backed out changeset 5ce169fa82fb (bug 1456995)
Backed out changeset e64553b959f9 (bug 1456995)
Backed out changeset 7c53d7ca5ef7 (bug 1456995)
Backed out changeset 67e23c511201 (bug 1456995)
Backed out changeset e127b732bab0 (bug 1456995)
2019-10-05 01:58:08 +03:00
Kris Maglione 147f1b5141 Bug 1586119: Part 2 - Fix some more tests to almost work under Fission. r=mccr8
These still fail or timeout because of missing platform features, but at least
the tests will pass once those platform features are fixed after this.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 21:50:34 +00:00
Csoregi Natalia ce06821ff1 Merge mozilla-central to autoland. CLOSED TREE 2019-10-05 00:41:24 +03:00
Csoregi Natalia 489a461af5 Merge autoland to mozilla-central. a=merge 2019-10-05 00:36:39 +03:00
Csoregi Natalia 8768a4f5e3 Backed out 7 changesets (bug 1576714) for fission permafailures on test_bug590812.html. a=backout
Backed out changeset d0c49f00eb91 (bug 1576714)
Backed out changeset faecc9f35b49 (bug 1576714)
Backed out changeset 2e156655c31e (bug 1576714)
Backed out changeset eece722082c7 (bug 1576714)
Backed out changeset ebda40f96884 (bug 1576714)
Backed out changeset 7dce423417d8 (bug 1576714)
Backed out changeset 9a5072019168 (bug 1576714)
2019-10-05 00:08:33 +03:00
Nick Alexander c46ec74815 Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal
This does many things:

1) stops producing (and consuming) `FennecJNI*` JNI wrappers
2) removes the :app and :thirdparty Gradle projects
3) removes relevant pieces of the Gradle target configuration
4) updates lints
5) purges old configurations

After this commit, the `mobile/android` project/application builds
only GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 20:55:11 +00:00
Doug Thayer 5a64723655 Bug 1550108 - Eliminate large buffer copies from StartupCache r=froydnj
The signatures were updated in the previous patch to hand us the raw,
uncopied buffers. This just adjusts the callsites to match.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 20:45:09 +00:00
Doug Thayer 6bd29eb0c3 Bug 1550108 - Split out Input/OutputBuffer into their own file r=froydnj
This just splits out the InputBuffer and OutputBuffer helper classes
to make it cleaner for the StartupCache to include them.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 20:44:41 +00:00
Doug Thayer 47ada02be2 Bug 1550108 - Avoid decompressing entries just to check if they exist r=kmag
This will not behave exactly the same if we had previously written bad
data for the entry that would fail to decompress. I imagine this is rare
enough, and the consequences are not severe enough, that this should be
fine.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 20:44:32 +00:00
Jan de Mooij 2b758fc73b Bug 1586272 - Make dom/base/test/test_shared_compartment2.html work with Fission. r=mccr8
Use test1.mochi.test:8888 instead of example.org so that the innermost iframe is
still same-compartment with the top-level page.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 14:43:21 +00:00
shindli 6148906e03 Backed out changeset 718ef1098af5 (bug 1571487) for causing perma wpt merges in /mathml/relations/html5-tree/tabindex-002.html CLOSED TREE 2019-10-04 17:16:38 +03:00
Andreas Pehrson 1e27372f9b Bug 1512175 - Make test_mr_creation_fail.html spec compliant and test the error name. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D48106

--HG--
extra : moz-landing-system : lando
2019-10-03 22:10:52 +00:00
Andreas Pehrson 5142069c54 Bug 1512175 - Ensure there is data available immediately after the "start" event. r=jib
This patch does two things:
1) Extracts data before firing "start", instead of after, so that any
   `requestData()` or timeslice-based "dataavailable" event fired immediately
   after "start" contains data.
2) Sets mLastBlobTimeStamp on encoder initialization instead of session
   construction, so that any "dataavailable" events are held back until some
   actual data has been gathered.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 22:10:43 +00:00
Andreas Pehrson 8f82b13b3b Bug 1512175 - Don't remove tracks from the MediaEncoder on stream-removal. r=jib
We're immediately after explicitly stopping the recording anyway.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 22:10:31 +00:00
Andreas Pehrson 519394818a Bug 1512175 - Expand on MediaRecorder DOM exception throwing with messages. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D46464

--HG--
extra : moz-landing-system : lando
2019-10-03 22:10:24 +00:00
Andreas Pehrson d522cadd73 Bug 1512175 - Adapt mochitests to spec compliant mime type handling. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D17812

--HG--
extra : moz-landing-system : lando
2019-10-03 22:10:11 +00:00
Andreas Pehrson 5619da0f25 Bug 1512175 - Rename and adapt test_mr_unsupported_src.html. r=jib
With spec compliant mime type handling we no longer fire "error" on start for a
audio-only recording of a (currently) video-only MediaStream.

This patch adapts the test to more accurately name what we originally wanted to
test - that pause() after an error doesn't crash but throws. It does this by
triggering another kind of error, one that happens because we try to remove
the recorded track from the recorded stream. We still keep the behavior of
start()ing the recording before any supported tracks are available, because we
support that.

To clarify what this test is actually testing, this patch also modernizes the
code with async/await to linearize the testing of events and their order.

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

--HG--
rename : dom/media/test/test_mediarecorder_unsupported_src.html => dom/media/test/test_mediarecorder_onerror_pause.html
extra : moz-landing-system : lando
2019-10-03 22:10:04 +00:00
Andreas Pehrson f1b5675317 Bug 1512175 - Remove test_mr_getencodeddata.html. r=jib
This test relied on us choosing to record audio/ogg because of the only audio
track, which would fail and result in an error with ogg support disabled.

We now per spec select mime type synchronously on construction instead of after
detecting the stream's tracks - and so fall back to video/webm when the mime
type is defaulted. With this the test times out because we're recording fine.

When disabling also webm encoding we follow the spec's "note that this case is
essentially equivalent to leaving up to the UA the choice of container and
codecs on constructor", and choose some unknown mime type that is not supported
(none are), thus ending up throwing NotSupportedError.

Not much remains of this test with these changes, and what actually remains is
covered by other tests, which warrants removal.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 22:09:52 +00:00
Andreas Pehrson b951651318 Bug 1512175 - Extend the constrained MediaRecorder mime type when needed. r=jib
This is the last step to making the MediaRecorder's mime type handling up to
spec, and has a real effect only if the constrained mime type is empty, or doesn't
contain any codecs.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 09:06:08 +00:00
Andreas Pehrson cc585e56a9 Bug 1512175 - Implement MediaRecorder MIME type constraining to spec. r=jib,smaug,bryce
This leaves out support for extending the mime type with the selected container
and codecs, and support in MediaEncoder for using a specific mime type.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 22:09:38 +00:00
Andreas Pehrson 047e370259 Bug 1512175 - Expand mochitest for webm mime type support with various casing. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47068

--HG--
extra : moz-landing-system : lando
2019-10-03 22:09:18 +00:00
Andreas Pehrson e7ff4e1d3b Bug 1514158 - Simplify exception asserts in test_mr_state_transition.html. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D41590

--HG--
extra : moz-landing-system : lando
2019-10-03 22:09:09 +00:00
Andreas Pehrson 7dd1457975 Bug 1514158 - Bring MediaRecorder closer to spec prose for stop, pause, resume, requestData methods. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D41589

--HG--
extra : moz-landing-system : lando
2019-10-03 22:09:07 +00:00
Andreas Pehrson 24e87cb986 Bug 1514158 - Fix MediaRecorder static-analysis warnings. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D41588

--HG--
extra : moz-landing-system : lando
2019-10-03 22:09:06 +00:00
Andreas Pehrson bf71d848ad Bug 1514158 - Make VideoTrackEncoder's key frame interval uint32_t. r=bryce
This aligns it better with MediaRecorder's timeslice which was changed from
int32 to uint32 earlier.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 22:08:55 +00:00
Andreas Pehrson 7bdf7c09ae Bug 1514158 - Bring MediaRecorder to spec on new bitrate handling. r=bryce
This brings the MediaRecorder constructor and start() to spec on most parts
except mime type handling (bug 1512175). The flow is also improved to better
follow along in the algorithms of the spec.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 08:54:16 +00:00
Andreas Pehrson a0694fe0fc Bug 1514158 - Add audioBitsPerSecond and videoBitsPerSecond to MediaRecorder. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D33761

--HG--
extra : moz-landing-system : lando
2019-10-04 08:53:36 +00:00
Andreas Pehrson 2aae487454 Bug 1514158 - Remove onwarning from MediaRecorder. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D33760

--HG--
extra : moz-landing-system : lando
2019-10-03 22:08:43 +00:00
Jason Laster 51d1769ca8 Bug 1583244 - Provide unfuzzed timings for UserTiming markers. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D48092

--HG--
extra : moz-landing-system : lando
2019-10-04 18:51:45 +00:00
Tom Ritter cdd2029b79 Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku
Unlike WorkletPrincipal, a WorkerPrincipal had been a simple static object shared by
all Workers. We never needed to consult it about an individual Worker before. Now we
do. So we cut it over from a static object to individual objects for each Worker.

We have an off main thread access problem for the Principal however, WorkerPrivate
has a method UsesSystemPrincipal that returns a bool that was initialized from the
Principal on the main thread. We copy that pattern and add a
UsesAddonOrExpandedAddonPrincipal method that will be called by the
isSystemOrAddonPrincipal method we must implement so we can inheirt from JSPrincipal.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:37:09 +00:00
Tom Ritter 446f05f035 Bug 1576254 - Add isSystemOrAddonPrincipal to WorkletPrincipal r=baku
WorkletPrincipal inherits JSPrincipals so we need to add the isSystemOrAddonPrincipal
method to it. As of Bug 1578623 rev a83797ed249c - Worklets are always NullPrincipal,
so we can just return false.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:36:40 +00:00
Tom Ritter cac810aea7 Bug 1576254 - Update wasmForTrustedPrinciples to use a separate pref r=luke
Differential Revision: https://phabricator.services.mozilla.com/D47474

--HG--
extra : moz-landing-system : lando
2019-10-04 17:36:08 +00:00
Tom Ritter 754ebbc4d7 Bug 1576254 - Add a wasmForTrustedPrinciples bool onto ContextOptions that (currently) behaves the exact same as the wasm bool r=luke
In a future commit we will tie this boolean to its own preference value, but here we
initialize it with the same value as the wasm boolean.

We also update wasm::HasSupport to check the to-be-added isSystemOrAddonPrincipal()
method on JSPrincipals to determine which member (wasm or wasmForTrustedPrinciples)
to consult.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:35:46 +00:00
Tom Ritter 206eea6eb4 Bug 1576254 - Move Clamping and Jittering from RealmCreationOptions to Behaviors r=luke
CreationOptions are intended to be immutable and not change during realm operation.
Behaviors change, and clamping/jittering should reside on behaviors.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:35:26 +00:00
Perry Jiang c4528c3537 Bug 1456995 - reduce access levels for member variables/methods in ServiceWorkerManager r=asuth
The changes are just cleanup for member variables/methods that should
be private to ServiceWorkerManager.

Depends on D48179

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:28:35 +00:00
Perry Jiang ec209ccb5c Bug 1456995 - shutdown unregistered Service Workers on browser shutdown r=asuth
Also replace ServiceWorkerManager shutdown logic's normal for-loops with
range-based for-loops.

Depends on D43170

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:28:35 +00:00
Perry Jiang 093f60ebb3 Bug 1456995 - give InternalRequest::mMozErrors a default initializer r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D44514

--HG--
extra : moz-landing-system : lando
2019-10-04 14:36:14 +00:00
Perry Jiang 1c644236c6 Bug 1456995 - make browser_devtools_serviceworker_interception.js compatible with parent-intercept r=asuth
- Listen for observer topics in the parent-process when in parent intercept mode
- Remove an extra postMessage call (and the corresponding message handler)

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

--HG--
extra : moz-landing-system : lando
2019-10-04 13:16:28 +00:00
Bryce Seager van Dyk 920eedb463 Bug 1586043 - Gracefully handle IPC failure when checking if MediaKeySystemAccess is allowed on Windows. r=dminor
Because it's possible to have the IPC fail when checking if MediaKeySystemAccess
should be allowed, we should gracefully handle the IPC failure case. If we don't
gracefully handle here, closing the tab during requestMediaKeySystemAccess can
result in crashing the content process.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:10:22 +00:00
Frederic Wang 9e4fb5ac15 Bug 1571487 - Implement MathML DOM r=bzbarsky
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/ssTytf-pT7k

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

--HG--
extra : moz-landing-system : lando
2019-10-04 08:45:04 +00:00
shindli e123be5213 Backed out changeset c211bfbf59b2 (bug 1585747) for causing mochitest permafailures in /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/dom/BrowsingContextGroup CLOSED TREE 2019-10-04 12:02:59 +03:00
Julian Descottes 4a6c0d2c6f Bug 1585747 - Remove devtools-specific workaround in BrowsingContext.cpp r=nika
Depends on D47963

This workaround was only used by DevTools when using a chrome frame. DevTools toolbox now always uses frame type=content, so the workaround can be removed.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 07:03:49 +00:00
Tim Nguyen eec7bc66fd Bug 1586141 - Remove document.createXULElement("textbox") usages from tests. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D48138

--HG--
extra : moz-landing-system : lando
2019-10-04 00:56:28 +00:00
Nika Layzell 89b22d83ef Bug 1576714 - Part 3: Initiate subframe process switches from the parent, r=kmag
This flips the direction in which the BrowserBridge actor is generally created
such that it is generally created in the parent and sent down to a child
process.

This is done by making the decision about what kind of switch to perform in the
parent, and sending messages down to child processes async to orchestrate these
process changes.

Process launching is changed to use an async `MozPromise`-returning API in this
patch, though the actual process launching still occurs synchronously. A future
patch will enable performing async process launching through the
NewOrUsedBrowserProcess mechanism.

I know of at least a few timing issues which exist with the new logic,
especially around the state of the BrowsingContext during the process
transition. I decided to not try to fix all of these issues in this patch, as
many are complex and will require changing how we manage the lifecycle of
BrowsingContext substantially. I do, however, think that the new logic is more
reliable and has fewer timing issues than the previous logic.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 21:40:24 +00:00
Nika Layzell 7b1c569d54 Bug 1576714 - Part 2: Remove mIPCOpen from PBrowserBridge actors, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47309

--HG--
extra : moz-landing-system : lando
2019-10-03 21:40:22 +00:00
Nika Layzell 6131a7ef18 Bug 1576714 - Part 1: Move BBC initialization into BrowserBridgeChild, r=kmag
This is useful in part 3, where the initialization will need to be called from
multiple places.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 21:40:20 +00:00
Frederic Wang 7194becede Bug 1548522 - Remove support for the menclose's "radical" notation. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/vwAkuZIEhnY

* Introduce a new preference option to disable menclose's "radical" notation.
* Disable the notation in Nightly and when running WPT tests.
* Enable the notation in other channels together with a counter and
  deprecation warning.
* Update WPT test legacy-menclose-radical-notation.html
  - Fix test: "radical" should be equivalent to "", which is not the same as
    the default value "longdiv".
    See https://github.com/mathml-refresh/mathml/issues/144
  - Add a test "box radical" which should be equivalent to "box".
  - Remove failure expectation.
* Enable the radical notation for MathML reftests testing it.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 21:37:03 +00:00
Hiroyuki Ikezoe e198ba4111 Bug 1585770 - Copy KeyframeEffect::mBaseStyle in the KeyframeEffect copy constructor. r=boris
The original test case doesn't crash reliably but the test case in this commit
crashes 100% locally without this fix.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 20:00:27 +00:00
Andreas Pehrson 49aac36888 Bug 1568169 - Remove SourceListener from window listener in all gUM failure paths. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47901

--HG--
extra : moz-landing-system : lando
2019-10-03 20:12:22 +00:00
Cosmin Sabou 6d8206fdb8 Backed out changeset d2613eaa1369 (bug 1548522) for reftest failures on legacy-menclose-radical-notation.html. 2019-10-03 23:15:50 +03:00
Frederic Wang 8a93c86e31 Bug 1548522 - Remove support for the menclose's "radical" notation. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/vwAkuZIEhnY

* Introduce a new preference option to disable menclose's "radical" notation.
* Disable the notation in Nightly and when running WPT tests.
* Enable the notation in other channels together with a counter and
  deprecation warning.
* Update WPT test legacy-menclose-radical-notation.html
  - Fix test: "radical" should be equivalent to "", which is not the same as
    the default value "longdiv".
    See https://github.com/mathml-refresh/mathml/issues/144
  - Add a test "box radical" which should be equivalent to "box".
  - Remove failure expectation.
* Enable the radical notation for MathML reftests testing it.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 00:01:12 +00:00
Tim Nguyen 91976e6a66 Bug 1586018 - Remove a11y tree tests, reftests and crashtests only related to textbox. r=surkov,emilio
Differential Revision: https://phabricator.services.mozilla.com/D48080

--HG--
extra : moz-landing-system : lando
2019-10-03 18:01:08 +00:00
Jonathan Kingston 14ec3140a9 Bug 1585364 - Fix IsFrame check to work in fission. r=ckerschb,nika
Differential Revision: https://phabricator.services.mozilla.com/D47783

--HG--
extra : moz-landing-system : lando
2019-10-03 16:42:25 +00:00
Geoff Brown 64667c1a4f Bug 1575666 - skip crashtest 1257700.html on Android; r=geckoview-reviewers,snorp
This test fails intermittently on geckoview; when it fails, many later-running
tests fail also, causing some confusion in bug classification.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 15:10:37 +00:00
Byron Campen [:bwc] 9067a09c0a Bug 1470568: Remove the rid= and pt= stuff from our simulcast parsing. Also, handle paused rids correctly. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D47658

--HG--
extra : moz-landing-system : lando
2019-10-02 20:20:07 +00:00
Olli Pettay 7770e575a0 Bug 1585606 - Make EventStateManager::GenerateDragGesture a tad more readable and rename FlushPendingEvents to hint what it actually does, r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D47889

--HG--
extra : moz-landing-system : lando
2019-10-03 11:26:39 +00:00
Simon Giesecke 840f75da74 Bug 1168606 - Replaced custom for loops by range-based for or STL algorithms. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D44988

--HG--
extra : moz-landing-system : lando
2019-10-03 07:56:57 +00:00
Simon Giesecke cd0b6f05a1 Bug 1168606 - Use const where easily possible. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D43631

--HG--
extra : moz-landing-system : lando
2019-10-03 07:56:45 +00:00
Simon Giesecke 16d87d7487 Bug 1168606 - Avoid copying keys on cursor creation. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D43470

--HG--
extra : moz-landing-system : lando
2019-10-03 07:56:32 +00:00
Perry Jiang 5b28c5606d Bug 1581187 - only shutdown remote Service Workers on browser shutdown r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48044

--HG--
extra : moz-landing-system : lando
2019-10-03 09:58:46 +00:00
Tom Tung 9f89b08062 Bug 1577311 - Close the stream if there is a failure during the creation; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47118

--HG--
extra : moz-landing-system : lando
2019-10-02 07:58:10 +00:00
Matthew Gregan 802e12a38b Bug 1585843 - Don't try to reject disconnected promise in AudioSink::Errored. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D48002

--HG--
extra : moz-landing-system : lando
2019-10-03 07:32:29 +00:00
Tim Nguyen 016c4ccd5b Bug 1514926 - Followup: remove now unused arrowscrollbox check from MayNeedToLoadXBLBinding. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D48023

--HG--
extra : moz-landing-system : lando
2019-10-03 04:49:15 +00:00
Emilio Cobos Álvarez c863ef674b Bug 1585819 - Somewhat dubiously appease the hazard analysis. r=bustage
It was complaining about

  "unrooted '<returnvalue>' of type 'JSObject*' live across GC call at dom/base/Element.cpp:588"

Where the GC call is:

Function '_ZN7mozilla3dom7Element10WrapObjectEP9JSContextN2JS6HandleIP8JSObjectEE$JSObject* mozilla::dom::Element::WrapObject(JSContext*, JS::Handle<JSObject*>)' has unrooted '<returnvalue>' of type 'JSObject*' live across GC call '_ZN6RefPtrI12nsXBLBindingED1Ev$RefPtr<T>::~RefPtr() [with T = nsXBLBinding]' at dom/base/Element.cpp:588
    Element.cpp:588: Assign(64,65, return := __temp_29**)
    Element.cpp:588: Call(65,66, binding.~__dt_comp ()) [[GC call]]
    Element.cpp:588: Call(66,67, principal.~__dt_comp ())
    Element.cpp:588: Call(67,68, uri.~__dt_comp ())
    Element.cpp:588: Call(68,69, style.~__dt_comp ())
    Element.cpp:588: Call(69,70, obj.~__dt_comp ())
    Element.cpp:589:  [[end of function]]
GC Function: _ZN6RefPtrI12nsXBLBindingED1Ev$RefPtr<T>::~RefPtr() [with T = nsXBLBinding]
    RefPtr<T>::~RefPtr() [with T = nsXBLBinding] [[base_dtor]]
    static void RefPtr<T>::ConstRemovingRefPtrTraits<U>::Release(U*) [with U = nsXBLBinding; T = nsXBLBinding]
    static void mozilla::RefPtrTraits<U>::Release(U*) [with U = nsXBLBinding]
    uint32 nsXBLBinding::Release()
    uint64 nsCycleCollectingAutoRefCnt::decr(void*, nsCycleCollectionParticipant*, uint8*) [with void (* suspect)(void*, nsCycleCollectionParticipant*, nsCycleCollectingAutoRefCnt*, bool*) = NS_CycleCollectorSuspect3; uintptr_t = long unsigned int]
    NS_CycleCollectorSuspect3
    nsCycleCollector.cpp:void SuspectAfterShutdown(void*, nsCycleCollectionParticipant*, nsCycleCollectingAutoRefCnt*, uint8*)
    nsCycleCollectionParticipant.DeleteCycleCollectable
    void nsIContent::cycleCollection::DeleteCycleCollectable(void*)
    nsIContent.DeleteCycleCollectable
    unresolved nsIContent.DeleteCycleCollectable

I don't think the analysis is right since the Rooted<> thing will go out of the
scope after the RefPtr.

MANUAL PUSH: Bustage fix for broken (I think) analysis
2019-10-03 06:38:22 +02:00
Emilio Cobos Álvarez d4d8e98bd6 Bug 1585819 - Restrict loading XBL bindings from WrapObject to the little amount of XUL elements that remain with bindings. r=bzbarsky
People keep shooting themselves in the feet because of this codepath and writing
slow code.

There are just a few elements with bindings left, so just check those.

Also simplify a bit the code. The XUL element + tagname check should be pretty
fast now, and ComputedStyle objects no longer keep weak pointers to pres
contexts and such, so can be safely kept on a RefPtr across an style flush.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 02:31:16 +00:00
Emilio Cobos Álvarez c09aa065ce Bug 1585818 - Don't check for <html:object> or <html:embed> in MayNeedXBLBinding. r=bzbarsky
They no longer load bindings since quite a while ago.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 02:34:30 +00:00
Dorel Luca 46491fb5f0 Backed out changeset 62b78793d12e (bug 1583867) for WPT failures in webrtc/RTCRtpReceiver-getSynchronizationSources.https.html 2019-10-03 02:43:28 +03:00
Nico Grunbaum 6722b1c2c1 Bug 1583867 - add rtpTimestamp field to RTP sync/contrib sources; r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D47096

--HG--
extra : moz-landing-system : lando
2019-10-02 21:55:33 +00:00
Simon Giesecke 49db1f8c5f Bug 1586189 - Provide useful assertion messages. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D48712

--HG--
extra : moz-landing-system : lando
2019-10-10 07:17:16 +00:00
Tim Nguyen 79c7f01c56 Bug 1588066 - Remove remaining references to textbox. r=surkov,emilio,webdriver-reviewers,bgrins,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D48958

--HG--
extra : moz-landing-system : lando
2019-10-14 07:41:35 +00:00
Sebastian Streich 1aa0b1244d Bug 1583871 Refactor ThirdpartyUtil.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47099

--HG--
extra : moz-landing-system : lando
2019-10-02 15:10:40 +00:00
Jon Coppeard 54bb6cf850 Bug 1585697 - Refactor nsJSContext::EndCycleCollectionCallback to split out telemetry and logging code into CycleCollectorStats methods r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D47922

--HG--
extra : moz-landing-system : lando
2019-10-02 17:19:24 +00:00
Jon Coppeard 0485aa7053 Bug 1585697 - Move forget skippable stats into CycleCollectorStats class r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D47920

--HG--
extra : moz-landing-system : lando
2019-10-02 17:19:09 +00:00
Jon Coppeard 53ac617cd2 Bug 1585697 - Make CycleCollectorStats instance static for consistency with other globals r=mccr8
I'm not sure what if there's a preference either way, but all the other globals in nsJSEnvironement.cpp are static so I made the CycleCollectorStats global static too.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 17:19:00 +00:00
Jon Coppeard acce9ba546 Bug 1585697 - Move CycleCollectorStats definition to the top of the file r=mccr8
This needs to be defined before FireForgetSkippable for the subsequnt patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 17:18:44 +00:00
Dzmitry Malyshau b91906eeac Bug 1581710 - Update WebGPU IDL bindings r=jgilbert,bzbarsky
This mostly updates the bindings to the current state.
No actual logic backing them yet.

*Note*: the IDL does *not* need to be checked for matching the upstream spec precisely at this stage. The upstream is evolving, we just need to update in order to start integrating the implementation. What needs to be checked is - how C++ represents the IDL, esp with regards to derived classes, events, and hierarchies.

The trickiest points, arguably, are:
  - WebGPU -> GPU prefix change
  - the goop for interfaces that are not final

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

--HG--
rename : dom/webgpu/InputState.cpp => dom/webgpu/DeviceLostInfo.cpp
rename : dom/webgpu/Fence.h => dom/webgpu/DeviceLostInfo.h
rename : dom/webgpu/BlendState.cpp => dom/webgpu/OutOfMemoryError.cpp
rename : dom/webgpu/LogEntry.h => dom/webgpu/OutOfMemoryError.h
rename : dom/webgpu/BindGroup.h => dom/webgpu/ProgrammablePassEncoder.cpp
rename : dom/webgpu/BlendState.cpp => dom/webgpu/RenderBundle.cpp
rename : dom/webgpu/BlendState.h => dom/webgpu/RenderBundle.h
rename : dom/webgpu/AttachmentState.cpp => dom/webgpu/ValidationError.cpp
rename : dom/webgpu/AttachmentState.h => dom/webgpu/ValidationError.h
extra : moz-landing-system : lando
2019-10-02 16:46:03 +00:00
Boris Zbarsky 232603d16a Bug 1584009 part 2. Move some WebRTC dictionaries back into the file they should have lived in originally. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47196

--HG--
extra : moz-landing-system : lando
2019-10-02 14:26:37 +00:00
Boris Zbarsky a1e9012980 Bug 1584009 part 1. Loosen up the check for dictionary-containing-union-containing-dictionary. r=peterv
Since unions can now end up a in binding header, it's only a problem when the
two dictionaries are in one header and the union is in a different one.  If all
three are in the same header, for example, there is no issue.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 14:16:34 +00:00
Gurzau Raul 1a47fa0d8f Backed out 2 changesets (bug 1584009) for build bustages at MediaTrackConstraints.h on a CLOSED TREE.
Backed out changeset 1693187dbddf (bug 1584009)
Backed out changeset 0932a7fdb46b (bug 1584009)
2019-10-02 17:12:33 +03:00
Boris Zbarsky 07bb8857ba Bug 1584009 part 2. Move some WebRTC dictionaries back into the file they should have lived in originally. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47196

--HG--
extra : moz-landing-system : lando
2019-10-01 22:40:32 +00:00
Boris Zbarsky 860640c3fc Bug 1584009 part 1. Loosen up the check for dictionary-containing-union-containing-dictionary. r=peterv
Since unions can now end up a in binding header, it's only a problem when the
two dictionaries are in one header and the union is in a different one.  If all
three are in the same header, for example, there is no issue.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 13:10:34 +00:00
Andrew Swan ad1e134202 Bug 1580816 Part 2: Expose document.l10n to privileged extensions r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D45665

--HG--
extra : moz-landing-system : lando
2019-09-28 19:42:10 +00:00
Byron Campen [:bwc] d17eabb595 Bug 1581898: Add test-case that moves payload type 101 to the front. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D46829

--HG--
extra : moz-landing-system : lando
2019-10-02 07:58:22 +00:00
Paul Adenot 841322b2c4 Bug 1584523 - Add tracing statements to `AudioStream.cpp` to diagnose real-time safety issues. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D47431

--HG--
extra : moz-landing-system : lando
2019-10-02 12:16:24 +00:00
Paul Adenot bc71a97b2f Bug 1584522 - Change the audio callback trace logger to be more ergonomic. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D47430

--HG--
extra : moz-landing-system : lando
2019-10-02 12:16:22 +00:00
Sebastian Streich e73c676976 Bug 1585297- Use Principal->SchemeIs in nsGeolocation.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47750

--HG--
extra : moz-landing-system : lando
2019-10-01 12:54:56 +00:00
Bogdan Tara e2c099719a Backed out changeset daecd36223c9 (bug 1584007) for ClientManagerService.cpp failures CLOSED TREE 2019-10-02 14:36:27 +03:00
Tom Tung 6a0e551480 Bug 1584986 - P3 - Correct the function in the test to fix the try failure; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47747

--HG--
extra : moz-landing-system : lando
2019-10-02 07:57:53 +00:00
Tom Tung c0f0ba97a7 Bug 1584986 - P2 - Rename listInitializedOrigins to listOrigins; r=asuth,johannh
Differential Revision: https://phabricator.services.mozilla.com/D47741

--HG--
rename : dom/quota/test/unit/test_listInitializedOrigins.js => dom/quota/test/unit/test_listOrigins.js
extra : moz-landing-system : lando
2019-10-02 07:57:52 +00:00
Tom Tung 1acaad7116 Bug 1584986 - P1 - Remove the early return for listInitializedOrigins; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47740

--HG--
extra : moz-landing-system : lando
2019-10-02 07:57:57 +00:00
Jonathan Kingston e7760ef29c Bug 1585604 - Remove telemetry for mixed object subrequst counting. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47888

--HG--
extra : moz-landing-system : lando
2019-10-02 11:17:28 +00:00
Tom Tung 3058858e69 Bug 1581067 - P6 - Change the test due to P5; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47874

--HG--
extra : moz-landing-system : lando
2019-10-02 10:38:55 +00:00
Tom Tung 9e63838884 Bug 1581067 - P5 - Only remove the temporary body files & body directories when it's in the initializing stage; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47770

--HG--
extra : moz-landing-system : lando
2019-10-02 10:38:55 +00:00
Tom Tung 30f7de3114 Bug 1581067 - P4 - Add a test to verify the result; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47452

--HG--
extra : moz-landing-system : lando
2019-10-01 13:08:15 +00:00
Tom Tung f77e1ddedb Bug 1581067 - P3 - Suppress the error reuslt for open stream; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47451

--HG--
extra : moz-landing-system : lando
2019-09-30 21:13:11 +00:00
Andreas Pehrson 1bdb34c6ec Bug 1454998 - Rename streams to tracks. r=padenot,karlt,smaug
This renames the following (in alphabetical order, non-exhaustive):

AudioCaptureStream -> AudioCaptureTrack
AudioNodeStream -> AudioNodeTrack
AudioNodeExternalInputStream -> AudioNodeExternalInputTrack
DirectMediaStreamTrackListener -> DirectMediaTrackListener
MediaStream -> MediaTrack
  - Note that there's also dom::MediaTrack. Namespaces differentiate them.
MediaStreamGraph -> MediaTrackGraph
MediaStreamTrackListener -> MediaTrackListener
MSG -> MTG (in comments)
ProcessedMediaStream -> ProcessedMediaTrack
SharedDummyStream -> SharedDummyTrack
SourceMediaStream -> SourceMediaTrack
StreamTime -> TrackTime
TrackUnionStream -> ForwardedInputTrack
  - Because this no longer takes a union of anything, but only a single track
    as input.

Other minor classes, members and comments have been updated to reflect these
name changes.

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

--HG--
rename : dom/media/AudioCaptureStream.cpp => dom/media/AudioCaptureTrack.cpp
rename : dom/media/AudioCaptureStream.h => dom/media/AudioCaptureTrack.h
rename : dom/media/TrackUnionStream.cpp => dom/media/ForwardedInputTrack.cpp
rename : dom/media/TrackUnionStream.h => dom/media/ForwardedInputTrack.h
rename : dom/media/MediaStreamGraph.cpp => dom/media/MediaTrackGraph.cpp
rename : dom/media/MediaStreamGraph.h => dom/media/MediaTrackGraph.h
rename : dom/media/MediaStreamGraphImpl.h => dom/media/MediaTrackGraphImpl.h
rename : dom/media/MediaStreamListener.cpp => dom/media/MediaTrackListener.cpp
rename : dom/media/MediaStreamListener.h => dom/media/MediaTrackListener.h
rename : dom/media/webaudio/AudioNodeExternalInputStream.cpp => dom/media/webaudio/AudioNodeExternalInputTrack.cpp
rename : dom/media/webaudio/AudioNodeExternalInputStream.h => dom/media/webaudio/AudioNodeExternalInputTrack.h
rename : dom/media/webaudio/AudioNodeStream.cpp => dom/media/webaudio/AudioNodeTrack.cpp
rename : dom/media/webaudio/AudioNodeStream.h => dom/media/webaudio/AudioNodeTrack.h
extra : moz-landing-system : lando
2019-10-02 10:23:02 +00:00
Andreas Pehrson 0ef0cab288 Bug 1454998 - Remove AudioNodeStream::SampleRate(). r=karlt
AudioNodeStream is a subclass of MediaStream, which now exposes a
public const mSampleRate member.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:55 +00:00
Andreas Pehrson 8028758d0e Bug 1454998 - Remove the notion of streams from MediaStreamGraph. r=padenot,karlt
This change mainly removes the `mTracks` member from MediaStream and moves all
associated members up a level, so that a MediaStream in practice represents a
single track.

Classes will be renamed in a future patch to reflect this.

Other changes include:

The new `mEnded` member of MediaStream changes meaning to only become true when
all data in the stream has been processed. It stems from
StreamTracks::Track::mEnded which used to become true as soon as the last bit of
data had been added to a track, and there could still be data in the track that
would get processed in future iterations. We are moving towards not having any
future data in tracks, which is why this change is ok to make -- keeping the old
behavior will soon not make sense.

TrackUnionStream is changed to no longer take a list of streams as input and
forward the union of their tracks to itself. Instead it's limited to having one
track as input at a time.

The autofinishing functionality that TrackUnionStream had before has been
transformed into an autoending functionality to allow it to defer ending until
its been told that it's ok to end through the control API. This lets a single
TrackUnionStream span the lifetime of multiple inputs, which will be useful for
making DecodedStream spec compliant with HTMLMediaElement::CaptureStream(), and
for implementing the currently discussed MediaRecorder::ReplaceTrack(), to name
a few potential use cases.

AudioNodeStreams used to only have a track (and thus an AudioSegment) if the
EXTERNAL_OUTPUT flag was enabled on them. With all MediaStreams now representing
a track, AudioNodeStreams inherently have an AudioSegment as a member. It is
however only used with data if the EXTERNAL_OUTPUT flag is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:53 +00:00
Andreas Pehrson b65bd286d2 Bug 1454998 - Remove calls to SetStreamOrderDirty() after affecting MediaStreams' finished state. r=karlt
The stream order does not depend on streams' finished state, so these calls are
unnecessary.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:51 +00:00