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

87833 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 68f9b9a009 Bug 1556854 - Enable ESLint for dom/media/test/, disabling failing rules, fixing instances of no-shadow failures. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D49799

--HG--
extra : moz-landing-system : lando
2019-10-24 08:57:47 +00:00
Geoff Lankow 3e41bcb779 Bug 1580462 - Follow-up: include a missing header file. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50435

--HG--
extra : moz-landing-system : lando
2019-10-24 07:32:23 +00:00
Tim Nguyen 5ee02697cf Bug 1590903 - Remove support for XUL <text> element. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D50368

--HG--
extra : moz-landing-system : lando
2019-10-24 06:23:10 +00:00
Marcos Cáceres 0c3fbc1b1d Bug 1587793 - re-associate manifest with a browser when getting them from cache r=snorp
Addresses the problem of cached manifests having the wrong associated browser.
However, this is only temporary solution, as cached manifests can have different
associated browsers (e.g., if 3x more tabs are open, this will still potentially be racy).

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

--HG--
extra : moz-landing-system : lando
2019-10-24 04:58:13 +00:00
Thomas Nguyen cf2f2ec008 Bug 1580462 - Store iframe's FeaturePolicy in browsingContext to inherit cross origin document. r=baku,farre
Differential Revision: https://phabricator.services.mozilla.com/D48825

--HG--
extra : moz-landing-system : lando
2019-10-23 19:39:00 +00:00
Jean-Yves Avenard d824757a75 Bug 1590475 - Add batch decoding support for RemoteDataDecoder. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D50087

--HG--
extra : moz-landing-system : lando
2019-10-23 18:20:57 +00:00
Jeff Gilbert d8be7e29ca Bug 1583970 - Cast sizeof to ptrdiff_t to avoid `-16 / 4 = big`. r=tsmith
Differential Revision: https://phabricator.services.mozilla.com/D50149

--HG--
extra : moz-landing-system : lando
2019-10-23 17:29:30 +00:00
Andrew Sutherland ff5627bc93 Bug 1583859 - ExecutionReadyPromise should not be exclusive. r=perry
Although many Clients API usages are inherently exclusive (a specific claim
or control request), the execution-ready promise is shared by all requests
to get the state of a client that is not yet execution ready.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 17:55:38 +00:00
Christoph Kerschbaumer be72bce5f7 Bug 1590777: Add Null check for referrerinfo within ParseCSPAndEnforceFrameAncestorCheck. r=tnguyen
Differential Revision: https://phabricator.services.mozilla.com/D50239

--HG--
extra : moz-landing-system : lando
2019-10-23 15:21:48 +00:00
Christoph Kerschbaumer a9ab8a0285 Bug 1590784: Move GetHttpChannelHelper into nsContentSecurityUtils. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D50238

--HG--
extra : moz-landing-system : lando
2019-10-23 15:17:21 +00:00
Andreea Pavel 525ee0d915 Bug 1404373 - disabled test_bug495145.html on win r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D50183

--HG--
extra : moz-landing-system : lando
2019-10-23 14:07:22 +00:00
Eden Chuang 23964d1f55 Bug 1581477 - Enable dom/serviceworkers/test mochitests for fission r=perry
After sw-e10s enabled in nightly, following tests should be passsed with Fission

dom/serviceworkers/test/browser_devtools_serviceworker_interception.js
dom/serviceworkers/test/test_cookie_fetch.html
dom/serviceworkers/test/test_csp_upgrade-insecure_intercept.html
dom/serviceworkers/test/test_eventsource_intercept.html
dom/serviceworkers/test/test_hsts_upgrade_intercept.html
dom/serviceworkers/test/test_https_fetch.html
dom/serviceworkers/test/test_https_fetch_cloned_response.html
dom/serviceworkers/test/test_https_origin_after_redirect.html
dom/serviceworkers/test/test_https_origin_after_redirect_cached.html
dom/serviceworkers/test/test_https_synth_fetch_from_cached_sw.html
dom/serviceworkers/test/test_importscript_mixedcontent.html
dom/serviceworkers/test/test_sanitize_domain.html

This patch enables these tests.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 14:56:01 +00:00
Andreas Pehrson d6891cffab Bug 1590319 - Revert async task queueing in MediaRecorder::Pause()/Resume(). r=jib
Differential Revision: https://phabricator.services.mozilla.com/D50030

--HG--
extra : moz-landing-system : lando
2019-10-23 13:04:12 +00:00
Tom Ritter 85a1130f9f Bug 1571219 - Refactor PerformanceMeasure to avoid double-reducing timestamps r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50127

--HG--
extra : moz-landing-system : lando
2019-10-23 11:42:10 +00:00
Mirko Brodesser e1b9454134 Bug 1587716: change `RangeBoundaryBase`'s offset argument to `uint32_t`. r=smaug
`uint32_t`, because `nsRange::ComparePoints` requires it -- by webidl
interface -- to be unsigned long.

Moreover it makes `RangeBoundaryBase`'s interface cleaner, because it
already exposes the offset as a `uint32_t`.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 08:22:36 +00:00
Razvan Maries 7fb625f8cf Backed out changeset ae33b9c001e5 (bug 1580462) for build bustages on nsWindow.cpp. CLOSED TREE 2019-10-23 11:07:00 +03:00
Thomas Nguyen a220530f6b Bug 1580462 - Store iframe's FeaturePolicy in browsingContext to inherit cross origin document. r=baku,farre
Differential Revision: https://phabricator.services.mozilla.com/D48825

--HG--
extra : moz-landing-system : lando
2019-10-22 14:36:00 +00:00
Tom Tung 5a885c18a1 Bug 1583251 - P4 - Allow deserialize shared memory for Workers; r=nika,perry
Differential Revision: https://phabricator.services.mozilla.com/D48560

--HG--
extra : moz-landing-system : lando
2019-10-23 07:20:35 +00:00
Tom Tung f24d6deaf7 Bug 1583251 - P3 - Check if it is okay to allow shared memory while deserializing; r=nika,lth
Differential Revision: https://phabricator.services.mozilla.com/D48349

--HG--
extra : moz-landing-system : lando
2019-10-23 07:20:18 +00:00
Tom Tung a0d1f674b6 Bug 1583251 - P2 - Fix some format nits or naming nits for StructuredClone::Write; r=nika,lth
Differential Revision: https://phabricator.services.mozilla.com/D48348

--HG--
extra : moz-landing-system : lando
2019-10-23 07:20:05 +00:00
Tom Tung da052d4b6a Bug 1583251 - P1 - Propagate the targetAgentClusterId to PostMessageEvent::Run(); r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48347

--HG--
extra : moz-landing-system : lando
2019-10-23 07:19:48 +00:00
Kagami Sascha Rosylight e30a6dbb4a Bug 824857: Support IDL stringifier attributes r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D48355

--HG--
extra : moz-landing-system : lando
2019-10-23 04:55:54 +00:00
Andrea Marchesini 088e2cf29c Bug 1590075 - Enable browser_bug1004814.js for Fission, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D50027

--HG--
extra : moz-landing-system : lando
2019-10-22 15:34:38 +00:00
Boris Zbarsky a0b4a1fee2 Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D49536

--HG--
extra : moz-landing-system : lando
2019-10-23 03:54:39 +00:00
Daniel Varga ae5334abca Backed out changeset f9a4c8d67be3 (bug 1582892) for build bustage at build/src/dom/console/ConsoleInstance. On a CLOSED TREE 2019-10-23 06:13:54 +03:00
Boris Zbarsky e09da7b0c7 Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D49536

--HG--
extra : moz-landing-system : lando
2019-10-18 03:26:43 +00:00
Boris Zbarsky 0cbc6daf1f Bug 1589285 part 3. Use the new GetString methods for Web IDL enums in various places. r=edgar
The idea is to stop directly accessing EnumTypeValues::strings in type-unsafe
ways from consumer code.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 23:40:57 +00:00
Boris Zbarsky 6b4b1eb4fb Bug 1589285 part 1. Expose a nicer way to get strings given a Web IDL enum value. r=edgar
Returning a span ensures that consumers don't try to use this without a length,
but does hide the fact that our string is always null-terminated, at least for
the moment...

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

--HG--
extra : moz-landing-system : lando
2019-10-17 23:20:48 +00:00
Kashav Madan e063bb080d Bug 1578465 - Update fission annotations, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D49005

--HG--
extra : moz-landing-system : lando
2019-10-22 20:46:00 +00:00
Geoff Brown de6c41dd8a Bug 1585119 - Re-enable yet more 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.
This completes my review of skipped Android tests.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 20:10:27 +00:00
Matt Woodrow 51bb5e05f0 Bug 1583700 - Create a new ClientSource from a parent-allocated ClientInfo even for same-origin redirects, since there might have been a prior cross-origin redirect. r=perry,asuth
We fail navigation-redirect.https.html?client without this (with the subtest to redirects to a cross-origin page and then redirects back again to a same-origin page). In this case the ClientChannelHelper running in the child only sees a same-origin redirect (the first URL to the final one), but we've still allocated a new ClientInfo in the parent and we want to create the corresponding ClientSource.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 01:03:22 +00:00
Sebastian Streich f4b2f14328 Bug 1585664 - Add GetAsciiSpecForLogging and update callers r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47909

--HG--
extra : moz-landing-system : lando
2019-10-22 16:03:27 +00:00
Christoph Kerschbaumer 3db42ed6fc Bug 1590335: Remove unnecessary loadinfo null checks. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D50040

--HG--
extra : moz-landing-system : lando
2019-10-22 14:04:09 +00:00
Sebastian Streich 14d2d23a81 Bug 1590318 - Make browser_test_FTP_console_warning.js fission ready r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D50075

--HG--
extra : moz-landing-system : lando
2019-10-22 16:20:11 +00:00
Sebastian Streich a2f3e00d0d Bug 1583553 - Make browser_CORS-console-warnings.js fission ready r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D50080

--HG--
extra : moz-landing-system : lando
2019-10-22 16:20:09 +00:00
Nika Layzell 2f4515047c Bug 1589054 - Part 4: Run DisplayLoadError in a script runner, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D50025

--HG--
extra : moz-landing-system : lando
2019-10-22 13:57:01 +00:00
Nika Layzell d9c800fe18 Bug 1589054 - Part 3: Store mDocShell directly on nsFrameLoader, r=farre
This is necessary as the nsFrameLoader may have been swapped, due to a process
switch, before the teardown of the old nsDocShell is complete. In this case, the
nsDocShell is still present on the BrowsingContext despite a nsFrameLoader for a
remote frame having been set up.

This will also be important for future changes such as cross-process bfcache. It
may be possible to change the calls to `nsFrameLoader::GetDocShell()` back to
`mDocShell` accesses in the future.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 13:57:01 +00:00
Nika Layzell bc9c3bb08c Bug 1589054 - Part 2: Delay pagehide events until new nsFrameLoader is set up, r=farre
If these are fired too early, a nested event loop can be spun before the new
nsFrameLoader has been set up. Messages can be received over the
BrowserBridgeChild actor during this time when no nsFrameLoader is set, causing
crashes.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 13:57:00 +00:00
Nika Layzell a3cad4162e Bug 1589054 - Part 1: Cleanly kill BrowserBridgeChild if process switch fails, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D49464

--HG--
extra : moz-landing-system : lando
2019-10-22 13:57:00 +00:00
Paul Adenot bbea791d3f Bug 1590135 - Don't call stop in AsyncLogger destructor. r=pehrsons
It does not achieve anything and crashes if the log module manager hasn't been
initialized.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 14:02:53 +00:00
Emilio Cobos Álvarez 602ba56e1f Bug 1590366 - Remove accessibility.heading-element-level-changes.enabled. r=MarcoZ
Well that was short :D

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

--HG--
extra : moz-landing-system : lando
2019-10-22 13:51:41 +00:00
Christoph Kerschbaumer 61c17da3e9 Bug 1584993: Make CSP frame-ancestors work with fission enabled. r=jkt,farre,valentin
Differential Revision: https://phabricator.services.mozilla.com/D49147

--HG--
extra : moz-landing-system : lando
2019-10-22 10:57:43 +00:00
Andrea Marchesini 7c8a14a29d Bug 1590022 - Use union return value for FileReader.result, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49876

--HG--
extra : moz-landing-system : lando
2019-10-22 11:53:18 +00:00
Bogdan Tara e1b6bc2222 Backed out changeset 8705284b50d4 (bug 1584993) for test_report_uri_missing_in_report_only_header.html failures CLOSED TREE 2019-10-22 13:25:49 +03:00
John Dai 55f60cfb27 Bug 1543231 - Fix intermittent dom/html/test/test_bug1472426.html; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49904

--HG--
extra : moz-landing-system : lando
2019-10-21 19:40:44 +00:00
Alphan Chen f085f298dc Bug 1588778 - Enable dom/tests/mochitest/bugs/test_bug369306.html for fission debug build r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D49722

--HG--
extra : moz-landing-system : lando
2019-10-21 18:36:37 +00:00
Christoph Kerschbaumer 2d974555d2 Bug 1584993: Make CSP frame-ancestors work with fission enabled. r=jkt,farre,valentin
Differential Revision: https://phabricator.services.mozilla.com/D49147

--HG--
extra : moz-landing-system : lando
2019-10-22 08:53:47 +00:00
Valentin Gosu 982bdfbbbd Bug 1579992 - Load pages into new webCOOP+COEP process type r=nika
* This patch makes pages with the `OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP` policy load into a special `webCOOP+COEP={pageOrigin}` remote type.
* Adds `E10SUtils.WEB_REMOTE_COOP_COEP_TYPE_PREFIX="webCOOP+COEP="`
* When a COOP process switch occurs and the target page doesn't have this policy, we pass a `preferredRemoteType="web"` into `E10SUtils.getRemoteTypeForPrincipal` ensuring that we correctly get a different `remoteType`
* E10SUtils.getRemoteTypeForPrincipal is changed such that `if preferredRemoteType.startsWith(WEB_REMOTE_COOP_COEP_TYPE_PREFIX)` we don't override it with `webIsolated={pageOrigin}`.
* `coop_header.sjs` is changed to also allow setting `Cross-Origin-Embedder-Policy` headers
* `browser_httpCrossOriginOpenerPolicy.js` is changed to test that pages are correctly opened in the correct remoteType process.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 08:02:16 +00:00
Bogdan Tara 8a63fc190b Backed out changeset 617d82c93a06 (bug 1590022) for test_fileapi_other.html & test_fileapi_other_worker.html failures CLOSED TREE 2019-10-22 09:34:29 +03:00
Andrea Marchesini a9bf7f7b5d Bug 1588248 - XHR.send() on workers must throw an InvalidStateError if called during another xhr.send(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49968

--HG--
extra : moz-landing-system : lando
2019-10-22 05:19:46 +00:00
Andrea Marchesini e5b77e11f4 Bug 1590022 - Use union return value for FileReader.result, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49876

--HG--
extra : moz-landing-system : lando
2019-10-22 05:18:03 +00:00
shindli c5df88ff8f Backed out changeset 87c82b01a388 (bug 1583859) for causing bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/RefPtr.h CLOSED TREE 2019-10-22 06:28:42 +03:00
Andrew Sutherland f2143eb0b7 Bug 1583859 - ExecutionReadyPromise should not be exclusive. r=perry
Although many Clients API usages are inherently exclusive (a specific claim
or control request), the execution-ready promise is shared by all requests
to get the state of a client that is not yet execution ready.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 01:55:07 +00:00
Andrew Sutherland 4945715675 Bug 1589708 - Restore propagateUnregister as API to wipe registrations. r=perry
Owing to a lack of test coverage, the changes in bug 1469048 regressed our
de facto privacy/devtools API at nsIServiceWorkerManager.propagateUnregister
to no longer wipe the given registration.  The intent of that bug's changes
was to stop the now-moot propagation, but that particular intentional mis-use
of the API was missed.

This patch fixes the problem but maintains the parent-intercept behavior of
only calling ServiceWorkerRegistrar::UnregisterServiceWorker only once.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 01:48:37 +00:00
Andre Natal 20834f4fb9 Bug 1248897 - Introducing an online speech recognition service for Web Speech API r=smaug,pehrsons,padenot
This patch introduces a Speech Recognition Service which interfaces with Mozilla's remote STT endpoint which is currently being used by multiple services

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

--HG--
extra : moz-landing-system : lando
2019-10-21 20:58:57 +00:00
Mihai Alexandru Michis f3ba6ba32f Backed out 7 changesets (bug 1583700) for causing raptor dom failures.
Backed out changeset 48ceb0dd5d09 (bug 1583700)
Backed out changeset c662a369062f (bug 1583700)
Backed out changeset dc9e317da307 (bug 1583700)
Backed out changeset 41e07201a158 (bug 1583700)
Backed out changeset 015ec42c311a (bug 1583700)
Backed out changeset cfb571dd120a (bug 1583700)
Backed out changeset b9d06db6d43c (bug 1583700)
2019-10-22 03:57:07 +03:00
Matt Woodrow ac69d4fff8 Bug 1583700 - Create a new ClientSource from a parent-allocated ClientInfo even for same-origin redirects, since there might have been a prior cross-origin redirect. r=perry,asuth
We fail navigation-redirect.https.html?client without this (with the subtest to redirects to a cross-origin page and then redirects back again to a same-origin page). In this case the ClientChannelHelper running in the child only sees a same-origin redirect (the first URL to the final one), but we've still allocated a new ClientInfo in the parent and we want to create the corresponding ClientSource.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 21:47:02 +00:00
Jim Porter 9354dfda4a Bug 1557447 - Profiler support for IPC information; r=nika,smaug
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 20:51:07 +00:00
Mihai Alexandru Michis 44e67f1a7f Backed out changeset 11e5baee978e (bug 1580315) for issues related to certList. CLOSED TREE 2019-10-21 23:50:35 +03:00
Brendan Dahl 48a59e061b Bug 1583314 - Skip or port XBL tests to shadow DOM. r=bzbarsky
Where possible I ported tests to use the shadow DOM. The following could
potentially be ported, but don't think it worth of it:
  test_bug414907.xul - uses children nodes in constructor which is very
different in shadow DOM world
  test_bug233643.xul - really tests XBL behavior
  test_anonymous_content.py - bug on file already to create shadow DOM
test from scratch

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

--HG--
rename : devtools/client/inspector/test/browser_inspector_highlighter-xbl.js => devtools/client/inspector/test/browser_inspector_highlighter-custom-element.js
extra : moz-landing-system : lando
2019-10-21 20:21:20 +00:00
Sean Feng 2279d51cf5 Bug 1580315 - Convert certList to raw array for nsITransportSecurityInfo r=keeler,Ehsan,kershaw
This patch converts the certList attribute of nsITransportSecurityInfo
from nsIX509CertList to Array<nsIx509Cert>

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

--HG--
extra : moz-landing-system : lando
2019-10-21 19:49:01 +00:00
Jonathan Kingston bbf5b145a3 Bug 1585582 - Simplify exposure of AppCache interface for SecureContext r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47959

--HG--
extra : moz-landing-system : lando
2019-10-21 09:35:19 +00:00
shindli ebcb4e6fbf Backed out changeset 5686e9cc48b2 (bug 1579992) for causing bc failures in browser/components/aboutlogins/tests/browser/browser_dismissFooter.js CLOSED TREE 2019-10-21 21:09:24 +03:00
Valentin Gosu 74ec329cc9 Bug 1579992 - Load pages into new webCOOP+COEP process type r=nika
* This patch makes pages with the `OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP` policy load into a special `webCOOP+COEP={pageOrigin}` remote type.
* Adds `E10SUtils.WEB_REMOTE_COOP_COEP_TYPE_PREFIX="webCOOP+COEP="`
* When a COOP process switch occurs and the target page doesn't have this policy, we pass a `preferredRemoteType="web"` into `E10SUtils.getRemoteTypeForPrincipal` ensuring that we correctly get a different `remoteType`
* E10SUtils.getRemoteTypeForPrincipal is changed such that `if preferredRemoteType.startsWith(WEB_REMOTE_COOP_COEP_TYPE_PREFIX)` we don't override it with `webIsolated={pageOrigin}`.
* `coop_header.sjs` is changed to also allow setting `Cross-Origin-Embedder-Policy` headers
* `browser_httpCrossOriginOpenerPolicy.js` is changed to test that pages are correctly opened in the correct remoteType process.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 16:56:00 +00:00
Christoph Kerschbaumer f5cd986818 Bug 1583044: Make nsMozIconURI serializeable. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D49442

--HG--
extra : moz-landing-system : lando
2019-10-21 14:16:49 +00:00
Cosmin Sabou cce21ffe59 Backed out 3 changesets (bug 1589054) for browser chrome failures on browser_crash_oopiframe.js CLOSED TREE
Backed out changeset 1a43032819e1 (bug 1589054)
Backed out changeset 91e4d5c6422a (bug 1589054)
Backed out changeset 03bc24aa3a2c (bug 1589054)
2019-10-21 19:29:20 +03:00
Tom Tung adbf55ab7b Bug 1587394 - Provide a pref to bypass postMessage COOP and COEP check on Nightly and Dev; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48713

--HG--
extra : moz-landing-system : lando
2019-10-21 14:47:52 +00:00
Oana Pop Rus a13f88cabb Bug 1522739 - Disable test_mediarecorder_pause_resume_video.html on linux-qr debug and win10 debug and asan. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D49759

--HG--
extra : moz-landing-system : lando
2019-10-21 13:35:16 +00:00
Sylvestre Ledru 7c309095ea Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Please note that it is the first reformat with clang-format 9
I only saw a fix in the .mm file

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-10-21 14:13:44 +00:00
Nika Layzell 5edef5cff0 Bug 1589054 - Part 3: Store mDocShell directly on nsFrameLoader, r=farre
This is necessary as the nsFrameLoader may have been swapped, due to a process
switch, before the teardown of the old nsDocShell is complete. In this case, the
nsDocShell is still present on the BrowsingContext despite a nsFrameLoader for a
remote frame having been set up.

This will also be important for future changes such as cross-process bfcache. It
may be possible to change the calls to `nsFrameLoader::GetDocShell()` back to
`mDocShell` accesses in the future.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 14:03:40 +00:00
Nika Layzell d50147fcd6 Bug 1589054 - Part 2: Delay pagehide events until new nsFrameLoader is set up, r=farre
If these are fired too early, a nested event loop can be spun before the new
nsFrameLoader has been set up. Messages can be received over the
BrowserBridgeChild actor during this time when no nsFrameLoader is set, causing
crashes.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 14:03:38 +00:00
Nika Layzell a73568ddeb Bug 1589054 - Part 1: Cleanly kill BrowserBridgeChild if process switch fails, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D49464

--HG--
extra : moz-landing-system : lando
2019-10-21 14:03:36 +00:00
Andreas Pehrson cbca7bbeb7 Bug 1589854 - Remove recent assert that gets triggered by latent bug. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D49919

--HG--
extra : moz-landing-system : lando
2019-10-21 13:14:33 +00:00
Ehsan Akhgari 7a111612cb Bug 1588614 - Cache the document's effective storage principal to avoid running excessive anti-tracking checks; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D49791

--HG--
extra : moz-landing-system : lando
2019-10-21 12:53:38 +00:00
Ehsan Akhgari 8d9c7bc2c5 Bug 1589953 - Initialize `read` in AlternativeDataStreamListener::OnDataAvailable(); r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D49849

--HG--
extra : moz-landing-system : lando
2019-10-20 19:29:06 +00:00
Mirko Brodesser 5b09a02d3f Bug 1584170: part 2) Replace array with `AutoTArray`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D48321

--HG--
extra : moz-landing-system : lando
2019-10-21 09:06:48 +00:00
Mirko Brodesser 1f69cf48a9 Bug 1584170: part 1) Factor out duplicated code to `IsInOlOrUl`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D48320

--HG--
extra : moz-landing-system : lando
2019-10-21 09:06:12 +00:00
Paul Adenot 772872cd0e Bug 1587244 - Allow NaN in IIR filter output. r=karlt
It's perfectly possible to create unstable filter, that can easily go to
infinity, so this assert is not valid.

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

--HG--
extra : moz-landing-system : lando
2019-10-20 21:52:31 +00:00
Andrea Marchesini 410cb724a7 Bug 1585284 - Force global in Blob CTOR, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49629

--HG--
extra : moz-landing-system : lando
2019-10-21 05:33:19 +00:00
Andrea Marchesini d7888947e5 Bug 1585284 - Use BlobImpl in MutableBlobStorage instead of Blob, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49436

--HG--
extra : moz-landing-system : lando
2019-10-21 05:33:33 +00:00
Andrea Marchesini 6797e45278 Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49392

--HG--
extra : moz-landing-system : lando
2019-10-21 05:33:33 +00:00
Razvan Maries 44d59a93a5 Backed out 3 changesets (bug 1585582) for perma fails on appcache.tentative.https.sub.html.
Backed out changeset a55fbe377803 (bug 1585582)
Backed out changeset 0bd7ff0df367 (bug 1585582)
Backed out changeset 78a947a05f08 (bug 1585582)
2019-10-20 21:15:17 +03:00
Jonathan Kingston 06801e64f6 Bug 1585582 - Simplify exposure of AppCache interface for SecureContext r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47959

--HG--
extra : moz-landing-system : lando
2019-10-18 16:05:28 +00:00
Jan de Mooij 29c575f795 Bug 1586991 part 24 - Don't assume JS atoms are null-terminated in GetArrayIndexFromId. r=bzbarsky
This also adds a GetLinearStringCharAt helper function to simplify GetArrayIndexFromId.

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

--HG--
extra : moz-landing-system : lando
2019-10-19 17:55:01 +00:00
Jean-Yves Avenard e6d0e7dfda Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku
This is where it should have been in the first place. Those attributes belong there.

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

--HG--
extra : moz-landing-system : lando
2019-10-19 04:30:24 +00:00
Andrew Sutherland 9bd4571a16 Bug 1587447 - Make isParentInterceptEnabled an arg for spawned child-intercept version. r=perry
Differential Revision: https://phabricator.services.mozilla.com/D49803

--HG--
extra : moz-landing-system : lando
2019-10-18 22:08:05 +00:00
Oana Pop Rus 617a761d10 Backed out 3 changesets (bug 1585582) for bc failures browser/base/content/test/sanitize/browser.ini on a CLOSED TREE
Backed out changeset 98d7a4f4388f (bug 1585582)
Backed out changeset c13ec2bbc0a7 (bug 1585582)
Backed out changeset 8015660b170f (bug 1585582)
2019-10-18 18:42:49 +03:00
David Major ef9728daea Bug 1532861 - Avoid a ubsan error in IsValidVideoRegion r=jya
The variables in this function are really unsigned values in disguise. Ideally they'd be something like `UIntSize` but that's not a thing. As a path of least resistance, let's check that they're greater than zero to rule out absurdly large unsigned values (which would have been ruled out by the `MAX_DIMENSION` test anyway). And then we no longer need the a*b != 0 tests.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 00:21:31 +00:00
Jonathan Kingston 44f8c639ab Bug 1585582 - Simplify exposure of AppCache interface for SecureContext r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47959

--HG--
extra : moz-landing-system : lando
2019-10-16 15:36:51 +00:00
Razvan Maries f9d8db28af Backed out 5 changesets (bug 1583251) for rust build bustages. CLOSED TREE
Backed out changeset bfe390ad771b (bug 1583251)
Backed out changeset 0113c698b44d (bug 1583251)
Backed out changeset 248ad59168dd (bug 1583251)
Backed out changeset 5d5e3dc17118 (bug 1583251)
Backed out changeset 9e9eaa78c436 (bug 1583251)
2019-10-18 17:59:20 +03:00
Geoff Brown 32490358c2 Bug 1585119 - Re-enable many more 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.
I intend to enable still more mochitests in a future patch.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 14:35:20 +00:00
Jan Varga 547e3899d8 Bug 1589626 - LSNG: Add a check for null quota object; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D49732

--HG--
extra : moz-landing-system : lando
2019-10-18 14:13:37 +00:00
Tom Tung b9dbb55e08 Bug 1583251 - P4 - Allow deserialize shared memory for Workers; r=nika,perry
Differential Revision: https://phabricator.services.mozilla.com/D48560

--HG--
extra : moz-landing-system : lando
2019-10-17 18:52:53 +00:00
Tom Tung 5ba65c0735 Bug 1583251 - P3 - Check if it is okay to allow shared memory while deserializing; r=nika,lth
Differential Revision: https://phabricator.services.mozilla.com/D48349

--HG--
extra : moz-landing-system : lando
2019-10-15 13:42:25 +00:00
Tom Tung c291baa433 Bug 1583251 - P2 - Fix some format nits or naming nits for StructuredClone::Write; r=nika,lth
Differential Revision: https://phabricator.services.mozilla.com/D48348

--HG--
extra : moz-landing-system : lando
2019-10-15 13:49:26 +00:00
Tom Tung 3f6f9df494 Bug 1583251 - P1 - Propagate the targetAgentClusterId to PostMessageEvent::Run(); r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48347

--HG--
extra : moz-landing-system : lando
2019-10-17 19:29:54 +00:00
Masayuki Nakano 023906f104 Bug 1584963 - Make `nsTextEditorState` not manage `TextInputListener` by itself when chrome script emulates user input r=m_kato
When `nsTextEditorState::SetValue()` is called with `eSetValue_BySetUserInput`,
we emulate user input.  I.e., keep using transaction manager of the editor,
events fired while handling user input should be fired.

Currently, `nsTextEditorState::SetValue()` suppresses multiple state handling
while setting value with calling `mTextListener->SettingValue(true)`.  This
is why `"input"` event listeners cannot retrieve the latest state of validation
if `inputType` is `"insertReplacementText"`.

This patch makes it keep managing `mTextListener` when setting the value
programatically.   Otherwise, i.e., it emulates user input, editor should
manage it from `EditorBase::NotifyEditorObservers()` instead so that this
patch makes it not managing `mTextListener` in such case.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 09:18:40 +00:00
Paul Adenot 415ad2bbdc Bug 1499597 - Don't clamp the Q of a BiquadFilterNode when in low-pass and high-pass mode. r=karlt
Bug 1265395 implemented the new filter equations from
a6842f2f73,
but missed removing the clamping.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 01:52:39 +00:00
Ryan VanderMeulen 1cb9560b83 Bug 1587622 - Use MOZ_ASSERT_UNREACHABLE() instead of double-conversion's UNREACHABLE() in DOM media code. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D48880

--HG--
extra : moz-landing-system : lando
2019-10-18 01:49:06 +00:00
Razvan Maries f1b8926d68 Backed out changeset fb8fb91d2a96 (bug 1583044) for causing perma fails on test_DownloadUtils.js and reftests. CLOSED TREE 2019-10-18 15:25:07 +03:00
Christoph Kerschbaumer 89195abaf2 Bug 1583044: Make nsMozIconURI serializeable. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D49442

--HG--
extra : moz-landing-system : lando
2019-10-18 10:49:55 +00:00
Jonathan Kingston 5f72da5f69 Bug 1585582 - Don't parse manifest when storage is disabled r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47958

--HG--
extra : moz-landing-system : lando
2019-10-16 15:36:51 +00:00
Sebastian Streich ebf4d3f7df Bug 1584204 Remove requestingLocation from nsContentPolicy.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47255

--HG--
extra : moz-landing-system : lando
2019-10-18 11:07:14 +00:00
Razvan Maries bbfcab1552 Backed out changeset 239ff6e79980 (bug 1572884) for causing perma fails on audionode-channel-rules.html. CLOSED TREE 2019-10-18 12:41:02 +03:00
Andreas Pehrson ace14cf90c Bug 1587248 - Adequately guard mMediaStreamRenderer usage. r=bryce
It can be unset by NotifyShutdown, to release the VideoFrameContainer in time.
This is unexpected for all paths assuming it will be unset by
EndSrcMediaStreamPlayback().

Depends on D49573

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

--HG--
extra : moz-landing-system : lando
2019-10-17 18:31:22 +00:00
Andreas Pehrson fe804f1c14 Bug 1587248 - Remove unnecessary legacy window guard. r=bryce
Depends on D49572

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

--HG--
extra : moz-landing-system : lando
2019-10-17 18:25:26 +00:00
Andreas Pehrson 5165fe41eb Bug 1587248 - Add crashtest. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D49572

--HG--
extra : moz-landing-system : lando
2019-10-17 18:25:18 +00:00
Edgar Chen 20956de078 Bug 1588720 - Part 3: Remove nsGlobalWindowOuter::gOpenPopupSpamCount; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49277

--HG--
extra : moz-landing-system : lando
2019-10-18 03:05:18 +00:00
Edgar Chen e6da573de1 Bug 1588720 - Part 2: Track number of popup spam through BrowsingContext; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49276

--HG--
extra : moz-landing-system : lando
2019-10-18 03:04:55 +00:00
Edgar Chen 661494aa9a Bug 1588720 - Part 1: Convert dom.popup_maximum to a static pref; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49275

--HG--
extra : moz-landing-system : lando
2019-10-18 02:52:25 +00:00
Alex Chronopoulos 3131adff9f Bug 1572884 - Upmix mono webaudio channels to stereo when the output configuration is 3 and 5 channels. r=padenot
WebAudio upmix layout is defined in the spec for the channel configurations mono, stereo, quad and 5.1. Layouts with 3 and 5 channels are not defined yet. For those undefined layouts firefox provided upmix to a single channel (left). This has been updated to upmix to the two stereo channels (left, right).

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

--HG--
extra : moz-landing-system : lando
2019-10-18 07:46:07 +00:00
Eden Chuang 8e9a848cef Bug 1561706 - Update the controlled client in ServiceWorkerManager after process switching r=asuth,valentin,perry
When Fission is on, loading a cross-origin iframe triggers process switching when calling the channel::OnStartReqeust.
If a ServiceWorker should intercept the loading, the interception setting is completed while opening the channel.
That means the service worker controls the ClientSource created by the old process.
After process switching completed, the new ClientSource will be created and resume the loading from the opened channel.
However, in the original code, we did not update the controlled Client in the ServiceWorkerManager.
And when loading the same origin subresource in the new process, it makes ServiceWorkerManager cannot find the correct ServiceWorker to perform the interception.

Since we are going to release sw-e10s, this patch is only for both Fission and sw-e10s are on.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 21:42:30 +00:00
Daniel Varga 8fdca46bc7 Backed out changeset 2923afce519a (bug 1557447) for browser chrome failure at tools/profiler/tests/browser/browser_test_feature_preferencereads.js. On a CLOSED TREE 2019-10-18 07:54:09 +03:00
Abimbola Olaitan 611f420edc Bug 1589564 - Refactor ManifestIcons's fetchIcon() function to use await r=marcosc
The fetchIcon() bug is labelled as async, but doesn't use await. Refactoring it to use await cleans up the function a bit.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 03:38:12 +00:00
Boris Zbarsky 43391c50c0 Bug 1589309. Pass XPCOM strings, not buffer pointers, to notifyJSRunToCompletionStart. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49650

--HG--
extra : moz-landing-system : lando
2019-10-18 02:50:45 +00:00
Jim Porter 80bfcd6e57 Bug 1557447 - Profiler support for IPC information; r=nika
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 02:56:02 +00:00
thomasmo fe82b4a4db Bug 1587521 - Enable FullScreen in FxR for Desktop r=mconley,Gijs
Bug 1587521 - Enable FullScreen in FxR for Desktop

This change enables Fullscreen functionality in the UI for Firefox Reality for Desktop. On Fullscreen, the window (rather than the desktop) is taken over, and it is up to the host to render the contents as fullscreen.

To mitigate the impact on Desktop's implementation, browser-fullScreenAndPointerLock.js is forked and removes the dependencies on browser.js. These two files will be rationalized at a later time.

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

--HG--
rename : browser/base/content/browser-fullScreenAndPointerLock.js => browser/fxr/content/fxr-fullScreen.js
extra : moz-landing-system : lando
2019-10-18 00:15:08 +00:00
Dorel Luca efd52379da Backed out changeset cd4dc0ae3364 (bug 1557447) for Browser-chrome failures in build/src/obj-firefox/dist/include/mozilla/BlocksRingBuffer.h 2019-10-18 03:59:06 +03:00
Jim Porter 641b95fb72 Bug 1557447 - Profiler support for IPC information; r=nika
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 23:39:42 +00:00
Andrew Sutherland cb0f2f4a10 Bug 1587794 - Do not assume global exists. r=perry
This is effectively a reversion of the change made in
https://hg.mozilla.org/mozilla-central/rev/89c938649297#l1.39 when
DOMMozPromiseRequestHolder was introduced.  I've tried to add some
comments to contextualize what's happening there and why it differs
from other similar callsites.

Longer term we might move to just deleting the underlying actor when
we are disconnected.  Those actors were written assuming an
execution model where letting either end delete the actor would result
in intentional process crashes when a message was received for a
destroyed actor.  That is no longer the case.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 22:52:35 +00:00
Boris Zbarsky e7ff63c252 Bug 1582592. Improve the default return type for example codegen's GetParentObject. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D49467

--HG--
extra : moz-landing-system : lando
2019-10-17 22:08:54 +00:00
Geoff Brown ce69f69207 Bug 1588967 - Allow up to 1 assertion in android crashtest encrypted-track-with-sample-missing-cenc-aux.mp4; r=bryce
Avoid intermittent crashtest failures by accepting assertion.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 19:54:33 +00:00
Sebastian Streich 854f9b5f12 Bug 1585331 - Add nsIPrincipal::GetAboutModuleFlags r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47775

--HG--
extra : moz-landing-system : lando
2019-10-17 13:54:41 +00:00
Andrea Marchesini 1d84325d06 Bug 1585932 - Enable dom/base/test/test_postMessages.html for Fission, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D49558

--HG--
extra : moz-landing-system : lando
2019-10-17 16:53:34 +00:00
Andreas Pehrson c28f409e6d Bug 1397528 - Handle cleaned up windows in async enumerateDevices response. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D48661

--HG--
extra : moz-landing-system : lando
2019-10-17 07:57:13 +00:00
Frederic Wang c24a0fbe31 Bug 1587577 - Remove support for the mfenced element. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/DHO72glZxA0

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

--HG--
extra : moz-landing-system : lando
2019-10-17 15:53:31 +00:00
Bogdan Tara 33ba5cfeaf Backed out changeset ff6a0f7ee697 (bug 1572884) for test_mixingRules.html failures CLOSED TREE 2019-10-17 19:09:03 +03:00
Bogdan Tara 74f9b0c67c Backed out changeset 667e16c6814c (bug 1587394) for pref lint failure CLOSED TREE 2019-10-17 18:55:15 +03:00
Boris Zbarsky e68130b666 Bug 1587819. Convert [HTMLConstructor] to being an extended attribute on constructor operations. r=edgar
The changes to the IDL files were done by running this in dom/webidl:

  perl -pi -e 'BEGIN { $/ = undef; } s/\[HTMLConstructor,\n Exposed=Window\]\ninterface ([A-Za-z]+) : HTMLElement \{/[Exposed=Window]\ninterface \1 : HTMLElement {\n  [HTMLConstructor] constructor();\n/g' *.webidl

and then fixing any remaining parser failures.  That involved hand-editing the
following files:

  TestCodeGen.webidl
  XULFrameElement.webidl
  XULMenuElement.webidl
  XULTextElement.webidl
  XULTreeElement.webidl
  HTMLAudioElement.webidl
  HTMLDialogElement.webidl
  HTMLElement.webidl
  HTMLEmbedElement.webidl
  HTMLFormElement.webidl
  HTMLImageElement.webidl
  HTMLObjectElement.webidl
  HTMLOptionElement.webidl
  HTMLSlotElement.webidl
  HTMLVideoElement.webidl
  XULElement.webidl
  XULPopupElement.webidl

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

--HG--
extra : moz-landing-system : lando
2019-10-17 15:38:39 +00:00
Tom Tung 48bfc7dee9 Bug 1587394 - Provide a pref to bypass postMessage COOP and COEP check on Nightly and Dev; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48713

--HG--
extra : moz-landing-system : lando
2019-10-17 14:15:58 +00:00
Andrea Marchesini 79809a6a9e Bug 1589361 - Wrong use of ConsoleStructuredCloneData in Console on workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49598

--HG--
extra : moz-landing-system : lando
2019-10-17 13:28:00 +00:00
Olli Pettay 49bb4a7105 Bug 1586793 - [Fission] iframe.contentWindow may be null when it shouldn't be, r=peterv
The other cases when ClearWindowProxy is called seem to be fine.
It is the Unlink case which was causing null .contentWindow with test_mozfiledataurl.html

Fixes bug 1580391 and backs out bug 1581004

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

--HG--
extra : moz-landing-system : lando
2019-10-17 14:56:54 +00:00
Alex Chronopoulos e3675b23cb Bug 1572884 - Upmix mono webaudio channels to stereo when the output configuration is 3 and 5 channels. r=padenot
WebAudio upmix layout is defined in the spec for the channel configurations mono, stereo, quad and 5.1. Layouts with 3 and 5 channels are not defined yet. For those undefined layouts firefox provided upmix to a single channel (left). This has been updated to upmix to the two stereo channels (left, right).

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

--HG--
extra : moz-landing-system : lando
2019-10-17 14:39:44 +00:00
Jan de Mooij 4bb7d0451c Bug 1586991 part 22 - Use nsAutoJSString instead of AutoStableStringChars in DocshellEntryMonitor::Entry to ensure null-termination. r=bzbarsky
Note that nsDocShell::NotifyJSRunToCompletionStart ends up passing this string to
JavascriptTimelineMarker where the constructor assigns it to |nsString mFunctionName|
so there should be no difference between passing nullptr or empty string.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 13:04:07 +00:00
Frederic Wang d7e6c31b00 Bug 1587572 - Remove support for the mfrac@bevelled attribute. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/9pEvlYn-Xyw

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

--HG--
extra : moz-landing-system : lando
2019-10-17 09:41:06 +00:00
Simon Giesecke ed63d87f12 Bug 1168606 - Fix code generation issue on Mac OS X. r=acreskey,ttung
As reported in https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110,
some Mac OS X release build crashes with the original code, probably due
to some temporary string being destroyed prematurely. Assigning to a
named variable reportedly solves the issue.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 09:55:03 +00:00
Andreas Pehrson e260591a8d Bug 1589029 - Use distinct ShutdownBlockers in MediaRecorder. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D49417

--HG--
extra : moz-landing-system : lando
2019-10-17 09:31:21 +00:00
Andreas Pehrson c8ebc1f3f9 Bug 1586903 - Wait for track listener removals rather than just informing them of shutdown. r=bryce
This does a bit of a cleanup, where changing the notification to waiting for
removal is the major task. It also removes the special handling of not informing
listeners of shutdown on Cancel(), and a bit of cleanup around MozPromise usage.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 09:31:07 +00:00
Srujana Peddinti 847842be97 Bug 1570009 - Part 2 : Added Content Process testing to the framework. r=bobowen
Adds the ability to create and run sandbox tests in a content process.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 15:08:47 +00:00
David Parks b044993630 Bug 1384260: Part 4 - Remove SystemParametersInfo from Windows content proc plugin code r=jmathies
We use SystemParametersInfo to get the current system scroll wheel settings when we process scrollwheel movement in the content process.  We need to remove SystemParametersInfo for sandboxing the content process so this code changes the plugin behavior to cache the system wheel settings.  We do this by 1) sending wheel settings to the plugin whenever a plugin takes focus and 2) forwarding wheel settings update messages from Windows to the currently focused plugin.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 21:24:48 +00:00
David Parks 33f854d97a Bug 1384260: Part 3 - Remove GetKeyState from Windows content proc plugin code r=jmathies
As part of sandboxing the content process for Windows, we want to remove these calls from it.  These instances of GetKeyState should not be in actual use since plugin mouse events are handled through different means.  When they come to nsPluginInstanceOwner::ProcessEvent, they come with a pre-filled-in mPluginEvent, and this code is conditional on that not happening.  Despite that, I am preserving the existing behavior by moving the GetKeyState calls to the plugin process (where they are brokered to the parent process).  This fix is more robust to change than just removing the code would be.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 21:21:57 +00:00
David Parks 61e2e5b22d Bug 1384260: Part 2 - Remove GetForegroundWindow from Windows plugin code path r=jmathies
GetForegroundWindow in PluginInstanceParent is used as part of message throttling in windowed plugins -- which we no longer officially support.  We need to remove it from normal behavior for sandboxing the content process as part of win32k-lockdown.  We are not removing windowed plugin code yet so, rather than break the behavior, I've gated the win32 calls so that they aren't run with windowless plugins.

Note that the original behavior was fine as the sandbox just makes the function return NULL -- but it would still show up in stack analysis so the behavior in this patch is preferred.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 21:21:50 +00:00
David Parks 2c043f0a5f Bug 1384260: Part 1 - Remove RegisterWindowMessage from Windows plugin content process r=jmathies
This message was always being created in the constructor for nsPluginNativeWindowWin.  We want to remove RegisterWindowMessage from content for sandboxing (win32k-lockdown).  The message is only used in the old windowed plugin behavior, which is no longer supported, although the code remains in the code base.  I've simply moved RegisterWindowMessage to the windowed plugin path instead of removing it, since there is no need to break it.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 21:21:43 +00:00
Jeff Gilbert 6c3e1d29c0 Bug 1586423 - Revert bug 1470568 for breaking Google Meet, etc. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D49364

--HG--
extra : moz-landing-system : lando
2019-10-16 16:40:19 +00:00
Andrew McCreight 2e32ec2b4b Bug 1589138 - Make addContentEventListener take an options object for the listener. r=Gijs
All but browser_bug744745.js seem to pass even without the fixes I
made, which seems odd.

browser_bug1058164.js is a little odd because it passes in {} instead
of a boolean for the useCapture argument. I think this ends up calling
addEventListener(..., {}, false), which should be the equivalent of
addEventListener(..., {}).

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

--HG--
extra : moz-landing-system : lando
2019-10-16 17:36:44 +00:00
Boris Zbarsky 664c53333a Bug 1580381. Fix document.open tests to align with HTML spec changes. r=hsivonen
See https://github.com/whatwg/html/issues/4723

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

--HG--
extra : moz-landing-system : lando
2019-10-16 15:59:28 +00:00
Cosmin Sabou 5febe81872 Backed out changeset 35a2a50ef074 (bug 1580381) for linting failure on aborted-parser.window.js. CLOSED TREE 2019-10-16 18:48:23 +03:00
Boris Zbarsky f8ae07adf8 Bug 1580381. Fix document.open tests to align with HTML spec changes. r=hsivonen
See https://github.com/whatwg/html/issues/4723

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

--HG--
extra : moz-landing-system : lando
2019-10-16 08:27:21 +00:00
Boris Zbarsky 6a8f96bfba Bug 1588845. Update Other and ArgumentNameKeyword productions in Web IDL parser to spec changes. r=edgar
See https://github.com/heycam/webidl/issues/813

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

--HG--
extra : moz-landing-system : lando
2019-10-16 09:52:39 +00:00
Gijs Kruitbosch 738962d0bf Bug 1586148 - fix web protocol handler behaviour under fission, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D48238

--HG--
extra : moz-landing-system : lando
2019-10-16 14:56:23 +00:00