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

78690 Коммитов

Автор SHA1 Сообщение Дата
Karl Tomlinson daf9a7dbdc Bug 1503132 create offline graph thread on receipt of the first message r=padenot
With this change, the graph is already running when mEndTime is set and so
this must be done on the graph thread for consistent ordering with in-flight
messages.

Depends on D10168

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

--HG--
extra : moz-landing-system : lando
2018-10-30 15:00:43 +00:00
Karl Tomlinson fc6b49dc38 Bug 1503132 initialize mEndTime to zero for offline graphs r=padenot
This will prevent rendering from starting when the graph thread is started
before StartNonRealtimeProcessing() is called.

Depends on D10167

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

--HG--
extra : moz-landing-system : lando
2018-10-30 09:51:35 +00:00
Karl Tomlinson 95a0d00031 Bug 1503132 remove unused ProcessedMediaStream::QueueFinish() r=padenot
Depends on D10166

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

--HG--
extra : moz-landing-system : lando
2018-10-30 09:51:07 +00:00
Karl Tomlinson 583e8af90c Bug 1503132 do not shut down graph thread on completion of offline rendering r=padenot
AudioWorket will need to keep processing events on the graph thread.
The graph thread is instead shut down when the AudioContext is destroyed.

Depends on D10165

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

--HG--
extra : moz-landing-system : lando
2018-10-30 14:59:52 +00:00
Karl Tomlinson 8de2b7d0e5 Bug 1503132 when graph time has not advanced, only ensure another iteration if rendering r=padenot
Depends on D10164

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

--HG--
extra : moz-landing-system : lando
2018-10-30 15:14:35 +00:00
Karl Tomlinson a39a706827 Bug 1503132 update offline main thread state when there is no pending iteration r=padenot
Depends on D10163

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

--HG--
extra : moz-landing-system : lando
2018-10-30 15:14:33 +00:00
Karl Tomlinson f85e9dfabc Bug 1503132 add wait/wake-up support to OfflineAudioContext r=padenot
Depends on D10162

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

--HG--
extra : moz-landing-system : lando
2018-10-30 09:48:08 +00:00
Karl Tomlinson 40589e9304 Bug 1503132 remove unnecessary SystemClockDriver::mWaitState r=padenot
mWaitState is only ever tested against WAITSTATE_WAITING_INDEFINITELY and so
the other values are equivalent.  It is never WAITSTATE_WAITING_INDEFINITELY
on leaving (or entering) WaitForNextIteration and so there is no need to set
it in WakeUp().

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

--HG--
extra : moz-landing-system : lando
2018-10-31 00:54:14 +00:00
Karl Tomlinson a2cc4c6476 Bug 1503132 remove unnecessary monitor notify for AudioCallbackDriver r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D10161

--HG--
extra : moz-landing-system : lando
2018-10-30 23:51:49 +00:00
Karl Tomlinson 056ba195bd Bug 1503132 remove unused MediaStreamGraphImpl::Running() r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D10160

--HG--
extra : moz-landing-system : lando
2018-10-30 23:50:27 +00:00
Karl Tomlinson cd96c8e631 Bug 1503132 remove unused MediaStream::ConsumerCount() r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D10159

--HG--
extra : moz-landing-system : lando
2018-10-30 23:49:55 +00:00
Karl Tomlinson 343e0160ee Bug 1493073 Remove obsolete comment about webidl callback parameter being nulled before use r=kmag
CustomElementRegistryBinding uses RootedCallback and so the constructor cannot
be nulled.

The comment was added to warn about an unrooted callback argument
from nsDocument::RegisterElement(), a caller that no longer exists.

https://bugzilla.mozilla.org/show_bug.cgi?id=1369533#c25
https://hg.mozilla.org/mozilla-central/rev/16d0cd656b05#l6.298

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

--HG--
extra : moz-landing-system : lando
2018-10-30 19:41:18 +00:00
Matt Woodrow 35496b0e2c Bug 1464632 - Add the option to explicitly cache the internal results of nsContentUtils::ComparePoints since nsRange::IsNodeSelected calls it repeatedly with the same value and we don't want to pollute the internal caching of nsINode... r=mats
...::ComputeIndexOf. r?mats

MozReview-Commit-ID: HKFmy1QeCs6

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

--HG--
extra : moz-landing-system : lando
2018-10-30 22:28:34 +00:00
Ciure Andrei 499182b91a Merge inbound to mozilla-central. a=merge 2018-10-31 00:06:53 +02:00
Ciure Andrei a2c4dad0d5 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-31 00:16:17 +02:00
Ciure Andrei 60ea98ca60 Backed out 10 changesets (bug 1501044, bug 1472212) for fetch-destination.https.html perma failure CLOSED TREE
Backed out changeset aa35078cabaa (bug 1472212)
Backed out changeset bf02793f802d (bug 1472212)
Backed out changeset 95a7ef6102a6 (bug 1472212)
Backed out changeset 7b7fa6ab2229 (bug 1472212)
Backed out changeset 4fe4ec18f2f3 (bug 1472212)
Backed out changeset 18f824674b76 (bug 1472212)
Backed out changeset 1978a7837502 (bug 1472212)
Backed out changeset 21a6f1a83c73 (bug 1472212)
Backed out changeset 48242d39d532 (bug 1472212)
Backed out changeset 0b5cf2f4305a (bug 1501044)
2018-10-30 23:31:10 +02:00
Andrea Marchesini 263f4c6e8b Bug 1502599: XHR should allow just "GET" method for blob URLs, r=smaug 2018-10-30 22:07:32 +01:00
Ehsan Akhgari 8a4d8f4fa4 Bug 1501978 - Part 2: Remove the browser.contentblocking.enabled pref from the tests that set it to true needlessly r=baku
Depends on D10074

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

--HG--
extra : moz-landing-system : lando
2018-10-30 07:47:56 +00:00
Ehsan Akhgari 5fef8e924c Bug 1501978 - Part 1: Stop honouring the browser.contentblocking.enabled pref in Gecko r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10074

--HG--
extra : moz-landing-system : lando
2018-10-30 14:30:15 +00:00
Ehsan Akhgari 54b2e44577 Bug 1502747 - Remove nsIContentPermissionType.access and all of its supporting code r=snorp,baku
This field was originally added for the b2g-only DeviceStorage API,
and isn't used for anything else right now.

This reverts the remaining parts of bug 1043136 and bug 1043136
as well as some support code for mobile.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 07:48:55 +00:00
Andrea Marchesini d33f864af8 Bug 1503551 - Remove window.sidebar, r=smaug 2018-10-31 18:30:18 +01:00
Andrea Marchesini 71b39f6750 Bug 1503551 - Make window.external.AddSearchProvider a dummy function, r=smaug 2018-10-31 18:30:18 +01:00
Andrea Marchesini 223d7172bf Bug 1486698 - Update Fetch+Stream implementation to throw when the stream is disturbed or locked, r=bz
In this patch, I went through any place in DOM fetch code, where there are
ReadableStreams and update the locked, disturbed, readable checks.

Because we expose streams more often, we need an extra care in the use of
ErrorResult objects. JS streams can now throw exceptions and we need to handle
them.

This patch also fixes a bug in FileStreamReader::CloseAndRelease() which could
be called in case mReader creation fails.
2018-10-31 18:30:18 +01:00
arthur.iakab a3020a0ea0 Merge mozilla-central to mozilla-inbound 2018-10-31 18:44:49 +02:00
Christoph Kerschbaumer ed1f7a623a Bug 1503575 - Remove unused mAppStatusCache from nsCSPService. r=baku 2018-10-31 15:35:27 +01:00
Cameron McCormack a94e23e1cd Bug 1496617 - Part 1: Support unprefixed image-rendering:crisp-edges r=firefox-style-system-reviewers,emilio
For now, we keep supporting the prefixed version, since there are examples/instructions
on the Web that don't include an unprefixed value.

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

--HG--
extra : moz-landing-system : lando
2018-11-01 01:35:26 +00:00
Arnaud Bienner 6c33998bfb Bug 1503236 - Move WorkletImpl reference from WorkletGlobalScope to classes inheriting WorkletGlobalScope r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D10215

--HG--
extra : moz-landing-system : lando
2018-10-31 23:03:39 +00:00
Brian Birtles 8ce29aced8 Bug 1502026 - Only synchronize CSS transitions with CSS transitions; r=hiro
For some content both transitions and animations are triggered simultaneously.
As a result of bug 1301305, if the set of animations includes animations that
affect geometry, then we ensure that any transform animations are run on the
main thread, rather than on the compositor.

However, we have observed some content where this synchronizing is not necessary
and produces unnecessary jank. In the particular cases we have observed,
the transitions and animations do not need to be synchronized so this patch
refines the approach from bug 1301305 to only synchronize within the set of CSS
transitions or the set of non-transition animations.

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

--HG--
extra : moz-landing-system : lando
2018-11-01 00:15:45 +00:00
Ehsan Akhgari da02fddc9b Bug 1503465 - Part 1: Add a tabparent API for retrieving the top-level content blocking log r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10362

--HG--
extra : moz-landing-system : lando
2018-10-31 21:21:34 +00:00
Brindusan Cristian 41900a475a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-31 23:44:15 +02:00
Gabriele Svelto 266ef73c96 Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10251

--HG--
extra : moz-landing-system : lando
2018-10-31 20:39:03 +00:00
Paul Adenot 71204ef979 Bug 1502927 - Remove MediaStream.currentTime. r=baku,jib
This has never been specced and is unused appart from our tests.

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

--HG--
extra : rebase_source : c044f11325ec630dcabb673c85531a2283ff6ad4
extra : source : db3c2a88f79cb28440f4e13bcf27c5165c6ee060
2018-10-29 17:38:19 +01:00
Daniel Varga fc3d974254 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-30 11:40:57 +02:00
Andrea Marchesini c549894865 Bug 1502403 - FileReader should dispatch loadstart asynchronously, r=smaug 2018-10-30 07:57:31 +01:00
Andrea Marchesini 7c298c2176 Bug 1502282 - Remove more unused deprecated macros, r=qdot 2018-10-30 07:54:58 +01:00
Andrea Marchesini a41710231a Bug 1502282 - Wrong macro name for ImageBitmapRenderingContext_TransferImageBitmap, r=qdot 2018-10-30 07:54:58 +01:00
Andrea Marchesini 0725648aa7 Bug 1502282 - Remove FileLastModifiedDate and PrefixedVisibilityAPI macros, r=qdot 2018-10-30 07:54:58 +01:00
Andrea Marchesini 1a4283516e Bug 1500962 - Test for URL.toJSON(), r=qdot 2018-10-30 07:54:57 +01:00
Gurzau Raul 42ed3a7d97 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-30 07:32:36 +02:00
Kyle Machulis 6d3b4e7492 Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState; r=bz, nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.
2018-10-29 17:13:29 -07:00
Csoregi Natalia cc313f779c Backed out 9 changesets (bug 1472212) for browser-chrome tests run issues on Linux x64 asan and failures on browser_ext_windows_create_tabId.js. CLOSED TREE
Backed out changeset 18e46df44cd1 (bug 1472212)
Backed out changeset 2e5de66c1f60 (bug 1472212)
Backed out changeset b94f9883aef0 (bug 1472212)
Backed out changeset ebdca743668c (bug 1472212)
Backed out changeset f8a06d01437e (bug 1472212)
Backed out changeset b6996abc7d90 (bug 1472212)
Backed out changeset 24c257cd18c3 (bug 1472212)
Backed out changeset 176f3ee14e67 (bug 1472212)
Backed out changeset b4baa63e5b1b (bug 1472212)
2018-10-30 01:58:21 +02:00
Nico Grunbaum 29b141f8e4 Bug 1503023 - After waiting for certs make sure the PeerConnection still exists r=jib
Ensure that a PeerConnection is still open before setting the certificates.

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

--HG--
extra : moz-landing-system : lando
2018-10-29 22:57:10 +00:00
Doug Thayer 976c503a09 Bug 1493447 - Add crashtest. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D7631

--HG--
extra : rebase_source : 4336e8f1c86c277d9638e81fe7e56ac62c9b7d7b
2018-10-29 17:40:32 -04:00
Ehsan Akhgari c78ff51afb Bug 1504566 - Remove the XPCOM registration for nsHTMLCopyEncoder; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D10958
2018-11-05 17:28:54 -05:00
Narcis Beleuzu 9b3f73e696 Merge mozilla-central to inbound. CLOSED TREE 2018-11-05 23:54:03 +02:00
Daniel Varga 153ba7a50e Backed out changeset 6babd3b956aa (bug 1502403) for wpt leak at mozilla::dom::FileReader::ReadFileContent 2018-10-30 12:50:37 +02:00
Jonathan Kingston 3501594596 Bug 1447784 - Upgrade insecure requests should not be applied to potentially trustworthy loopback r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10367

--HG--
extra : moz-landing-system : lando
2018-10-31 16:04:58 +00:00
Kris Maglione ade8c9ede8 Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888

--HG--
extra : source : afd0a13bcfff4c92ad2497ec687f466484481667
extra : amend_source : 501bca3f94a0cb0c8bec1f30d0b3f64a50b04e48
extra : intermediate-source : bc03f101937e373fdaca735f3f356960a5239bc0
2018-10-25 19:04:01 -07:00
Kris Maglione 288ea557d8 Bug 1482091: Part 1 - Add native TelemetryStopwatch implementation. r=chutten,mccr8
This implementation is considerably more memory efficient than the existing JS
implementation. Migrating to it fully saves us about 28K per base content
process.

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

--HG--
extra : source : a19c6b3e0402d16a77185f82d9fedab83a7ca52e
extra : intermediate-source : 28a19b7290ab288a1cb2cbf6d49f905cecc9682b
2018-10-26 13:17:55 -07:00
arthur.iakab 0c81738411 Backed out 2 changesets (bug 1482091) for bc failures on browser_domFullscreen_fullscreenMode.js
Backed out changeset bc03f101937e (bug 1482091)
Backed out changeset 28a19b7290ab (bug 1482091)
2018-11-03 01:08:36 +02:00
Cosmin Sabou 3b735243ab Merge mozilla-central to mozilla-inbound. a=merge
--HG--
extra : rebase_source : 8505e939743adff1ac28bbacc959496d6e254a44
2018-11-02 23:51:14 +02:00
Ryan Hunt 2226bcc8a3 Bug 1504220 - Move ScrollableLayerGuid, ViewID, ZoomConstraints from FrameMetrics.h r=botond
This commit attempts to lower the pain of modifying FrameMetrics.h.

It looks like most includes really only want ViewID or
ScrollableLayerGuid, so this commit factors them out into a separate
header. In the process FrameMetrics::ViewID is changed to
ScrollableLayerGuid::ViewID, which personally seems like a better
place for it now that we have RepaintRequest. Unfortunately that
requires a lot of places to be updated.

After this commit there are still a couple of major places that
FrameMetrics is included.
 * nsDisplayList.h
 * nsIScrollableFrame.h
 * Layers.h

Those are going to be more tricky or impossible to fix so they're
not in this commit.

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

--HG--
rename : gfx/layers/FrameMetrics.h => gfx/layers/ScrollableLayerGuid.h
rename : gfx/layers/FrameMetrics.h => gfx/layers/ZoomConstraints.h
extra : rebase_source : 29ac79f91460a181bf7437af5c371207e22858e2
extra : source : c2e70e531075493fc6e374dcec862827f0bc6e77
2018-11-01 15:15:46 -05:00
Kris Maglione 7fa01216a4 Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888

--HG--
extra : source : afd0a13bcfff4c92ad2497ec687f466484481667
extra : amend_source : bf22d8e9ce5c081902bd5c75b892cc434a167300
2018-10-25 19:04:01 -07:00
Kris Maglione bee3f68fdc Bug 1482091: Part 1 - Add native TelemetryStopwatch implementation. r=chutten,mccr8
This implementation is considerably more memory efficient than the existing JS
implementation. Migrating to it fully saves us about 28K per base content
process.

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

--HG--
extra : source : a19c6b3e0402d16a77185f82d9fedab83a7ca52e
2018-10-26 13:17:55 -07:00
arthur.iakab cf2aa54f83 Backed out 2 changesets (bug 1482091)for failing browser chrome failures on browser_panelUINotifications_fullscreen_noAutoHideToolbar.js
Backed out changeset afd0a13bcfff (bug 1482091)
Backed out changeset a19c6b3e0402 (bug 1482091)
2018-11-02 23:01:15 +02:00
Kris Maglione 96f3e16d1a Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888

--HG--
extra : rebase_source : a9daea3a9efea37acdbcaecda8bf0b7f69631de4
extra : histedit_source : bb8b416b1387da9de3bd95c7a171f10426a22602
2018-10-25 19:04:01 -07:00
Kris Maglione 4bd1fb01dd Bug 1482091: Part 1 - Add native TelemetryStopwatch implementation. r=chutten,mccr8
This implementation is considerably more memory efficient than the existing JS
implementation. Migrating to it fully saves us about 28K per base content
process.

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

--HG--
extra : rebase_source : f358f1f7097eaa8cd62ae916d048a58489e9f5ff
extra : histedit_source : c44c42de02750d71e23e70fdf22d3c3a40b91d3d
2018-10-26 13:17:55 -07:00
Ciure Andrei 194c521f36 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-11-02 18:59:30 +02:00
Marco Castelluccio 0ad6467779 Bug 1504188 - Don't define AppendSandboxParams if building the sandbox is disabled. r=haik
--HG--
extra : rebase_source : 6ccb5a57b5a19b02deb25893f2a1c651346a4d4a
2018-11-02 13:59:43 +01:00
Eden Chuang 7020e04316 bug 1477409 - Part 1 - Instead of passing tabId, passing outerWindowId to Payment UI component. r=baku
--HG--
extra : histedit_source : 5480494582d1de6bcdac2ff295815d3182909697
2018-11-06 14:42:36 +01:00
Andrea Marchesini 9a396c5ddb Bug 1504958 - Expose Performance.toJSON() in workers, r=smaug 2018-11-06 16:07:27 +01:00
arthur.iakab de51988046 Merge mozilla-central to inbound 2018-10-31 11:47:33 +02:00
Byron Campen [:bwc] 2def0ddff0 Bug 1502766 - Part 0: Re-enable test for "relay" ICE policy. r=jib
--HG--
extra : rebase_source : 4935b3d89370a65410a9a8d71dbb0cf9d49f1824
2018-10-29 11:12:23 -05:00
Chun-Min Chang 395ebd7b2d Bug 1487797 - P2. Make sure the sample index of FLAC's frame is monotonically increasing. r=jya
Depends on D9043

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

--HG--
extra : moz-landing-system : lando
2018-10-22 22:51:23 +00:00
Chun-Min Chang 4deffa6a58 Bug 1487797 - P1. Move sample index from FrameHeader to Frame. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D9043

--HG--
extra : moz-landing-system : lando
2018-10-22 22:51:21 +00:00
Gurzau Raul 08a80deaa6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-30 00:04:59 +02:00
Gurzau Raul 8f82fd493f Merge inbound to mozilla-central. a=merge 2018-10-30 00:00:56 +02:00
Bogdan Tara 4119f6ad2e Backed out 3 changesets (bug 1499903) for causing bug 1502637 CLOSED TREE
Backed out changeset 3c7165875616 (bug 1499903)
Backed out changeset 106752b77131 (bug 1499903)
Backed out changeset 3f6d3c425b42 (bug 1499903)
2018-10-29 23:32:50 +02:00
Kyle Machulis ee8ccacb05 Backed out changeset fa8487b94a38 due to a=BUSTAGE on comm-central 2018-10-29 12:28:02 -07:00
Perry Jiang 40e929d0df Bug 1354577 - require ServiceWorkerGlobalScope.importScripts() to only accept JavaScript MIME types r=edenchuang
- Make ServiceWorkerGlobalScope.importScripts() throw a NetworkError when receiving a
bad (i.e. non-JavaScript) MIME type
- Correct registration-tests-mime-types.js to expect TypeError when registering
a service worker that calls importScripts() with a bad MIME type, per spec
- Add WPT import-scripts-mime-types.https.html to test importScripts success/failure,
depending on MIME type

Depends on D6416

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

--HG--
extra : moz-landing-system : lando
2018-10-29 15:08:24 +00:00
Perry Jiang 2d17bf3ec7 Bug 1354577 - require ServiceWorkerContainer.register() to only accept JavaScript MIME types r=edenchuang
- Change "ServiceWorkerRegisterMimeTypeError" to "ServiceWorkerRegisterMimeTypeError2"
to account for more acceptable MIME types

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

--HG--
extra : moz-landing-system : lando
2018-10-29 15:09:40 +00:00
Eden Chuang 74e578d048 Bug 1497215 - Refactor the IPC structure for PaymentResponse.details r=baku
In original design, payment method response data is passed between processes
    through a simple nsString. It means a special encoder/decoder is needed for
    special response data, ex. BasicCardResponse, to serialize/deserialize
    into/from the nsString. However, when a token spliter, ':', ';' and '@', is
    used in response data, it makes the encoder/decoder can not work normally.
    It is hard to define a suitable token spliter set for encoder/decoder.
    So instead of using an error-prone encoder/decoder, this patch defining a new
    IPC structure for response data.

--HG--
extra : rebase_source : 4972033516bc861ea3f975a27b7688fc6eb89a94
2018-10-29 13:56:32 +01:00
Robert Helmer c43fca0736 Bug 1501784 - throw if the limit of booleans Prio can encode in one batch is exceeded r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D9995

--HG--
extra : moz-landing-system : lando
2018-10-29 10:31:26 +00:00
Ehsan Akhgari 25048d2d01 Bug 1497014 - Part 1: Pass in a URI hint for all content blocking state notifications r=baku
Differential Revision: https://phabricator.services.mozilla.com/D9984

--HG--
extra : moz-landing-system : lando
2018-10-29 14:47:55 +00:00
Andreas Pehrson 5781531358 Bug 1453078 - Do not assume segments are all non-null when not all null. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9545

--HG--
extra : moz-landing-system : lando
2018-10-29 10:34:40 +00:00
Jean-Yves Avenard 0bb982d5d5 Bug 1502488 - Fix opus mapping 2 channels count check. r=padenot
Add gtest

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

--HG--
extra : moz-landing-system : lando
2018-10-29 09:44:18 +00:00
Makoto Kato 90f9f1ea2a Bug 1500876 - Remove PContent::GetSystemColors sync IPC. r=snorp,mccr8
Content process of Android uses sync IPC when initializing LookAndFeel. But
current e10s has LookAndFeel cache for start up of content process.
So we should use it, then remove sync IPC for start up performance

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

--HG--
extra : moz-landing-system : lando
2018-10-29 01:35:47 +00:00
Emilio Cobos Álvarez d4ae853741 Bug 1502658 - Remove SVG use attribute change handling code from nsSVGUseFrame to SVGUseElement. r=longsonr
Most of those shouldn't rely on a frame to run.

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

--HG--
extra : moz-landing-system : lando
2018-10-28 23:20:43 +00:00
Daosheng Mu 09b5ef8f66 Bug 1501869 - Part 2: Stop calling VR tasks when they are at background. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D9880

--HG--
extra : moz-landing-system : lando
2018-10-28 22:49:15 +00:00
Ehsan Akhgari 6c15d2fad6 Bug 1498372 - Remove storage access from all frames when the user changes the cookie policy r=baku
Differential Revision: https://phabricator.services.mozilla.com/D9974

--HG--
extra : moz-landing-system : lando
2018-10-27 07:26:59 +00:00
Csoregi Natalia 2ef395bc07 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-10-27 12:58:54 +03:00
Csoregi Natalia a21ac3d8e5 Merge inbound to mozilla-central. a=merge 2018-10-27 12:48:40 +03:00
Andrea Marchesini a0fc57507e Bug 1502375 - FilePropertyBag should inherit BlobPropertyBag, r=smaug 2018-10-27 10:26:31 +02:00
Andrea Marchesini 2680372dcf Bug 1501354 - Fetch() should not block the loadgroup from completing, r=bz 2018-10-27 08:55:20 +02:00
Matthew Noorenberghe 4cbaea08fb Bug 1501911 - Support 'address-level3' in @autocomplete for form fields. r=smaug
Form Autofill added support in bug 1481972. This change allows authors to feature detect our support.
2018-10-27 03:14:05 +03:00
Cosmin Sabou 6a034485b2 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-27 00:55:47 +03:00
Cosmin Sabou 2f6974eab2 Merge autoland to mozilla-central. a=merge 2018-10-27 00:54:18 +03:00
Boris Chiou 3015824e8d Bug 1496619 - part 7: Implement steps(jump-*) functions r=birtles
1. Add a new preference, layout.css.step-position-jump.enabled, for
   step(_, jump-*) timing functions.
2. We still keep JumpEnd and End tags, even though there is no difference
   between them. Therefore, we could disable the preference if needed.
3. Update the calculation of StepTiming to match the algorithm in the spec.
4. For servo, we implement the correct step function algorithm except
   for the handling of before_flag. This could be fixed later.

Depends on D9313

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

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:37 +00:00
Boris Chiou 04b273259e Bug 1496619 - part 6: Generate StyleTimingFunction and drop ns_timing_function.rs r=emilio,birtles
First, we generate StyleComputedTimingFunction by cbindgen from Rust, and use
it in nsTimingFunction, so we could copy it directly without handling
the different memory layout. However, we have to rewrite the
nsTimingFunction and mozilla::ComputedTimingFunction for this.

Second, the rust-bindgen seems cannot generate the correct generic members
from complex C++ templates, especially for the nested template struct,
(https://github.com/rust-lang-nursery/rust-bindgen/issues/1429)
So we have to hide StyleTimingFunction to avoid the compilation errors.

Depends on D9312

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

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:35 +00:00
Boris Chiou 0a23d58b21 Bug 1496619 - Part 2: Rename css-timing to css-easing r=birtles
Rename css-timing to css-easing according to the spec update.

Depends on D9309

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

--HG--
rename : testing/web-platform/meta/css/css-timing/__dir__.ini => testing/web-platform/meta/css/css-easing/__dir__.ini
rename : testing/web-platform/tests/css/css-timing/META.yml => testing/web-platform/tests/css/css-easing/META.yml
rename : testing/web-platform/tests/css/css-timing/cubic-bezier-timing-functions-output.html => testing/web-platform/tests/css/css-easing/cubic-bezier-timing-functions-output.html
rename : testing/web-platform/tests/css/css-timing/step-timing-functions-output.html => testing/web-platform/tests/css/css-easing/step-timing-functions-output.html
rename : testing/web-platform/tests/css/css-timing/testcommon.js => testing/web-platform/tests/css/css-easing/testcommon.js
extra : moz-landing-system : lando
2018-10-26 18:03:27 +00:00
Boris Chiou adff31eff9 Bug 1496619 - Part 1: Drop frames() timing function r=birtles
frames() timing function was removed from the spec, so we drop it.
Besides, some devtool tests are removed because they use frame(). I will
add them back by using new step function later.

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

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:24 +00:00
Nika Layzell f80cca5e80 Bug 1483552 - Disable Clipboard.readText outside of system/extension code, r=baku
Differential Revision: https://phabricator.services.mozilla.com/D9734

--HG--
extra : moz-landing-system : lando
2018-10-26 16:51:51 +00:00
Noemi Erli e52f6d8610 Backed out 4 changesets (bug 1399501) per developer's request for causing Bug 1502286 on Android,Bug 1502305 and Bug 1502292 a=backout
Backed out changeset 7f1abf24702d (bug 1399501)
Backed out changeset 5cb0aeccd4cc (bug 1399501)
Backed out changeset 7b88a6284d31 (bug 1399501)
Backed out changeset c498bd18345d (bug 1399501)
2018-10-26 19:30:48 +03:00
Noemi Erli 98d13d0806 Merge inbound to mozilla-central. a=merge 2018-10-26 18:47:58 +03:00
Jon Coppeard 2b739e9021 Bug 1501979 - Make PerformanceObserver report mQueuedEntries to the cycle collector r=mccr8 2018-10-26 11:03:44 +01:00
alwu e9771aeaa5 Bug 1499903 - part3 : change 'mLogicallySeeking' to Watchable r=chunmin
Nobody is mirroring to 'mLogicallySeeking', so we can just use Watchable instead.

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

--HG--
extra : moz-landing-system : lando
2018-10-25 17:44:38 +00:00
alwu ecee4c600d Bug 1499903 - part2 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D9641

--HG--
extra : moz-landing-system : lando
2018-10-26 22:36:18 +00:00
alwu b0a8a872f6 Bug 1499903 - part1 : correct the events order when we're in the seamless looping. r=chunmin
When the media which has `loop` attribute is playing to the end, the spec mentions that media should do seek to the start position [1].

During seeking, the dispatched events order [2] for MediaElement should be
1. seeking
2. timeupdate
3. seeked

[1] https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:attr-media-loop-2
[2] https://html.spec.whatwg.org/multipage/media.html#seeking:dom-media-seek

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

--HG--
extra : moz-landing-system : lando
2018-10-26 23:21:00 +00:00
Cosmin Sabou 125a3ce9d8 Merge mozilla-central to autoland. a=merge
--HG--
extra : rebase_source : 24058e51e8b2f1c418e99b65a7ffb81209700389
2018-10-27 01:50:33 +03:00
Cosmin Sabou fbde123ca1 Backed out 2 changesets (bug 1501869) for causing wpt failures on webvr-enabled-by-feature-policy-attribute-redirect-on-load
Backed out changeset 56896b0e10d3 (bug 1501869)
Backed out changeset cdb87cbfe882 (bug 1501869)
2018-10-27 00:51:10 +03:00
Jeff Gilbert f95f851da5 Bug 1502278 - Merge WebGLContextUnchecked back into WebGLContext. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D9893

--HG--
extra : moz-landing-system : lando
2018-10-26 14:54:38 +00:00
Kyle Machulis ca0550b32b Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState r=bzbarsky,nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.

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

--HG--
rename : docshell/base/nsDocShellLoadInfo.cpp => docshell/base/nsDocShellLoadState.cpp
rename : docshell/base/nsDocShellLoadInfo.h => docshell/base/nsDocShellLoadState.h
extra : moz-landing-system : lando
2018-10-26 03:50:37 +00:00
Perry Jiang 96d721e851 Bug 1357290 - move test_update_missing_imported_script.html to WPT r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D6439

--HG--
extra : moz-landing-system : lando
2018-10-25 19:01:20 +00:00
Noemi Erli 16a9c62bba Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-26 18:49:22 +03:00
Coroiu Cristina 6455148cff Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-10-26 01:02:15 +03:00
Coroiu Cristina 4258c167d5 Merge inbound to mozilla-central a=merge 2018-10-26 00:56:50 +03:00
Nicholas Hurley 2319ff8d81 Bug 1050329 - part 2 - Add error page for h2 goaway. r=dragana,bzbarsky
This is kind of like the previous patch (where we had a not-very-friendly user experience shutting down misbehaving h2 sessions), but in this case the server has proven to us that it can speak a minimum of h2, so we don't want to just fallback. Instead, when we send a GOAWAY frame because we have detected some error on the part of the server, if it's a top-level page load, we'll show an error page explaining that the server spoke bad http/2, and the site admin(s) need to be contacted. We already did this for INADEQUATE_SECURITY (which is its own special case still), but that didn't cover all the cases.

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

--HG--
extra : moz-landing-system : lando
2018-10-25 20:46:46 +00:00
Arnaud Bienner af69f8bf68 Bug 1502004 - Move AudioWorkletGlobalScope from dom/worklet to dom/media/webaudio. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D9768

--HG--
rename : dom/worklet/AudioWorkletGlobalScope.cpp => dom/media/webaudio/AudioWorkletGlobalScope.cpp
rename : dom/worklet/AudioWorkletGlobalScope.h => dom/media/webaudio/AudioWorkletGlobalScope.h
extra : moz-landing-system : lando
2018-10-25 18:50:05 +00:00
Daosheng Mu c3b4427b6c Bug 1501869 - Part 2: Stop calling VR tasks when they are at background. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D9880

--HG--
extra : moz-landing-system : lando
2018-10-26 17:26:32 +00:00
Robert Helmer 03cd228bcb Bug 1500791 - remove hardcoded restriction on bools that may be prio-encoded r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D9555

--HG--
extra : moz-landing-system : lando
2018-10-26 15:00:46 +00:00
Jeff Gilbert 02e6ff5ccb Bug 1499587 - Fix win64 clang-cl -Wwritable-strings. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D9031

--HG--
extra : moz-landing-system : lando
2018-10-25 14:16:27 +00:00
Ehsan Akhgari 43f23459b2 Bug 1501286 - Part 4: Remove the browser.contentblocking.ui.enabled pref from several tests which now set it needlessly r=johannh
Depends on D9521

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

--HG--
extra : moz-landing-system : lando
2018-10-25 16:46:42 +00:00
Daniel Varga c1fea8cbed Merge mozilla-central to autoland. a=merge 2018-10-25 19:18:54 +03:00
Daniel Varga 4207d5ac1d Merge mozilla-inbound to mozilla-central. a=merge 2018-10-25 19:09:12 +03:00
Dorel Luca 9529a31c66 Backed out 5 changesets (bug 1501286) for browser-chrome failures in browser/components/uitour/test/browser_trackingProtection.js
Backed out changeset cac0d4aa79d1 (bug 1501286)
Backed out changeset 578d395f555e (bug 1501286)
Backed out changeset d9940451c373 (bug 1501286)
Backed out changeset ca6c3139bdd2 (bug 1501286)
Backed out changeset 93d6f4d54f78 (bug 1501286)

--HG--
extra : rebase_source : 04083c456cd0df6243861cf53e5c39c08888c5ad
2018-10-25 17:52:59 +03:00
Thomas Nguyen 59d59ec231 Bug 1501206 - Introduce a new function ReferrerPolicyToString() r=ckerschb
We may need this function to convert ReferrerPolicy enum to string then
we can display referrer policy applied to a request.

MozReview-Commit-ID: B3xPAiykcOV

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

--HG--
extra : moz-landing-system : lando
2018-10-25 13:53:21 +00:00
Ehsan Akhgari 0cc932a863 Bug 1501286 - Part 4: Remove the browser.contentblocking.ui.enabled pref from several tests which now set it needlessly r=johannh
Depends on D9521

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

--HG--
extra : moz-landing-system : lando
2018-10-25 13:35:24 +00:00
Tim Huang e894ecc7e3 Bug 1492607 - Part 3: Exempting the check of OAs for postMessage with the target origin is '*' if it is coming from the system principal r=baku
It turns out that many tests are going to post Messages to content
from chrome with a mismatched OA. This patch exempt the check in that
case.

Depends on D8522

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

--HG--
extra : moz-landing-system : lando
2018-10-26 07:13:25 +00:00
Tim Huang 15c3ab7c9c Bug 1492607 - Part 1: Making postMessage to be aware of OAs when the targetOrigin is "*." r=arthuredelstein,baku
This patch adds a MOZ_DIAGNOSTIC_ASSERT for assuring the OAs
are matching when the targetOrigin is "*" for the postMessage().
But it ignores the FPD in OA since the FPDs are possible to be
different.

We also add a new pref 'privacy.firstparty.isolate.block_post_message'
for allowing blocking postMessage across different FPDs.

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

--HG--
extra : moz-landing-system : lando
2018-10-25 06:47:08 +00:00
Adrian Wielgosik e6326985f3 Bug 1480245, part 1 - Remove compatibility methods from nsXPTInterfaceInfo. r=nika
I left GetMethodInfo, GetConstant as they are still useful as separate methods.

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

--HG--
extra : moz-landing-system : lando
2018-10-25 09:56:26 +00:00
Csoregi Natalia 9fbc76ace6 Merge inbound to mozilla-central. a=merge 2018-10-25 07:45:08 +03:00
Brad Werth 6d53b458a3 Bug 1498273 Part 4: Add tests of FlexItem clampState. r=dholbert
Depends on D9447

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

--HG--
extra : moz-landing-system : lando
2018-10-25 00:14:40 +00:00
Nika Layzell 1ec79f98ec Bug 1500926 - Part 3: Remove unused WebIDL Codegen items, r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D9465
2018-10-24 20:11:01 -04:00
Nika Layzell 65b231b95c Bug 1500926 - Part 2: Support a test-only edgecase in Codegen.py, r=bzbarsky
When running tests, we can build a WebIDL environment with no interfaces
exposed on the primary global. Unfortunately, due to the perfecthash.py logic
not handling empty tables, this causes an assertion to be raised. 

We can work around this by generating some dummy code for that situation, as we
will never try to build it.

Differential Revision: https://phabricator.services.mozilla.com/D9407
2018-10-24 20:11:01 -04:00
Nika Layzell 23c990d165 Bug 1500926 - Part 1: Use a statically generated perfect hash in WebIDLGlobalNameHash, r=bzbarsky
This strategy allows us to dodge dynamic allocations in WebIDLGlobalNameHash.
This removes the Init() and Shutdown() methods, as well as Register. The
RegisterBindings.cpp file now only contains static data and one method
declaration for the WebIDLGlobalNameHash class.

This should also be faster by making the hashtable lookup infallible.

Differential Revision: https://phabricator.services.mozilla.com/D9406
2018-10-24 20:11:01 -04:00
Brad Werth 1600580027 Bug 1498273 Part 3: Define and set ComputedFlexItemInfo::mClampState. r=dholbert
Depends on D9727

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

--HG--
extra : moz-landing-system : lando
2018-10-24 23:47:23 +00:00
Brad Werth 23c8887384 Bug 1498273 Part 1: Updated Flex.webidl to add a per-item clamp state attribute. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D8769

--HG--
extra : moz-landing-system : lando
2018-10-24 23:46:16 +00:00
Gurzau Raul 44779dbce7 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-25 01:03:07 +03:00
Gurzau Raul 2a5fa0a706 Merge autoland to mozilla-central. a=merge 2018-10-25 01:00:19 +03:00
Hiroyuki Ikezoe d4a698230e Bug 1501106 - Drop nsIDocument::mAutoSize and relevant members. r=botond
I guess we can eventually replace the conditions for autoSize with
`width == nsViewportInfo::Auto` or `height == nsViewportInfo::Auto`, but it
will break current behavior so for now we are going to preserve the current
behavior.  For example, we currently consider no viewport meta tag means
autoSize is disabled but it should be an autoSize case.

Depends on D9461

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

--HG--
extra : moz-landing-system : lando
2018-10-24 21:43:50 +00:00
Hiroyuki Ikezoe e47a1d0529 Bug 1501106 - Various test cases checking current autoSize behavior. r=botond
Following four conditions are where nsIDocument::mAutoSize is true and
test cases for each condition. The conditions are the cases where we
currently set nsIDocument::mAutoSize true in nsIDocument:GetViewportInfo.

1) width=device-width
  test_meta_viewport_auto_size_by_device_width.html
2) no width && height=device-height
  test_meta_viewport_auto_size_by_device_height.html
3) no width && initial-scale=1
  test_meta_viewport_auto_size_by_fixed_height_and_initial_scale_1.html
  test_meta_viewport_auto_size_by_initial_scale_1.html
4) invalid width && (invalid height || no height)
  test_meta_viewport_auto_size_by_invalid_width.html

Below tests are cases that autoSize is disabled.
  test_meta_viewport_auto_size_by_fixed_width_and_initial_scale_1.html
  test_meta_viewport_auto_size_by_fixed_width_and_device_height.html
  test_meta_viewport_auto_size_by_initial_scale_0_5.html
  test_meta_viewport_auto_size_by_invalid_width_and_fixed_height.html

Depends on D9460

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

--HG--
extra : moz-landing-system : lando
2018-10-24 21:46:55 +00:00
Hiroyuki Ikezoe cadab956a0 Bug 1501106 - Drop constaint of max zoom in nsViewportInfo. r=botond
This is a follow-up fix for bug 1431601, I didn't notice that we constrain
mMaxZoom in here nsViewport class.
In bug 1431601, instead we did constrain the value in nsIDocument::GetViewportInfo
since the contrained value is used in the function.

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

--HG--
extra : moz-landing-system : lando
2018-10-24 21:46:51 +00:00
Brendan Dahl 33c8c0f582 Bug 1501833 - Allow the retargetdocumentfocus attribute to be used in any chrome document. r=smaug
Fixes test browser/base/content/test/general/browser_documentnavigation.js
for browser.xhtml.

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

--HG--
extra : moz-landing-system : lando
2018-10-24 21:10:37 +00:00
Gurzau Raul ff2bc5ca0b Backed out changeset 4b5b1ff23dd7 (bug 1372157) for failing at webgl-conf/generated/test_2_conformance2__vertex_arrays__vertex-array-object.html on a CLOSED TREE 2018-10-24 22:46:34 +03:00
Mark Banner a26105ff45 Bug 1501662 - Add more .eslintrc.js files for test directories (dom, modules, netwerk and parser). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D9661

--HG--
extra : moz-landing-system : lando
2018-10-24 19:11:17 +00:00
Botond Ballo 9379bf655d Bug 1493976 - Reset the resolution to 1 when entering fullscreen mode. r=kats,xidorn
The previous resolution is restored when exiting fullscreen mode.

Depends on D9442

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

--HG--
extra : moz-landing-system : lando
2018-10-24 19:20:05 +00:00
Jeff Gilbert 1514c1a9f2 Bug 1399501 - MakeCurrent again in InitAndValidateGL. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D9290
2018-10-24 11:36:02 -07:00
Jeff Gilbert e6ec78d63c Bug 1399501 - Don't allow glsl[130,400) unless we have gpu_shader5. - r=kvark
MozReview-Commit-ID: EUk2uc64Tok

Differential Revision: https://phabricator.services.mozilla.com/D9288
2018-10-24 11:35:58 -07:00
Jeff Gilbert 4f57ad7f07 Bug 1372157 - Fix IsFoo results in WebGL. r=kvark
Passes deqp/functional/gles3/lifetime.html.

Differential Revision: https://phabricator.services.mozilla.com/D8956
2018-10-24 11:30:58 -07:00
Jeff Gilbert 7ec52f3de0 Bug 1501134 - Don't consider snorm compatible with unorm for CopyTexImage. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D9464

--HG--
extra : moz-landing-system : lando
2018-10-24 15:31:43 +00:00
Andrea Marchesini 8919a215c2 Bug 1501204: Update the FeaturePolicy inherit algorithm implementation, r=ckerschb 2018-10-25 19:03:38 +02:00
Daniel Varga ef1b6f6269 Merge mozilla-central to mozilla-inbound. a=merge 2018-10-25 19:20:33 +03:00
Nika Layzell 84828b5af3 Bug 1501124 - Switch BackstagePass to use WebIDLGlobalNameHash, r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D9736
2018-10-25 10:24:36 -04:00
Zibi Braniecki 1109449691 Bug 1488973: Wrap privileged promises in a promise for the document we`re returning to. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D7961

--HG--
extra : moz-landing-system : lando
2018-10-24 17:41:46 +00:00
Haik Aftandilian 71ea515d77 Bug 1501121 - [Mac] With sandbox early startup enabled, content processes become "Not Responding" in Activity Monitor r=Alex_Gaynor
When early sandbox setartup is enabled, revert to sending SetProcessSandbox() to the child process as before. In the child process RecvSetProcessSandbox() handler, call CGSShutdownServerConnections() and then return early if the sandbox is already enabled.

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

--HG--
extra : moz-landing-system : lando
2018-10-26 13:03:55 +00:00
Jim Blandy 7ec799b8fc Bug 1426467: Part 4: Segregate WorkerDebuggeeRunnables into their own queues. r=baku
Remove WorkerPrivate::mQueuedRunnables and its associated functions. The
approach they implement can never be correct, as the parent window gets
'resumed' whenever the debugger resumes execution after a breakpoint. The
interrupted JavaScript invocation has not yet completed, so it is not yet time
to run mQueuedRunnables. Simply re-enqueing them at that point can cause
messages from the worker to arrive out of order.

Instead, we create a separate ThrottledEventQueue,
WorkerPrivate::mMainThreadDebuggeeEventTarget especially for
WorkerDebuggeeRunnables, runnables sent from the worker to the main thread that
should not be delivered to a paused or frozen content window. This queue is
paused and resumed by WorkerPrivate::Freeze, WorkerPrivate::Thaw,
WorkerPrivate::ParentWindowPaused, and WorkerPrivate::ParentWindowResumed.

Since this affects when WorkerDebuggeeRunnables are delivered relative to other
administrative worker runnables, WorkerDebuggeeRunnable must use a
ThreadSafeWorkerRef to ensure that the WorkerPrivate sticks around long enough
for them to run properly.

Depends on D9219

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

--HG--
extra : moz-landing-system : lando
2018-10-23 06:30:30 +00:00
Christoph Kerschbaumer 8b14b77870 Bug 1500083 - Exempt TYPE_XBL loads from CSP. r=dveditz
--HG--
extra : rebase_source : 0812c9ad5704e7804c8e0c630a35735b65c7469b
2018-10-22 14:50:58 +02:00
Andrew McCreight 137838b760 Bug 1500200 - Add non-default implementations of various ways to construct NonRefcountedDOMObject r=peterv
The Rule of Three means that a class with a non-default dtor should
also have a non-default copy constructor and copy assignment operator.
If the default versions of any of these constructors are used, then
you end up with negative leaks.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 10:45:15 +00:00
Andreas Pehrson 16f6336ae3 Bug 1502313 - Remove concurrent audio input device limit. r=padenot
The limit only applied within a child process.

However, within a child process we already share cubeb stream when requesting
the same device multiple times, and disallow capturing from more than one device
at a time.

This limit no longer has any effect.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 14:22:23 +00:00
Ryan Hunt 3629eceb88 Bug 1504708 - Remove unused nsIDOMWindowUtils::RenderDocument. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D10905

--HG--
extra : rebase_source : be9dae5e981b0b211b8e201e69e4ec4c25fbf375
extra : amend_source : 7c40758c5b99ccf47fd1eae28cc8e9e559c2dda6
extra : source : e8530af895573993c962f452a67b76a7a258f04f
2018-10-18 13:12:19 -05:00
Kris Maglione 6fb571f4fb Bug 1356412: Part 2 - Remove script loader path mangling from DOM code. r=bz
As in part 1, this no longer serves any purpose.

This patch also removes the otherwise unused WrappersEnabled() method, which
was similarly only useful before we had compartment-based security isolation.
Its functionality is now handled by compartment flags.

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

--HG--
extra : rebase_source : e4c85eda6cdf430844dea828e2eee3a083f2616d
2018-11-02 16:15:26 -07:00
Ehsan Akhgari 3da9ced0c9 Bug 1503697 - Record trackers being loaded on a site in the content blocking log; r=baku,francois
Differential Revision: https://phabricator.services.mozilla.com/D10439
2018-11-05 13:44:29 -05:00
Cosmin Sabou dd34f6cbd5 Backed out changeset db3c2a88f79c (bug 1502927) for mochitest failures on test_reduce_time_precision. 2018-11-05 19:46:42 +02:00
Paul Adenot 6c82d39b64 Bug 1502927 - Remove MediaStream.currentTime. r=baku,jib
This has never been specced and is unused appart from our tests.

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

--HG--
extra : rebase_source : 4c54d808fb69c0e403ff2e1775b97571889efca4
extra : histedit_source : bc568066b0684bb82b4f553b99f0dd48212aa633
2018-10-29 17:38:19 +01:00
Cosmin Sabou f341826914 Merge mozilla-central to mozilla-inbound. a=merge 2018-11-05 18:20:54 +02:00
Ehsan Akhgari 7e258df307 Bug 1504557 - Remove the XPCOM registration for nsErrorService; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10848
2018-11-05 09:44:58 -05:00
Paul Adenot dd030b70f2 Bug 1499426 - Only create AudioInputProcessing once in MediaEngineWebRTCAudio::Start. r=pehrsons 2018-11-05 11:23:39 +01:00
Andrea Marchesini 4ba16f8d4b Bug 1503276 - Response.redirect() should throw TypeError if the input is an invalid URL, r=smaug 2018-10-30 20:07:28 +01:00
arthur.iakab 468aa07e7a Merge mozilla-central to inbound 2018-10-24 07:17:50 +03:00
arthur.iakab 0d669cb499 Merge inbound to mozilla-central a=merge 2018-10-24 07:15:44 +03:00
Boris Zbarsky e8f0c35cc3 Bug 1501479. Add instrumentation to figure out why Document.prototype creation is failing. r=mccr8 2018-10-24 02:00:49 +02:00
Noemi Erli 06a8cd8e3c Backed out changeset bee1c344cb47 (bug 1491909) for failures in browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js 2018-10-24 04:23:13 +03:00
Denis Palmeiro fc930ad16f Bug 1491909 - Add an AllocPolicy to mozilla::JSONWriter r=jwalden,mstange
JSONWriter currently calls new and delete indirectly through mozilla::MakeUnique to allocate a buffer.  Becuase of this, the methods of this class cannot be invoked within Spidermonkey due to https://searchfox.org/mozilla-central/source/config/check_vanilla_allocations.py#6-14.  Therefore, JSONWriter needs an AllocPolicy template parameter so that the allocation and deallocation routines can be changed to match the JS AllocPolicy when invoked within SpiderMonkey.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 20:46:31 +00:00
Jeff Gilbert f2e0b47bd4 Bug 1499844 - Fix win64 clang-cl -Wformat warnings. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D9027

--HG--
extra : moz-landing-system : lando
2018-10-23 14:18:15 +00:00
Jim Blandy 5ec6faca84 Bug 1426467: Part 3: Create a WorkerRunnable subclass, WorkerDebuggeeRunnable, for runnables that could run debuggee JS. r=baku
Separating these runnables out under a separate subclass will let us delay their
delivery while the content window is paused in the debugger.

CancelingOnParentRunnable, used when the worker calls self.close(), to close the
worker from the parent thread, must also be a WorkerDebuggeeRunnable, since it
must be processed only after all prior messages/errors from the worker.

Depends on D9218

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

--HG--
extra : moz-landing-system : lando
2018-10-22 15:46:04 +00:00
Ehsan Akhgari e6c5cd6e52 Bug 1501404 - Part 1: Remove the XPCOM registration for RequestContextService r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D9570

--HG--
extra : moz-landing-system : lando
2018-10-23 20:07:17 +00:00
arthur.iakab 7e992252c5 Merge mozilla-central to mozilla-inbound 2018-10-24 01:23:57 +03:00
Jim Blandy 12b557b02d Bug 1426467: Part 1: Rewrite test_cache_worker_gc.html to use async functions. r=baku
This just cleans up the function a bit to make the next change easier to see. No
behavior change intended.

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

--HG--
extra : moz-landing-system : lando
2018-10-22 15:34:21 +00:00
Brad Werth e7dc869f77 Bug 1501109 Part 2: Update test expectations for flex line growth state. r=dholbert
Depends on D9454

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

--HG--
extra : moz-landing-system : lando
2018-10-23 16:24:00 +00:00
Brad Werth 29992e3858 Bug 1501109 Part 1: Change Flex API growth state to match layout algorithm, and use enums from webidl. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9454

--HG--
extra : moz-landing-system : lando
2018-10-23 16:23:37 +00:00
Edouard Oger 2aa62daff7 Bug 1500292 p1 - Remove 0-length key checks in ImportSymmetricKeyTask and DerivePbkdfBitsTask. r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D9285

--HG--
extra : moz-landing-system : lando
2018-10-23 15:43:44 +00:00
Gijs Kruitbosch 8c3a4d7b4a Bug 1501079 - fix various tests to not race with window focus/activate, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9437

--HG--
extra : moz-landing-system : lando
2018-10-23 10:16:35 +00:00
Margareta Eliza Balazs 1a7c7d8823 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-23 12:31:53 +03:00
Margareta Eliza Balazs a7f4d3ba4f Merge inbound to mozilla-central. a=merge 2018-10-23 12:27:03 +03:00
Dorel Luca 3a7cdf3ced Merge mozilla-central to autoland
--HG--
extra : rebase_source : 55b6c62caabc054e51b6794215a76068e8da3bf1
2018-10-23 07:50:37 +03:00
Matthew Gregan 7a42250fda Bug 1501148 - Replace int (fd) assumptions with portable PlatformHandleType. r=chunmin
--HG--
extra : rebase_source : 2c88a9c9ed31a6880661f2a76a43f9d02916eaf0
2018-10-23 16:27:58 +13:00
Andrea Marchesini 17f8a25e39 Bug 1500734 - createImageBitmap should throw RangeError if sw or sh is 0 - r=aosmond 2018-10-23 08:17:28 +02:00
Andrea Marchesini 4439acd683 Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb 2018-10-23 08:17:13 +02:00
Daniel Varga 5255e1718f Backed out 6 changesets (bug 1489301) for Linting opt failure at /builds/worker/checkouts/gecko/dom/bindings/parser/WebIDL.py
Backed out changeset 1c0823540b44 (bug 1489301)
Backed out changeset 529524df76a6 (bug 1489301)
Backed out changeset f34bc8a40bec (bug 1489301)
Backed out changeset 168cf9cea716 (bug 1489301)
Backed out changeset 19ca10fa3772 (bug 1489301)
Backed out changeset ff8fb091198e (bug 1489301)
2018-10-23 03:49:00 +03:00
Nika Layzell 10810d7fe5 Bug 1500011 - Use CheckedInt more in CalculateBufferSizeForImage, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9145
2018-10-22 20:37:06 -04:00
Nika Layzell b4cc020355 Bug 1489301 - Part 6: Remove references to 'System' from WebIDL.py, r=bzbarsky
'Exposed=System' is no longer used in any webidl files, so we can kill it.

Differential Revision: https://phabricator.services.mozilla.com/D9401
2018-10-22 20:17:14 -04:00
Nika Layzell bb337a8abf Bug 1489301 - Part 5: Expose all System-only objects on Window, r=bzbarsky
There is a limited number of these, and this allows me to completely remove
mention of the 'System' global.

In the future System-only exposure could be achieved using a [Func] enabler.

Differential Revision: https://phabricator.services.mozilla.com/D9400
2018-10-22 20:17:14 -04:00
Nika Layzell 0562b4b23b Bug 1489301 - Part 4: Remove unnecessary [Exposed=System] annotations, r=bzbarsky
We don't need to expose on both Window and System anymore, as Window now
implies System. I don't remove unnecessary [Exposed=Window] annotations, as
WebIDL upstream has removed PrimaryGlobal.

Differential Revision: https://phabricator.services.mozilla.com/D9399
2018-10-22 20:15:47 -04:00
Nika Layzell b54aa3a790 Bug 1489301 - Part 3: Fix test expecting interfaces not exposed on System, r=bzbarsky
The `Window` interface is now exposed on system globals, so the check is now
invalid.

Differential Revision: https://phabricator.services.mozilla.com/D9403
2018-10-22 20:12:55 -04:00
Nika Layzell 0f6872435c Bug 1489301 - Part 2: Fix broken [Func] condition assuming Window object, r=bzbarsky
This condition unwraps the global to a window, and doesn't check before
dereferencing. This is no longer valid now that the corresponding interfaces
are exposed on BackstagePass.

Differential Revision: https://phabricator.services.mozilla.com/D9402
2018-10-22 20:12:55 -04:00
Nika Layzell cc852930f1 Bug 1489301 - Part 1: Expose Window interfaces on System by default, r=bzbarsky
This is done by adding BackstagePass the exposure set of Window.

Differential Revision: https://phabricator.services.mozilla.com/D9398
2018-10-22 20:12:55 -04:00
Boris Zbarsky c4ab99ad31 Bug 1500956 part 3. Fix our DOM pre-insertion checks to actually match the spec. r=smaug 2018-10-23 00:32:01 +02:00
Boris Zbarsky ba8cc6ef72 Bug 1500956 part 2. Change our EnsurePreInsertionValidity implementation to follow the spec more closely. r=smaug
This is basically putting in
https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity step 3
and moving step 4 to the right place in the order of steps.  This matters,
because step 3 throws a different exception from all the other steps.
2018-10-23 00:32:00 +02:00
Boris Zbarsky 5bb4f3a8ba Bug 1500956 part 1. Change IsAllowedAsChild to take an ErrorResult instead of returning a boolean. r=smaug
The spec algorithms have a step that throws NotFoundError in between steps that
throw HierarchyRequestError.  We can't really implement that with our current
setup.

This changeset does not change observable behavior.
2018-10-23 00:32:00 +02:00
Daniel Varga b8e466e4e8 Backed out 5 changesets (bug 1419091) for reftest failure at tests/layout/reftests/bugs/1377447-1.html.
Backed out changeset 15811bce212a (bug 1419091)
Backed out changeset 2224ee809328 (bug 1419091)
Backed out changeset ac56492b6ed6 (bug 1419091)
Backed out changeset 72ccc9444916 (bug 1419091)
Backed out changeset 58d5a882493d (bug 1419091)

--HG--
extra : rebase_source : d0bb1df6e29618f515a5c1860db41ff1e3f4c6a3
2018-10-23 01:08:26 +03:00
Perry Jiang 0516414da1 Bug 1399446 - implement ServiceWorkerGlobalScope and ServiceWorkerContainer onmessageerror event handlers r=edenchuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D5213

--HG--
extra : moz-landing-system : lando
2018-10-22 21:22:25 +00:00
Dorel Luca 43200da1bc Backed out changeset 29c73665ba19 (bug 1478216) for mochitest failure on dom/canvas/test/webgl-conf/generated/test_2_conformance2__rendering__framebuffer-texture-changing-base-level.html
--HG--
extra : rebase_source : 1957b4c0bc1725c1e4f514c76bdcca579c644215
2018-10-23 03:50:22 +03:00
Jeff Gilbert 019db5ebb4 Bug 1478216 - Don't init tex images in FBAttachment::IsComplete. r=kvark
Also:
- Only init the base tex level for GenerateMipmap.
- Change ZeroTextureData warning into a perf warning.

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

--HG--
extra : moz-landing-system : lando
2018-10-22 16:44:16 +00:00
Julian Descottes 305dfd1207 Bug 1499096 - Update tests using ok() to is(), with minor fixes;r=Standard8
Depends on D8741
This changeset updates some calls to ok() that should actually be calls to is()
and that needed tiny fixes to match the expected value.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:21:18 +00:00
Julian Descottes 73e3a16c0d Bug 1499096 - Use ok() with 2 arguments instead of 3 when possible;r=Standard8
Depends on D8740.
This changeset replaces calls to ok with 3 arguments to calls with 2 arguments
in situations where the switch does not have a significant impact on the assert.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:13:35 +00:00
Julian Descottes 52b85a20e2 Bug 1499096 - Update wrong usage of ok() with todo_is();r=Standard8
Depends on D8739.
This changeset updates calls to ok() that were most likely intended
for is(), but are not working as is.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:13:02 +00:00
Julian Descottes 2fcd6cb020 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:12:23 +00:00
Jim Blandy f3f80a0acf Bug 1426467: Part 2: Give the weak reference in test_cache_worker_gc.html more time to decay. r=baku
Certain runnables sent from the worker to the content window must be delayed if
the content is paused in the JavaScript debugger. For example, delivering
onmessage events while stopped at a breakpoint would violate the DOM's
run-to-completion rule.

However, other sorts of runnables must be delivered promptly if the worker is
continue to function properly. Thus, the later patches in this bug that
implement the delay for the debugger may, in general, reorder the delivery of
some runnables. So whereas previously runnables sent from the worker to the main
thread could simply assert that the worker was still alive, delayed runnables
will now need to use a WorkerRef to hold the worker alive until they are
processed.

This affects the timing with which weak references to workers decay. Since there
is no solid way to test such GC-sensitive APIs, this patch simply requests a
second GC. This is not guaranteed to pass, but then again, the test as it stands
is not guaranteed to pass either.

Depends on D9217

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

--HG--
extra : moz-landing-system : lando
2018-10-22 15:35:32 +00:00
Andrea Marchesini a6e388e171 Bug 1500768 - Support SVG images in HTMLImageElements, r=jwatt 2018-10-25 14:55:06 +02:00
Andrea Marchesini 25bff22bd6 Bug 1500768 - Implement SVGImageElement support for createImageBitmap, r=jwatt 2018-10-25 14:55:06 +02:00