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

81961 Коммитов

Автор SHA1 Сообщение Дата
Christoph Kerschbaumer 49a632b6c1 Bug 1532207: Do not query the CSP from the principal within LoadFrame, but rather do not even set the Principal if it does not override the CSP within nsContentUtils::GetAttrTriggeringPrincipal. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D22121

--HG--
extra : moz-landing-system : lando
2019-03-14 11:39:04 +00:00
Chun-Min Chang 72f160f9f7 Bug 1500713: P4 - Unit test for BufferReader. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D22814

--HG--
extra : moz-landing-system : lando
2019-03-14 17:18:49 +00:00
Chun-Min Chang f251af73b4 Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D22048

--HG--
extra : moz-landing-system : lando
2019-03-14 17:18:45 +00:00
Chun-Min Chang 1f89757f9f Bug 1500713: P2 - Seek MP3 parser to the original position if it fails parsing. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D19097

--HG--
extra : moz-landing-system : lando
2019-03-14 17:18:35 +00:00
Chun-Min Chang 3dcdee9e7a Bug 1500713: P1 - MP3 Test for the files with VBRI headers. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D19096

--HG--
extra : moz-landing-system : lando
2019-03-14 17:18:26 +00:00
Alex Gaynor 2b1e080e64 Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23013

--HG--
extra : moz-landing-system : lando
2019-03-14 19:40:20 +00:00
James Willcox be6df29c13 Bug 1522451 - Resolve named CSS colors to RGB in Web Manifests r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D23025

--HG--
extra : moz-landing-system : lando
2019-03-14 16:46:38 +00:00
Nika Layzell 75c02c72ea Bug 1532661 - Part 6: Clean up BrowsingContext references more reliably, r=farre
Depends on D23047

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:13 +00:00
Nika Layzell f6a5c73c2a Bug 1532661 - Part 5: Make the BrowsingContext opener edge a weak reference, r=farre
Depends on D22193

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:11 +00:00
Nika Layzell 1b8834985a Bug 1532661 - Part 4: Support initializing complete BrowsingContextGroups in a single op with an IPCInitializer struct, r=farre
Depends on D22192

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:09 +00:00
Nika Layzell 1ebd4ff025 Bug 1532661 - Part 2: Use a field list macro header for synced fields, r=farre
Depends on D22190

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:05 +00:00
Nika Layzell 88e15f606d Bug 1532661 - Part 1: Perform basic validation on CanonicalBrowsingContext, r=farre
Depends on D21134

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:03 +00:00
Nika Layzell b388b0df00 Bug 1530550 - Synchronize mOpener and mIsActivatedByUserGesture with SYNCED_BC_FIELD, r=farre
Depends on D22764

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:55 +00:00
Nika Layzell a26325ea58 Bug 1529684 - Part 6: Store a mIsInProcess flag to preserve WindowProxy behaviour, r=farre
Currently when we have an in-process WindowProxy object, we will attempt
to either use the cached mWindowProxy value, or fetch the
nsGlobalWindowOuter object from through the nsDocShell. Unfortunately,
when the BrowsingContext is detached, we will fail to get the
nsGlobalWindowOuter object. This happens to be OK for our test cases, as
the cached mWindowProxy value doesn't have the chance to go away, but
isn't acceptable long-term.

These patches exascerbated that issue by causing the nsDocShell pointer
itself to be cleared when it is destroyed, which caused the Remote
WindowProxy logic to be triggered. To deal with that case, this patch
adds a new mIsInProcess flag to continue to act like the old code-path.

In the future, we will need to also handle ensuring that the
nsGlobalWindowOuter lives for long enough, however that is not being
done in this patch in order to land it sooner rather than later.

Depends on D22763

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:54 +00:00
Nika Layzell 1dc7594957 Bug 1529684 - Part 3: Create BrowsingContext for remote iframes in embedder, r=farre
Depends on D21096

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:47 +00:00
Nika Layzell eaf6c2306e Bug 1529684 - Part 2: Create BrowsingContext for remote browsers in parent, r=farre
Depends on D21095

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:45 +00:00
Nika Layzell 6a04609cc9 Bug 1529684 - Part 1: Allow Attaching BrowsingContext from parent to child, r=farre
This is important to allow creating BrowsingContexts outside of the process
where they are going to be used. This is largely a re-arrangement of existing
code.

There is currently no way to do this type of attaching for browsing contexts in
existing BrowsingContextGroups, which creates some limitations, but happens to
be sufficient for us in the current situation.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:38 +00:00
Christoph Kerschbaumer fd9b8db6bf Bug 1535291: Actually use aContentPolicyType argument within nsWebBrowserPersist::SaveURIInternal r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D23484

--HG--
extra : moz-landing-system : lando
2019-03-14 18:42:47 +00:00
Eden Chuang 3cce0a0fc6 Bug 1472307 - Implement delay update mechanism in ServiceWorkerRegistrationProxy. r=asuth
1. Add a new private member class DelayedUpdateCallback in
   ServiceWorkerRegistrationProxy for handling the deley time up.

2. Modify the lambda function in ServiceWorkerRegistrationProxy::Update(). Get
   the update delay time at first. If the delay time does not equal zero. create
   a timer and a timer callback(DelayedUpdateCallback) to perform the delay
   update. Otherwise execute update directly.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 10:19:13 +00:00
James Willcox b15047799a Bug 1522451 - Resolve named CSS colors to RGB in Web Manifests r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D23025

--HG--
extra : moz-landing-system : lando
2019-03-14 15:43:52 +00:00
Lina Cambridge 256003368d Bug 1524655 - Remove `dom.push.alwaysConnect` and connect unconditionally. r=jrconlin,pjenvey
This commit also fixes a race in `test_error_reporting.html`, where the
push service would initialize and attach its listeners after
`sessionstore-windows-restored`. Even though the test replaces the real
service with a mock, the former keeps listening for pref changes.
When the test calls `setupPrefs` to enable the push connection, the
real service tries to connect to the push server, which asserts in
automation because non-local connections aren't allowed.

We work around this by ensuring that `replacePushService` and
`restorePushService` always wait for the service to shut down before
replacing it with a mock, or restoring the real implementation.

Finally, this commit removes a test that's no longer relevant, since
we don't need to fetch all subscriptions at startup.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 22:37:51 +00:00
Alastor Wu f8ebdadc67 Bug 1535223 - part3 : add log in TextTrack and TextTrackCue. r=jya
It would be helpful if we can also print the information in `TextTrack` and `TextTrackCue`.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 23:25:10 +00:00
Alastor Wu 0b66618ffc Bug 1535223 - part2 : update TextTrackManager's logs. r=jya
Automatically print `TextTrackManager`'s address for the log marco, also update some exist logs.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 23:24:32 +00:00
Alastor Wu a0d0d81ceb Bug 1535223 - part1 : rename log module's name. r=jya
Use more general name `WebVTT` for this log module, which will include other debug logs in other files later.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 23:21:28 +00:00
Karl Tomlinson 7c60fdd3a1 Bug 1535214 run AudioWorklet for realtime AudioContext on GraphRunner thread r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D23445

--HG--
extra : moz-landing-system : lando
2019-03-14 13:40:07 +00:00
Christoph Kerschbaumer 980f75a172 Bug 1530854: Always create CSP on Principal so the explicit CSP in the nsISHEntry holds a reference to the potentially dynamically modified CSP in case of a meta CSP. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D21919

--HG--
extra : moz-landing-system : lando
2019-03-14 06:26:29 +00:00
Olli Pettay ca848dd381 Bug 1532291, bail out early when trying to find any focusable element in shadow tree, r=masayuki
If aIgnoreTabIndex is true, we're just trying to find any focusable element, doesn't matter which tabindex it has.
So better to bail out early from the deeply nested GetNextTabbableContentInScope to avoid exponential number of calls.

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

--HG--
extra : rebase_source : adf9b9ae4e9d9f446f6a82b0fd4a2c0fbef41bf1
2019-03-13 15:41:02 +02:00
Sylvestre Ledru 4aa92e3091 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Dorel Luca f1c7ba91fa Backed out changeset 88ea72c345ab (bug 1524655) for mochitest failures in dom/push/test/test_error_reporting.html 2019-03-14 08:45:37 +02:00
Lina Cambridge 84764d6a93 Bug 1524655 - Remove `dom.push.alwaysConnect` and connect unconditionally. r=jrconlin,pjenvey
Also, remove a test that's no longer relevant, since we don't need to
fetch all subscriptions at startup.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 04:22:18 +00:00
Boris Zbarsky 870c830c5a Bug 1535135. Annotate static binding methods/getters/setters as MOZ_CAN_RUN_SCRIPT. r=qdot
We do this for non-static ones already; we should do it for static ones too.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:50:36 +00:00
Kyle Machulis 514400e811 Bug 1522713 - Allow updating of Frameloader Remoteness via FrameLoaderOwner; r=nika
Adds a method for to nsFrameLoaderOwner destroying and rebuilding a
FrameLoader in order to facilitate a process switch. Method works
without requiring that the work be done in the frontend.

Depends on D22789

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

--HG--
extra : moz-landing-system : lando
2019-03-14 01:25:07 +00:00
Kyle Machulis 0f2bca226d Bug 1522713 - Rename mRemoteFrame to mIsRemoteFrame; r=nika
We have mRemoteFrameChild which owns a RemoteFrameChild, but
mRemoteFrame is just a state. Change to mIsRemoteFrame to reflect
this.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 00:51:58 +00:00
Zibi Braniecki 20e3e4f215 Bug 1532712 - Expose pause/resume observing methods on DocumentL10n. r=smaug
Differential Revision: https://phabricator.services.mozilla.com//D23244

--HG--
extra : histedit_source : 7278710f71d900dfdedcf68abbf8315f05cd44c6
2019-03-13 00:24:41 +00:00
Alex Chronopoulos 59234c63dd Bug 1533612 - Change to unsigned int to avoid integer overflow. r=jya
mProcessedQueueLength is int32_t (wrapped around an Atomic) but it is updated from the method FramesToUsecs() which returns int64_t (wrapped around a CheckedInt) thus it is changed to unsigned int to avoid integer overflow.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 04:11:39 +00:00
Dorel Luca 3ef1df6038 Backed out 5 changesets (bug 1533074) for eslint failure
Backed out changeset 36c6a7178a5c (bug 1533074)
Backed out changeset 7e6a8fadff5b (bug 1533074)
Backed out changeset 2a0494fed543 (bug 1533074)
Backed out changeset 38470d2dd98c (bug 1533074)
Backed out changeset af4e03d1f5c8 (bug 1533074)
2019-03-14 09:14:15 +02:00
Andrea Marchesini 587086626b Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 4 - tests, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22471

--HG--
extra : moz-landing-system : lando
2019-03-14 06:32:40 +00:00
Sebastian Hengst 78d58dd656 Bug 1535619 - add meta information to create bugs for files in dom/localstorage/ in 'Core :: DOM: Web Storage' r=janv
Differential Revision: https://phabricator.services.mozilla.com/D23670

--HG--
extra : moz-landing-system : lando
2019-03-15 14:01:58 +00:00
Byron Campen [:bwc] 3e19e8dd6a Bug 1531811 - Part 1: Remove onremovestream from RTCPeerConnection. r=smaug,jib
Differential Revision: https://phabricator.services.mozilla.com/D23210

--HG--
extra : moz-landing-system : lando
2019-03-15 14:22:02 +00:00
Noemi Erli 7bc2246314 Backed out changeset f8fa30e286ff (bug 1531811) for RTCPeerConnection related failures CLOSED TREE 2019-03-15 16:05:58 +02:00
Jean-Yves Avenard 8ed165824c Bug 1535493 - [MSE] Lower HAVE_ENOUGH_DATA threshold to 3s. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23658

--HG--
extra : moz-landing-system : lando
2019-03-15 12:34:07 +00:00
Jean-Yves Avenard 84716a0281 Bug 1305340 - Enable low-latency decoding on Windows 10 and later. r=pehrsons
Chrome has had it enabled for years, we had disabled it originally due to crashes seen on Windows 7.

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

--HG--
extra : moz-landing-system : lando
2019-03-15 12:26:59 +00:00
Byron Campen [:bwc] 931a6ef4b3 Bug 1531811 - Part 1: Remove onremovestream from RTCPeerConnection. r=smaug,jib
Differential Revision: https://phabricator.services.mozilla.com/D23210

--HG--
extra : moz-landing-system : lando
2019-03-13 14:53:22 +00:00
Dorel Luca 932c9226f8 Bug 1532023 - Disabled permafailing dom/tests/mochitest/fetch/test_fetch_basic_http_sw_reroute.html on android r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D23507

--HG--
extra : moz-landing-system : lando
2019-03-14 15:25:36 +00:00
shindli c206699acc Backed out changeset 99cde26aca85 (bug 1535297) for build bustage failure in builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/dom/Document.h 2019-03-14 17:14:57 +02:00
Emilio Cobos Álvarez a208fc32f8 Bug 1535297 - Remove some unnecessary namespace qualification in Document.h r=smaug
Only kept the ones needed to not conflict with method names.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 14:44:52 +00:00
Alex Chronopoulos 9a704267d1 Bug 1518946 - Use the Await method instead of a sync dispatch because the latter allows the event loop to run while waiting. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23476

--HG--
extra : moz-landing-system : lando
2019-03-14 12:44:57 +00:00
Will Hawkins bfb578d1e9 Bug 1525320: Add config prefs that let us tell media and animated images to paint only the first frame r=jya
Differential Revision: https://phabricator.services.mozilla.com/D21613

--HG--
extra : moz-landing-system : lando
2019-03-13 02:48:38 +00:00
Daniel Holbert c4717937f7 Bug 1322770: Remove bogus assertion from SMIL motion code. r=birtles
We had an assertion here that assumed progression along a motion path must be
positive, but that's not the case when we have decreasing values of
the `keyPoints` attribute.  The assertion wasn't justified and nothing
depended on it being valid, so let's just remove it.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 00:55:31 +00:00
Kyle Machulis b1414002ac Bug 1524709 - Remove aShouldBeRemote from updateBrowserRemoteness; r=nika
Just set the RemoteType in the options object argument, instead of
doubling up the information.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 00:51:30 +00:00
Byron Campen [:bwc] 4be383c835 Bug 1531084 - Part 2: Update webidl to have a default value for selector, according to spec. r=smaug
Depends on D23053

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

--HG--
extra : moz-landing-system : lando
2019-03-12 00:02:40 +00:00
Byron Campen [:bwc] cddab8870e Bug 1531084 - Part 1: Implement selector checking according to spec. r=jib
Depends on D23052

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:59:24 +00:00
Edwin Gao a5bef7a7c7 Bug 1531590, 1531598, 1534811, 1336075, 1531571, 1531572, 1531572, 1531574, 1534855, 1534857, 1535082 - skip tests in mochitest-dev-tools and mochitest-browser-chrome suites for windows10-aarch64 r=jmaher
Bug 1531598 - disable browser_markup_copy_image_data.js
Bug 1531598 - disable browser_markup_links_04.js
Bug 1531598 - disable browser_inspector_menu-01-sensitivity.js
Bug 1534811 - disable accessible/tests/browser/general
Bug 1336075 - disable browser_largeAllocation_non_win32.js
Bug 1531571 - disable browser_jsterm_context_menu_labels.js
Bug 1531572 - disable browser_jsterm_helper_dollar_x.js
Bug 1531573 - disable browser_jsterm_no_input_and_tab_key_pressed.js
Bug 1531574 - disable browser_jsterm_syntax_highlight_output.js
Bug 1534855 - disable accessible/tests/browser/
Bug 1534857 - disable browser_ext_slow_script.js
Bug 1535082 - disable browser_jsterm_helper_dollar_dollar.js

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

--HG--
extra : moz-landing-system : lando
2019-03-13 19:47:25 +00:00
Olli Pettay d18aece015 Bug 1534562, setPointerCapture should work also in Shadow DOM, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D23574

--HG--
extra : rebase_source : f92b749784928d8c12d823a0fc3b36e2f7894986
2019-03-14 21:40:19 +02:00
Brad Werth 58e5965fd4 Bug 1501665 Part 11: Add a new test of meta viewport with zero display width. r=botond
This test ensures that when meta viewport width is fixed, and a viewport
is requested with zero width, the viewport is assigned a height equal to
the scaled display height.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:00:53 +00:00
Brad Werth 046007b94f Bug 1501665 Part 6: Fix an edge case in Document::GetViewportInfo to return css scaled sizes. r=botond
This fixes a problem in an edge case that we are evidently not testing.
If width is 0 and height is auto, we are currently setting height to
the unscaled (not CSS units) display height value.

In addition to this fix, this patch does two drive-by cleanups of code
that uses "defaultScale":

    The redundantly-defined defaultPixelScale is removed.
    The masking block-level definition of defaultScale is renamed to bestFitScale.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 14:57:47 +00:00
Brad Werth 69aed38635 Bug 1501665 Part 1: Add a webidl property to Document to track if it's in an RDM pane. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D19235

--HG--
extra : moz-landing-system : lando
2019-03-18 14:55:51 +00:00
Gijs Kruitbosch b7a741e6cb Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-12 14:34:04 +00:00
Valentin Millet c4ca29eebc Bug 1456962 - Update default channel attributes for DynamicsCompressorNode r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22950

--HG--
extra : moz-landing-system : lando
2019-03-18 14:47:53 +00:00
Valentin Millet 9eab41d287 Bug 1456269 - Construct OscillatorNode with PeriodicWave and type custom works. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D23828

--HG--
extra : moz-landing-system : lando
2019-03-18 14:46:48 +00:00
Mike Conley 10393bbf48 Bug 1533099 - Show the most recently decoded image when creating a visual clone of a video that isn't playing. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D22422

--HG--
extra : moz-landing-system : lando
2019-03-18 14:37:24 +00:00
Mats Palmgren 871498fd1b Bug 1535392 - <style> and <script> elements should be included in Selection.toString() unless they have CSS 'display:none'. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D23804

--HG--
extra : moz-landing-system : lando
2019-03-18 14:33:08 +00:00
Alex Chronopoulos 7d781144c5 Bug 1534313 - Make GetDeviceCollection accessible only by the enumerator. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22989

--HG--
extra : moz-landing-system : lando
2019-03-18 13:52:17 +00:00
Alex Chronopoulos abbe8d123b Bug 1534313 - Remove direct calls to GetDeviceCollection method. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22988

--HG--
extra : moz-landing-system : lando
2019-03-14 16:31:48 +00:00
Alex Chronopoulos 64ed19f8a9 Bug 1534313 - Add new method in enumerator to get the device info from device name. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22987

--HG--
extra : moz-landing-system : lando
2019-03-14 16:31:46 +00:00
Alex Chronopoulos a3b4311080 Bug 1534313 - Put the default audio output first in the list of devices. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22986

--HG--
extra : moz-landing-system : lando
2019-03-14 16:30:25 +00:00
Gabriele Svelto 8acb0afdce Bug 1533842 - When creating the ContentParent object explicitly flag it as not shutting down r=Alex_Gaynor
Differential Revision: https://phabricator.services.mozilla.com/D23740

--HG--
extra : moz-landing-system : lando
2019-03-18 12:54:11 +00:00
David Major e5773183d6 Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester
Per the previous patch, clang-cl only understands five MSVC-style warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

This patch removes the flags that clang-cl doesn't understand.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:19:08 +00:00
Andrew McCreight 51ba7cfd00 Bug 1535105 - Two very minor cleanups in nsGlobalWindowOuter.cpp. r=nika
mDocShell is now a strong reference, and it does not need to be
explicitly initialized in the constructor because it is an nsCOMPtr.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:37:08 +00:00
Chun-Min Chang 7a36977643 Bug 1535044 - Introduce mozilla namespace in TestGroupId.cpp. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23338

--HG--
extra : moz-landing-system : lando
2019-03-13 16:51:38 +00:00
Emilio Cobos Álvarez a5a514eff4 Bug 1534914 - Improve blocked cursor behavior to fall back to next image. r=smaug
Right now we just block the image returned from nsIFrame::GetCursor, which is
the first loading cursor image.

I think we should do the same we do when the image fails to load, which is to
fall back to the next image instead.

This patch moves all the custom cursor code selection logic to
EventStateManager, and lets the frame return a CursorKind and whether custom
images are allowed.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 18:38:09 +00:00
Gurzau Raul cd795da219 Backed out 2 changesets (bug 1532712) for mochitest failures at browser_policy_set_homepage.js on a CLOSED TREE.
Backed out changeset 1af088f5fc34 (bug 1532712)
Backed out changeset 5fb5272aec8e (bug 1532712)
2019-03-13 21:18:53 +02:00
Andrea Marchesini cdabe87d66 Bug 1532553 - Use AutoRealm before calling JS::ReadableStreamGetMode(), r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D23117

--HG--
extra : moz-landing-system : lando
2019-03-12 14:02:13 +00:00
Byron Campen [:bwc] 08f7738011 Bug 1531075: Allow offers to be created/set without any transceivers, re-enable some tests, and fix a mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23022

--HG--
extra : moz-landing-system : lando
2019-03-13 16:46:40 +00:00
Zibi Braniecki 54254e08a5 Bug 1532712 - Expose pause/resume observing methods on DocumentL10n. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D23244

--HG--
extra : moz-landing-system : lando
2019-03-13 16:39:41 +00:00
Brindusan Cristian e0156ff6d2 Backed out changeset add69e4bd9af (bug 1531075) for wpt failures at RTCPeerConnection-setRemoteDescription-offer.html. CLOSED TREE 2019-03-13 18:22:39 +02:00
Byron Campen [:bwc] 24473522b3 Bug 1531075: Allow offers to be created/set without any transceivers, re-enable some tests, and fix a mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23022

--HG--
extra : moz-landing-system : lando
2019-03-13 02:23:39 +00:00
Boris Zbarsky f3173cde3f Bug 1534421. Fix the CAN_RUN_SCRIPT analysis to treat a deref of an arg as live if it would treat the arg as live. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D23071

--HG--
extra : moz-landing-system : lando
2019-03-13 12:13:08 +00:00
Oana Pop Rus 7750cb83c3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-13 12:24:00 +02:00
Oana Pop Rus 39feeaf9a5 Merge inbound to mozilla-central. a=merge 2019-03-13 12:09:03 +02:00
Boris Zbarsky 4ff91d4938 Bug 1506439 part 2. Stop creating a useless nsCOMPtr in DispatchInputEvent. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D23068

--HG--
extra : moz-landing-system : lando
2019-03-13 02:34:48 +00:00
Mike Conley a1f3599f4b Bug 1531101 - Fire UAWidget setup / change events when starting or stopping a visual clone of a <video> element. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D22161

--HG--
extra : moz-landing-system : lando
2019-03-13 01:43:24 +00:00
Mike Conley fbb2da4355 Bug 1531101 - Add method for stopping visual cloning of a video, and a read-only property to check cloning state. r=jya,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D22160

--HG--
extra : moz-landing-system : lando
2019-03-13 01:43:07 +00:00
Narcis Beleuzu 7aea88238d Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-12 23:48:24 +02:00
Alastor Wu 529d51408f Bug 1533909 - part3 : add a crash test. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D23088

--HG--
extra : moz-landing-system : lando
2019-03-13 09:02:45 +00:00
Alastor Wu b399b16f25 Bug 1533909 - part2 : add assertion to ensure we should always get a valid TextTrackCueList. r=jya
In this comparison, we only process `hidden` or `showing` track which should not return null TextTrackCueList.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 05:28:44 +00:00
Alastor Wu 4c5f747109 Bug 1533909 - part1 : 'current cues' should not contain cues which are in the disable track. r=jya
According to the spec [1] step1, `current cues` should only contain cues which are in `hidden` or `showing` track.

[1] https://html.spec.whatwg.org/multipage/media.html#time-marches-on

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

--HG--
extra : moz-landing-system : lando
2019-03-13 05:33:30 +00:00
Jean-Yves Avenard c5e1eb15d6 Bug 1521370 - Ensure WMF PDM is always initialized on the right thread. r=mattwoodrow,gerald.
And only do it once.

Depends on D22874

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

--HG--
extra : moz-landing-system : lando
2019-03-13 06:16:52 +00:00
Jean-Yves Avenard 1d2b1aedfe Bug 1521370 - Remove unused method. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D22624

--HG--
extra : moz-landing-system : lando
2019-03-13 01:50:41 +00:00
Jean-Yves Avenard dfa04f21b3 Bug 1521370 - Add crash guard around VPX decoder creation. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D21477

--HG--
extra : moz-landing-system : lando
2019-03-13 02:36:08 +00:00
Jean-Yves Avenard 3113118c4a Bug 1534893 - Don't attempt to display an invalid TimeUnit. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D23273

--HG--
extra : moz-landing-system : lando
2019-03-13 06:58:35 +00:00
Bogdan Tara 44046ff4d4 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-12 18:12:53 +02:00
Boris Zbarsky 6d1f77b386 Bug 1534370 part 2. Annotate doCommand as MOZ_CAN_RUN_SCRIPT. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D23041

--HG--
extra : moz-landing-system : lando
2019-03-12 01:57:42 +00:00
Boris Zbarsky ccfb4f16b1 Bug 1534370 part 1. Annotate doCommandWithParams as MOZ_CAN_RUN_SCRIPT. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D23036

--HG--
extra : moz-landing-system : lando
2019-03-13 00:43:48 +00:00
Byron Campen [:bwc] c630882575 Bug 1531156 - Part 2: Some code simplification that part 1 lets us do. r=smaug,jib
Differential Revision: https://phabricator.services.mozilla.com/D22209

--HG--
extra : moz-landing-system : lando
2019-03-11 21:01:21 +00:00
Byron Campen [:bwc] e580ea2314 Bug 1531156 - Part 1: Remember our role from the previous negotiation so we can use the right type for getCurrentRemote/LocalDescription. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D22207

--HG--
extra : moz-landing-system : lando
2019-03-11 21:01:40 +00:00
Valentin Gosu 2f70f4be9d Bug 1525036 - Respect CrossOriginPolicy in Fetch r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21416

--HG--
extra : moz-landing-system : lando
2019-03-12 08:04:44 +00:00
Henri Sivonen 69686abca6 Bug 1534267 - Make BrowserBridgeParent* available via TabParent. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D22972

--HG--
extra : moz-landing-system : lando
2019-03-11 18:47:20 +00:00
Dorel Luca 8a746eed7d Backed out 4 changesets (bug 1500713) for build bustage
Backed out changeset d25ff3b04eeb (bug 1500713)
Backed out changeset 98265537ef34 (bug 1500713)
Backed out changeset 670b24af24d4 (bug 1500713)
Backed out changeset 7e5fa7b1f7bc (bug 1500713)
2019-03-12 07:16:59 +02:00
Andrea Marchesini edd4b23c65 Bug 1531071 - Add OOM check in TCPSocketParent, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23146

--HG--
extra : moz-landing-system : lando
2019-03-12 15:10:03 +00:00
Emilio Cobos Álvarez 1daca69d91 Bug 1533424 - Don't allow InspectorUtils to mess up with our UA sheets. r=heycam
You can mess up stuff pretty badly if that happens, and we want to do this
anyway for the shared UA sheet stuff, so...

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

--HG--
extra : moz-landing-system : lando
2019-03-12 15:17:54 +00:00
Bas Schouten bd0f37cdde Bug 1524554 - Part 3: Ensure DT validation in internal Canvas fallback path. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D22964

--HG--
extra : rebase_source : 65c4dee896054ceb46978c94b7ef4f4e6c5308c7
2019-03-11 14:16:14 +01:00
David Major 56ea434680 Bug 1528074 - Translate MSVC warning flags to clang spelling where supported r=froydnj
clang-cl only acts on five MSVC warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

With MSVC now unsupported, most -wdNNNN have no effect and can be removed.

This patch converts the five supported warnings to their clang spellings, as preparation for a subsequent patch that will remove all remaining `[/-]w[edo][0-9]{4}`.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 01:39:42 +00:00
Boris Zbarsky 5bf2e408e6 Bug 1534608. MOZ_CAN_RUN_SCRIPT should disallow non-stack refptr arguments. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D23217

--HG--
extra : moz-landing-system : lando
2019-03-13 00:30:11 +00:00
danielleleb 85f131dba4 Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku
Differential Revision: https://phabricator.services.mozilla.com/D22737

--HG--
extra : moz-landing-system : lando
2019-03-12 22:00:01 +00:00
danielleleb 65d7066adf Bug 1532934 - Enable ESLint for dom/url (automatic changes). r=Standard8,baku
Differential Revision: https://phabricator.services.mozilla.com/D22736

--HG--
extra : moz-landing-system : lando
2019-03-12 17:38:47 +00:00
Chun-Min Chang 60ae0a7806 Bug 1500713: P4 - Unit test for BufferReader. r=kinetik
Depends on D22048

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

--HG--
extra : moz-landing-system : lando
2019-03-09 01:35:04 +00:00
Chun-Min Chang fe833872ac Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik
Depends on D19097

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

--HG--
extra : moz-landing-system : lando
2019-03-09 01:09:37 +00:00
Chun-Min Chang 10ff475ede Bug 1500713: P2 - Seek MP3 parser to the original position if it fails parsing. r=kinetik
Depends on D19096

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

--HG--
extra : moz-landing-system : lando
2019-03-09 01:09:26 +00:00
Chun-Min Chang 8c912c2284 Bug 1500713: P1 - MP3 Test for the files with VBRI headers. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D19096

--HG--
extra : moz-landing-system : lando
2019-03-09 01:09:16 +00:00
Alastor Wu b78375bb8e Bug 1531863 - part3 : implement the 'show-poster-flag' for HTMLMediaElement. r=jya
According to the spec [1], implement the `show-poster-flag` which is used to decide whether we need to run `TimeMarchesOn` algorithm under certain situations.

[1] https://html.spec.whatwg.org/multipage/media.html#show-poster-flag

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

--HG--
extra : moz-landing-system : lando
2019-03-08 03:06:27 +00:00
Alastor Wu 5f410f2fce Bug 1531863 - part2 : handle text track mode changed in MediaElement. r=jya
In order to make the implementation more fitting with the spec, move the implementation of `pending-text-track-change-notification-flag` from text track list to media element.

In addition, it also help us not to expose the internal flag `show-poster` (which will be implemented in patch3) of media element when doing the related algorithm.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 00:32:21 +00:00
Alastor Wu 955915bb2a Bug 1531863 - part1 : implement 'GetMediaElement()' function wrapper. r=jya
To create a function wrapper which would automatically check whether track list exists, in order to reduce unnecessary checking for TextTrackList.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 18:22:24 +00:00
Dorel Luca 8d4d6ee416 Backed out 6 changesets (bug 1531101) for Mochitest failure in toolkit/content/tests/widgets/test_videocontrols_error.html. CLOSED TREE
Backed out changeset 10e9bbf2d1df (bug 1531101)
Backed out changeset 44d96bcc51f7 (bug 1531101)
Backed out changeset 4a4b44c3481a (bug 1531101)
Backed out changeset 12bcda2d76db (bug 1531101)
Backed out changeset 5887b55233c2 (bug 1531101)
Backed out changeset 13a0c61ed4fc (bug 1531101)
2019-03-12 02:04:54 +02:00
Mike Conley 52dc713e19 Bug 1531101 - Fire UAWidget setup / change events when starting or stopping a visual clone of a <video> element. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D22161

--HG--
extra : moz-landing-system : lando
2019-03-08 15:48:38 +00:00
Mike Conley 9508ea09b9 Bug 1531101 - Add method for stopping visual cloning of a video, and a read-only property to check cloning state. r=jya,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D22160

--HG--
extra : moz-landing-system : lando
2019-03-11 22:45:44 +00:00
Oana Pop Rus 091663f183 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-12 00:00:40 +02:00
Boris Zbarsky 00c56efee3 Bug 1534363 followup. Annotate one more function as MOZ_CAN_RUN_SCRIPT_BOUNDARY for the moment. r=bzbarsky 2019-03-11 17:41:42 -04:00
Hiroyuki Ikezoe 5d075461ea Bug 1534158 - Drop InspectorUtils.scrollElementIntoView. r=emilio
This was introduced in bug 1018324 for the DOM Inspector addon but we no longer
support those kinds of addons.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 19:23:29 +00:00
Boris Zbarsky ef3037039b Bug 1534363. Annotate nsIDOMEventListener::HandleEvent as MOZ_CAN_RUN_SCRIPT. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D23035

--HG--
extra : moz-landing-system : lando
2019-03-11 21:15:40 +00:00
Jan Varga 559e8234e4 Bug 1534208 - LSNG: DOM File thread and PBackground child for it must be created as soon as possible; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D22976
2019-03-11 15:35:04 +01:00
Olli Pettay f157b00abf Bug 1533482, null check mProxy in MaybeDispatchPrematureAbortEvents to follow what is done in ::Open (bug 1192350), r=baku
Differential Revision: https://phabricator.services.mozilla.com/D22727

--HG--
extra : moz-landing-system : lando
2019-03-11 13:30:59 +00:00
Boris Zbarsky 68863e1004 Bug 1533617 part 4. Mark virtual methods with CAN_RUN_SCRIPT overrides as CAN_RUN_SCRIPT. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D22838

--HG--
extra : moz-landing-system : lando
2019-03-11 14:20:29 +00:00
Boris Zbarsky 6f2f3304b0 Bug 1533617 part 1. Improve MOZ_CAN_RUN_SCRIPT annotations around synth mouse events. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D22835

--HG--
extra : moz-landing-system : lando
2019-03-11 14:58:04 +00:00
Thomas Wisniewski 11fe9d9b9e Bug 1508377 - properly update XHR status when one is aborted because of an NS_BINDING_ABORTED confition such as window.stop(); r=baku
properly update XHR status when one is aborted because of an NS_BINDING_ABORTED confition such as window.stop()

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

--HG--
extra : moz-landing-system : lando
2019-03-11 13:30:38 +00:00
Andreas Pehrson 43f191c096 Bug 1534238 - Initialize GraphRunner::mThread last. r=padenot
The thread may pre-empt the thread running the ctor and launch GraphRunner::Run
with uninitialized members. This patch ensures they are initialized first.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 13:18:04 +00:00
Byron Campen [:bwc] c33b5e6569 Bug 1490658: Support RTCIceCandidate.usernameFragment. r=mjf,smaug
Differential Revision: https://phabricator.services.mozilla.com/D21803

--HG--
extra : moz-landing-system : lando
2019-03-08 15:24:27 +00:00
sotaro 13efe8615e Bug 1534170 - Fix scope of TextureClientAutoLock in MediaEngineTabVideoSource r=mattwoodrow
TextureClientAutoLock was added by Bug 1440038. Its scope is not good. It should be existed before "MutexAutoLock lock(mMutex)".

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

--HG--
extra : moz-landing-system : lando
2019-03-11 08:00:10 +00:00
Coroiu Cristina c935555fc9 Bug 1528391 - disable 1526044.html on Android for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D22850

--HG--
extra : moz-landing-system : lando
2019-03-10 11:38:39 +00:00
Andreea Pavel 5a60df453a Backed out changeset 5f7ea2187fa6 (bug 1533527) for build bustages on a CLOSED TREE 2019-03-10 03:50:15 +02:00
Jeff Gilbert 8235aa9f56 Bug 1533527 - Forbid non-size_t calls to malloc and calloc. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D22627

--HG--
extra : moz-landing-system : lando
2019-03-09 17:40:54 +00:00
Razvan Maries 87c4a3175f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-03-09 23:55:26 +02:00
Razvan Maries 913f406aec Merge mozilla-inbound to mozilla-central a=merge 2019-03-09 23:51:51 +02:00
Henri Sivonen decc78f432 Bug 1530661 - Make APZ report the per LayersId layer-to-screen transform matrices to the chrome process. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D22082

--HG--
extra : moz-landing-system : lando
2019-03-09 20:33:17 +00:00
Razvan Maries a44733f227 Backed out 2 changesets (bug 1524314) for build bustages. CLOSED TREE
Backed out changeset 2d1f2814e41d (bug 1524314)
Backed out changeset 6838e7d3960f (bug 1524314)
2019-03-09 20:25:42 +02:00
longsonr cfce8a93d3 Bug 1524314 Part 2 - Use RAII notifier classes to simplify code r=dholbert 2019-03-09 17:50:53 +00:00
longsonr 7376fe9ec8 Bug 1524314 Part 1 - use using mozilla:dom to reduce typing r=dholbert 2019-03-09 16:01:33 +00:00
longsonr 1260feab53 Bug 1531578 - don't process nsChangeHint_UpdateSubtreeOverflow for nondisplay frames r=dholbert 2019-03-09 16:01:31 +00:00
Dorel Luca f6792d74fc Merge mozilla-central to autoland 2019-03-09 11:50:28 +02:00
Dorel Luca 23fb3d3791 Merge mozilla-inbound to mozilla-central. a=merge 2019-03-09 11:47:52 +02:00
Boris Zbarsky 4c895e2d7e Bug 1533782. Make nsISelectionController [builtinclass]. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D22840

--HG--
extra : moz-landing-system : lando
2019-03-09 07:43:00 +00:00
championshuttler 45d3b3663d Bug 1508992 - Enable ESLint for dom/plugin/test/unit (Manual Changes). r=qdot
Depends on D22365

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

--HG--
extra : moz-landing-system : lando
2019-03-09 02:26:37 +00:00
championshuttler e3317e4347 Bug 1508992 - Enable ESLint for dom/plugins/test/unit (Automatic Changes). r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D22365

--HG--
extra : moz-landing-system : lando
2019-03-09 02:25:43 +00:00
Bogdan Tara e3008ee390 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-08 23:57:07 +02:00
Bogdan Tara 738b07a929 Merge inbound to mozilla-central. a=merge 2019-03-08 23:52:28 +02:00
Daniel Holbert 3f763b8af9 Bug 1533870: Preemptively fix unified build bustage in layout/style. r=boris
I wrote this patch by first removing UNIFIED_ from layout/style/moz.build, and
then rebuilding, and then addressing build errors one by one.

Nearly all of the build errors were for using the "Document" type without a
proper namespace, and I've addressed this by sprinkling "using namespace"
declarations in the affected .cpp files (and removing a few now-unnecessary
dom:: prefixes on types in those files).

The only other errors were for WorkletGlobalScope.h which needed an #include to
provide the type "DOMHighResTimeStamp", and nsHTMLStyleSheet.h which needed a
forward-declaration for the type "mozilla::dom::Document".

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

--HG--
extra : moz-landing-system : lando
2019-03-08 21:48:39 +00:00
Brendan Dahl 7ebaf1cd2b Bug 1527977 - Share XUL prototype cache with XUL and XHTML. r=smaug
Create a new parser (PrototypeDocumentParser) and content sink
(PrototypeDocumentContentSink) that can be used by both XUL and XHTML.

The new parser moves the code from XULDocument that handles creating and
loading a nsXULPrototypeDocument from either the cache or the source
file. Once the parser has finished loading the prototype it notifies the
content sink. The parser is largely a stub and would be better suited
for use as a nsBaseParser, but nsHTMLDocument unfortunately needs an
nsIParser.

The new content sink has the XULDocument code responsible for the
prototype traversal that creates the DOM (XULDocument::ResumeWalk and
friends) and fires off various events.

To unify XUL and XHTML, the XHTML readystate event sequence is used in
XUL. However, the layout path of XHTML loaded from the prototype cache
more closely follows XUL, where frame initializers and layout don't
start until the entire DOM is built.

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

--HG--
rename : dom/xul/XULDocument.cpp => dom/prototype/PrototypeDocumentContentSink.cpp
rename : parser/moz.build => dom/prototype/moz.build
rename : parser/moz.build => parser/prototype/moz.build
extra : moz-landing-system : lando
2019-03-09 01:00:23 +00:00
Jan Varga 74ae8758bd Bug 1533741 - Bustages on "ActorsParent.cpp" when Gecko 67 merges to beta on 2019-03-11; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D22720
2019-03-08 16:28:52 +01:00
shindli 6c4127e860 Merge inbound to mozilla-central. a=merge 2019-03-08 15:50:01 +02:00
Andrea Marchesini b27c7a2194 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 14 - Test for cookies policy, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21697

--HG--
extra : moz-landing-system : lando
2019-03-08 09:04:57 +00:00
Andrea Marchesini 8e20bbbc9a Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-08 09:04:11 +00:00
Andrea Marchesini bbbb6b3c68 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 11 - windows/workers/documents must keep the current cookie settings and ignore changes, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18960

--HG--
extra : moz-landing-system : lando
2019-03-08 09:03:38 +00:00
Andrea Marchesini 6b7df33f3a Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 10 - Fix existing tests, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18958

--HG--
extra : moz-landing-system : lando
2019-03-08 09:03:15 +00:00
Andrea Marchesini 7d2fff7ba8 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 5 - BroadcastChannel must be blocked when cookie jar access is denied to avoid communication between live and new documents, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18953

--HG--
extra : moz-landing-system : lando
2019-03-08 09:01:32 +00:00
Andrea Marchesini dc74d3e7a0 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 3 - LocalStorage and SessionStorage, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D18951

--HG--
extra : moz-landing-system : lando
2019-03-08 09:00:46 +00:00
Andrea Marchesini 43beb5b35b Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-03-08 09:00:06 +00:00
Boris Zbarsky 91c38ae2e8 Bug 1533105. Re-enable compartment sharing for content windows. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D22364

--HG--
extra : moz-landing-system : lando
2019-03-06 20:39:40 +00:00
shindli ff642e0697 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-08 15:54:05 +02:00
Alex Chronopoulos 6c25265b3d Bug 1213453 - Update mochitest to expect group id. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20373

--HG--
extra : moz-landing-system : lando
2019-03-08 11:52:17 +00:00
Alex Chronopoulos abfb29171d Bug 1213453 - Correlate video device group id based on device name. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20372

--HG--
extra : moz-landing-system : lando
2019-03-08 11:52:18 +00:00
Alex Chronopoulos 6efd82fb6f Bug 1213453 - Session-unique group id. r=pehrsons
Spec in [1] mentions: "The browsing session-unique group identifier for the source of the MediaStreamTrack."

[1] https://www.w3.org/TR/mediacapture-streams/#constrainable-properties

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

--HG--
extra : moz-landing-system : lando
2019-03-08 11:52:06 +00:00
Alex Chronopoulos 871823085b Bug 1213453 - Add getters/setters for group id in MediaEngineSource and the derived classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20370

--HG--
extra : moz-landing-system : lando
2019-03-08 11:51:59 +00:00
Alex Chronopoulos da31b1b51c Bug 1213453 - Add group id in various MediaManager classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20369

--HG--
extra : moz-landing-system : lando
2019-03-08 11:51:45 +00:00
Narcis Beleuzu ccb04a4f95 Backed out 5 changesets (bug 1213453) for bustages on MediaEngineDefault.cpp . CLOSED TREE
Backed out changeset 118792523194 (bug 1213453)
Backed out changeset 6208d9e15f3d (bug 1213453)
Backed out changeset ec1da6bbf1a7 (bug 1213453)
Backed out changeset f78c357f2f5f (bug 1213453)
Backed out changeset 6903f0739e83 (bug 1213453)
2019-03-08 13:34:52 +02:00
Alex Chronopoulos 990cbb15ed Bug 1213453 - Update mochitest to expect group id. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20373

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:57 +00:00
Alex Chronopoulos fae0a858fe Bug 1213453 - Correlate video device group id based on device name. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20372

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:55 +00:00
Alex Chronopoulos 68ec14cfe5 Bug 1213453 - Session-unique group id. r=pehrsons
Spec in [1] mentions: "The browsing session-unique group identifier for the source of the MediaStreamTrack."

[1] https://www.w3.org/TR/mediacapture-streams/#constrainable-properties

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

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:53 +00:00
Alex Chronopoulos c00f4787e9 Bug 1213453 - Add getters/setters for group id in MediaEngineSource and the derived classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20370

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:51 +00:00
Alex Chronopoulos 3a6e2e8c5e Bug 1213453 - Add group id in various MediaManager classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20369

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:49 +00:00
Brindusan Cristian 4e6150486c Backed out changeset 9a94bd3da98f (bug 1532692) for mochitest failures at test_cloneElementVisually_poster.html. 2019-03-08 06:57:25 +02:00
arthur.iakab 77aa564189 Merge mozilla-central to autoland 2019-03-08 06:41:04 +02:00
arthur.iakab 013bbfceb8 Merge inbound to mozilla-central a=merge 2019-03-08 06:39:50 +02:00
arthur.iakab 6ac3e940d9 Merge autoland to mozilla-central a=merge 2019-03-08 06:38:18 +02:00
Mike Conley 5adc1690d5 Bug 1532692 - Clear poster attributes from videos that we're cloning to visually. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D22631

--HG--
extra : moz-landing-system : lando
2019-03-08 03:06:29 +00:00
Neil Deakin b1a0d8a2a9 Bug 1519960, add a previousColumn property for tree columns so that tree drag and drop will work without box objects, r=bzbarsky
--HG--
extra : rebase_source : 35a235ee1119308021685d173c6b6d7487481f5b
2019-03-07 17:57:18 -05:00
Neil Deakin bdd278ae2c Bug 1519956, remove box object related crashtests that will no longer be applicable with no box objects, r=bzbarsky
--HG--
extra : rebase_source : d5dc1a25a740f9d95d00b261873a150f657c05d5
2019-03-07 17:57:12 -05:00
arthur.iakab 85ad02d41a Merge inbound to mozilla-central a=merge 2019-03-07 23:58:42 +02:00
Ciure Andrei 712dd2bb8c Backed out 16 changesets (bug 1525245) for perma failing test_document_cookie.html CLOSED TREE
Backed out changeset 3fd27215698f (bug 1525245)
Backed out changeset d9a9e8e77873 (bug 1525245)
Backed out changeset 0e6f7be92e3f (bug 1525245)
Backed out changeset 6790802e2fa5 (bug 1525245)
Backed out changeset a5a9e01116ed (bug 1525245)
Backed out changeset 66e19a0c38dd (bug 1525245)
Backed out changeset fb90d51ba853 (bug 1525245)
Backed out changeset 4772db3625b3 (bug 1525245)
Backed out changeset 9affaf0cb998 (bug 1525245)
Backed out changeset a91b7ebe8bdd (bug 1525245)
Backed out changeset c2a13a7480e1 (bug 1525245)
Backed out changeset abe4482fa137 (bug 1525245)
Backed out changeset b3920c0bcf84 (bug 1525245)
Backed out changeset 0821b81f2724 (bug 1525245)
Backed out changeset 70bed2ad7899 (bug 1525245)
Backed out changeset 5f72ba232cc8 (bug 1525245)
2019-03-07 17:54:18 +02:00
John Dai 06e6e0dbbf Bug 1533401 - Use native maybe support IPDL in JSWindowActorEventDecl instead of two booleans, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D22509

--HG--
extra : moz-landing-system : lando
2019-03-07 15:11:32 +00:00
John Dai a299029020 Bug 1531837 - Part 2: Add testcase with allFrames and includeChrome for JS Window Actors, r=nika
Depends on D22472

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

--HG--
extra : moz-landing-system : lando
2019-03-07 15:13:44 +00:00
John Dai 12d7184ab0 Bug 1531837 - Part 1: Save WindowActorOptions's includeChrome from webidl, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D22472

--HG--
extra : moz-landing-system : lando
2019-03-07 15:12:09 +00:00
Andrea Marchesini f5aaaac0e2 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 14 - Test for cookies policy, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21697

--HG--
extra : moz-landing-system : lando
2019-03-07 10:22:18 +00:00
Andrea Marchesini 6856f88972 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-07 10:21:15 +00:00
Andrea Marchesini 78f43c5536 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 11 - windows/workers/documents must keep the current cookie settings and ignore changes, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18960

--HG--
extra : moz-landing-system : lando
2019-03-07 10:18:45 +00:00
Andrea Marchesini 48b3f2b792 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 10 - Fix existing tests, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18958

--HG--
extra : moz-landing-system : lando
2019-03-07 10:18:07 +00:00
Andrea Marchesini f02eab2c7d Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 5 - BroadcastChannel must be blocked when cookie jar access is denied to avoid communication between live and new documents, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18953

--HG--
extra : moz-landing-system : lando
2019-03-07 10:16:13 +00:00
Andrea Marchesini e0374960e3 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 3 - LocalStorage and SessionStorage, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D18951

--HG--
extra : moz-landing-system : lando
2019-03-07 10:15:32 +00:00
Andrea Marchesini f44f894eb1 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-03-07 10:14:36 +00:00
Henri Sivonen f332c6813c Bug 1524240 - In EventStateManager::PostHandleKeyboardEvent look up TabParent by LayersId. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D20654

--HG--
extra : moz-landing-system : lando
2019-03-07 08:14:45 +00:00
Andreas Pehrson acf9d0ab88 Bug 1473469 - Make MediaStreamGraph run on a single thread with AudioWorklets enabled. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D20828

--HG--
extra : moz-landing-system : lando
2019-03-06 20:12:25 +00:00
Akshay Kumar 47cdd9e060 Bug 1528097 U2F doesn't work on Windows 10 19H1/20H1 Insider builds r=jcj,keeler
Differential Revision: https://phabricator.services.mozilla.com/D22343

--HG--
extra : moz-landing-system : lando
2019-03-06 22:59:29 +00:00
Coroiu Cristina d234f2549a Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-03-07 06:39:14 +02:00
Coroiu Cristina 24aacfe9a4 Merge inbound to mozilla-central a=merge 2019-03-07 06:34:11 +02:00
Alastor Wu e9b84b4928 Bug 1509446 - part7 : add a reftest. r=jya
Adding a reftest to ensure we would update the cue display after removing cue from the text track, the removed cue should not display on the video's rendering area.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 19:49:32 +00:00
Alastor Wu cfaf9c9586 Bug 1509446 - part6 : update cues display without checking whether cue is active or not. r=jya
We should update cue display everytime when the cues list changed.

In addition, we shouldn't check whether cue is active when we update display, because it's always inactive when the cue has been removed from `TextTrack::RemoveCue()`.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 19:48:31 +00:00
Alastor Wu b4902e9582 Bug 1509446 - part4 : remove set dirty. r=jya
As the `active cues list` would be automatically contruct when there are any active cues being added or inactive cues being removed, we have no need to use dirty to reset the `active cues list`.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 19:24:02 +00:00
Alastor Wu cb43f6e8f8 Bug 1509446 - part3 : run 'TimeMarchesOn' directly, instead of queuing a task. r=jya
According to the spec [1], we should run `TimeMarchesOn` algorithm directly when the specific situations happen, the spec doesn't say that we need to queue a task for it.

In addition, all the call sites for `TimeMarchesOn` are on the main thread, so we don't need to worry about race condition.

[1]
https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-2
https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-3
https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-4

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

--HG--
extra : moz-landing-system : lando
2019-03-08 03:12:42 +00:00
Alastor Wu d7fead1380 Bug 1509446 - part2 : use current cue in 'TimeMarchesOn' algorithm. r=jya
According to the spec [1], the `current cue` is not equal with the `active cue`, because it might contain non active cues, which might be set to active later during the `TimeMarchesOn`.

The `current cue` should be a list of cues, initialized to contain all the cues of all the hidden or showing text tracks of the media element (not the disabled ones) whose start times are less than or equal to the current playback position and whose end times are greater than the current playback position.

[1] https://html.spec.whatwg.org/multipage/media.html#time-marches-on

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

--HG--
extra : moz-landing-system : lando
2019-03-07 19:21:22 +00:00
Alastor Wu 65679bbfa8 Bug 1509446 - part1 : update active cues list when cue's active state changed. r=jya
According to spec [1], `activeCues` should represent a subset of the text track cues whose active flag was set when the script started.

We should only depend on the `TimeMarchesOn` algorithm which will change cue's active state, and then add or remove cue to `activeCues`.

[1] https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-activecues

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

--HG--
extra : moz-landing-system : lando
2019-03-08 03:10:45 +00:00
Jean-Yves Avenard 896e92a45d Bug 1533127 - Force unsigned operation. r=gerald
1 << 31 is defined since C++14 and produces INT_MIN, but subtracting any positive number from INT_MIN would result in a signed overflow.
This can be avoided by making the first argument unsigned (and in this case the second argument will be converted to unsigned as well.)

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

--HG--
extra : moz-landing-system : lando
2019-03-08 03:03:16 +00:00
Mike Conley 8327974474 Bug 1532682 - Make HTMLVideoElement::EndCloningVisually completely sever references between source and target video elements. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D22109

--HG--
extra : moz-landing-system : lando
2019-03-07 22:42:42 +00:00
Brindusan Cristian 01e26ea3df Backed out 4 changesets (bug 1531863) for mochitest failures at test_videocontrols_vtt.html. CLOSED TREE
Backed out changeset e2e2b325344f (bug 1531863)
Backed out changeset 5be609c16665 (bug 1531863)
Backed out changeset 21bafd01b438 (bug 1531863)
Backed out changeset c9628b2b89b2 (bug 1531863)

--HG--
extra : histedit_source : 869452c42d3539867f34e64be52b7afba5463235
2019-03-08 02:34:45 +02:00
Alastor Wu b441cd934c Bug 1531863 - part3 : implement the 'show-poster-flag' for HTMLMediaElement. r=jya
According to the spec [1], implement the `show-poster-flag` which is used to decide whether we need to run `TimeMarchesOn` algorithm under certain situations.

[1] https://html.spec.whatwg.org/multipage/media.html#show-poster-flag

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

--HG--
extra : moz-landing-system : lando
2019-03-07 21:47:58 +00:00
Alastor Wu 64ab84e0bc Bug 1531863 - part2 : handle text track mode changed in MediaElement. r=jya
In order to make the implementation more fitting with the spec, move the implementation of `pending-text-track-change-notification-flag` from text track list to media element.

In addition, it also help us not to expose the internal flag `show-poster` (which will be implemented in patch3) of media element when doing the related algorithm.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 15:26:20 +00:00
shindli a0e5b5dae7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-08 11:42:48 +02:00
arthur.iakab 64ac6164ed Merge mozilla-central to inbound 2019-03-08 06:42:28 +02:00
Jan Varga 8b4670b550 Bug 1533541 - dom/localstorage/test/unit/test_groupLimit.js fails with LSNG enabled; r=asuth
Reviewers: asuth

Reviewed By: asuth

Bug #: 1533541

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

--HG--
extra : rebase_source : fd352191fec915b68bb9161e1de7c89a0522be52
2019-03-07 20:46:46 -05:00
Edwin Gao 8e84ea1e71 Bug 1531927 - disable EME and event_listener_leak tests from mochitest-browser-chrome-4 r=jmaher,gbrown
- browser_eme.js
- browser_forgetAPI_EME_forgetThisSite.js
- test_event_listener_leaks.html (bonus - this is not strictly media test, but it seems to crop up a lot in related tests)

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

--HG--
extra : moz-landing-system : lando
2019-03-06 21:31:27 +00:00
Dorel Luca dfa0190845 Backed out 3 changesets (bug 1512445) Build bustage
Backed out changeset b954e5d0324a (bug 1512445)
Backed out changeset 04c1982c1a7e (bug 1512445)
Backed out changeset 0a78b7e72e1b (bug 1512445)
2019-03-06 23:28:37 +02:00
Boris Zbarsky 53cb86f99c Bug 1533103. Temporarily disable compartment-sharing for content windows. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D22362

--HG--
extra : moz-landing-system : lando
2019-03-06 20:37:05 +00:00
Matthew Gregan 1de0040101 Bug 1512445 - Enable AudioIPC build on Windows (default off via pref). r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D22155

--HG--
extra : moz-landing-system : lando
2019-03-06 20:43:30 +00:00
Alex Gaynor 9a784d8ef8 Bug 1533066 - replace OptionalIPCClientInfo with IPCClientInfo? in IPDL; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D22332

--HG--
extra : moz-landing-system : lando
2019-03-06 17:57:04 +00:00
Nils Ohlmeier [:drno] e69a274510 Bug 1444116: use HTTPS (instead of HTTP) when referring to openh264.org r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D22215

--HG--
extra : moz-landing-system : lando
2019-03-06 19:15:59 +00:00
Dorel Luca 9f366232ad Backed out changeset c66813164419 (bug 1533103) on dev's request. CLOSED TREE 2019-03-06 22:00:51 +02:00
Yaron Tausky 5dcdcc8cef Bug 1530223: Use ThreadBound for RemoteWorkerChild members accessed on launcher thread r=perry,asuth
This adds runtime checks that verify thread safety.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 19:00:10 +00:00
Boris Zbarsky c4415bb7b7 Bug 1533103. Temporarily disable compartment-sharing for content windows. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D22362

--HG--
extra : moz-landing-system : lando
2019-03-06 19:12:47 +00:00
Eric Rahm 0ee2ffc6bc Bug 1527277 - Part 4: Add crashtest. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D20581

--HG--
extra : moz-landing-system : lando
2019-03-06 18:54:27 +00:00
Eric Rahm e9f702a7e9 Bug 1527277 - Part 3: Validate usage of string iterator. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D20580

--HG--
extra : moz-landing-system : lando
2019-03-06 18:55:54 +00:00
Ryan Hunt c39b1f89d0 Bug 1532725 - Rename PRemoteFrame to PBrowserBridge. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D22132

--HG--
rename : dom/ipc/RemoteFrameChild.cpp => dom/ipc/BrowserBridgeChild.cpp
rename : dom/ipc/RemoteFrameChild.h => dom/ipc/BrowserBridgeChild.h
rename : dom/ipc/RemoteFrameParent.cpp => dom/ipc/BrowserBridgeParent.cpp
rename : dom/ipc/RemoteFrameParent.h => dom/ipc/BrowserBridgeParent.h
rename : dom/ipc/PRemoteFrame.ipdl => dom/ipc/PBrowserBridge.ipdl
extra : rebase_source : d5ca117b96c0d266041d23d80f0f4ab9b0471fb6
2019-03-04 20:15:58 -06:00
Ryan Hunt 67120bc4e1 Bug 1532725 - Make TabParent::Recv{MouseEvent, HandleTap, ..} a script boundary and hold a strong reference. r=bzbarsky
These message handlers are currently marked as MOZ_CAN_RUN_SCRIPT, but are called from
PBrowserChild::OnMessageReceived which is not marked to run script. For some reason this is not
currently an issue on tip.

I suspect it has something to do with unified builds as renaming files caused this issue to
happen. I haven't looked into it enough to say for certain.

This commit changes the message handlers to be script boundaries so that the analysis is
satisified. This seemed like an easier change than modifying IPDL to emit the script boundary
around PBrowserChild::OnMessageReceived.

Additionally, Nika pointed out that IPDL doesn't hold a strong reference when calling
message handlers. If the script enters a nested event loop, it may be possible for
the protocol to be freed before control returns to it. This commit adds strong
references to prevent this.

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

--HG--
extra : rebase_source : 0d756e5a921be8154e5fb3715304a8588700e079
2019-03-06 16:54:58 -06:00
Hiroyuki Ikezoe af78a85968 Bug 1532443 - Drop clampScrollPoistion stuff. r=kats
This was introduced in bug 726817 for B2G stuff and there is no call site of
SetClampScrollPosition now and the only one entry point to call the function
was nsIFrameLoader.clampScrollPosition which was removed in
https://hg.mozilla.org/mozilla-central/rev/cd9aace7bb96 .

ScrollFrameHelper::ShouldClampScrollPosition() had always returned true in both
cases of root and non-root scrollable frames. (In the case of non-root
scrollable, nsFrameLoader.mClampScrollPosition is initially set to true and
nobody changes the value)

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

--HG--
extra : moz-landing-system : lando
2019-03-04 22:16:46 +00:00
Matthew Gregan d8e4a8a825 Bug 1512445 - Enable AudioIPC build on Windows (default off via pref). r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D22155

--HG--
extra : moz-landing-system : lando
2019-03-07 02:05:18 +00:00
Andrew Erickson 069c5d4850 Bug 1531313: reenable dom/base/test/test_progress_events_for_gzip_data.html for android r=gbrown,jkt
Differential Revision: https://phabricator.services.mozilla.com/D21590

--HG--
extra : moz-landing-system : lando
2019-03-06 20:57:04 +00:00
Alastor Wu 01fa5895a1 Bug 1531863 - part1 : implement 'GetMediaElement()' function wrapper. r=jya
To create a function wrapper which would automatically check whether track list exists, in order to reduce unnecessary checking for TextTrackList.

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

--HG--
extra : moz-landing-system : lando
2019-03-04 21:00:59 +00:00
arthur.iakab 93997623bd Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-03-08 00:14:12 +02:00
Brindusan Cristian bfb3e7d106 Backed out changeset 9b8ef8d81775 (bug 1532682) for breaking decision task. CLOSED TREE
--HG--
extra : histedit_source : 1ee464b10794713af3590b105395fe60e5712522
2019-03-08 00:05:52 +02:00
Brindusan Cristian 86556db730 Backed out 2 changesets (bug 1515214) for hazard build bustage at CallbackObject.cpp. CLOSED TREE
Backed out changeset 7c4973b0d0e8 (bug 1515214)
Backed out changeset 9aabc3ad2470 (bug 1515214)

--HG--
extra : histedit_source : fe9f52b4aa92e6c3aacb62d5eba3807353c20654
2019-03-08 00:04:31 +02:00
Mike Conley 6deb48195b Bug 1532682 - Make HTMLVideoElement::EndCloningVisually completely sever references between source and target video elements. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D22109

--HG--
extra : moz-landing-system : lando
2019-03-07 21:00:45 +00:00
Markus Stange 42e110e8e5 Bug 1515214 - Add markers with cause stacks and the name of the called function for setTimeout callback execution. r=jesup
These duplicate the existing setTimeout markers a bit.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 18:04:58 +00:00
Markus Stange 18e5146459 Bug 1515214 - Add CallbackObject::GetDescription. r=bzbarsky
This allows us to create profiler markers whose description contains the name
of the function and its file / line number. This allows the profiler UI to
match up setTimeout callbacks for multiple instances of the same page load, in
order to create meaningful profile comparisons based on markers.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 18:04:43 +00:00
Jean-Yves Avenard 2060818e84 Bug 1533252 - P4. Serialize all the video MediaCapabilities queries. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23653

--HG--
extra : moz-landing-system : lando
2019-03-15 13:54:19 +00:00
Jean-Yves Avenard 7e095aad11 Bug 1533252 - P3. Rename LocalAllocPolicy into SingleAllocPolicy. r=pehrsons
It's more descriptive with what it actually does.

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

--HG--
extra : moz-landing-system : lando
2019-03-15 13:35:53 +00:00
Jean-Yves Avenard cbf34767dd Bug 1533252 - P2. Make LocalAllocPolicy inherit from AllocPolicy. r=pehrsons
Despite its name and apparent use LocalAllocPolicy could only handle a single call to Alloc() at a time which was okay due to how it was used by the MediaFormatReader.

However, we do want to handle multiple calls to Alloc().

These changes allow to perform simultaneous requests and have them be processed one at a time serially.

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

--HG--
extra : moz-landing-system : lando
2019-03-15 13:35:42 +00:00
Jean-Yves Avenard bbdbe29869 Bug 1533252 - P1. Extract LocalAllocPolicy from MFR. r=pehrsons
So we can re-use it later.

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

--HG--
extra : moz-landing-system : lando
2019-03-15 13:55:12 +00:00
John Lin 758616336e Bug 1533901 - Add profiler markers for VideoSink. r=padenot
Add profiler marker to show when VideoSink sends frames to compositor
and when it discards frames that are outdated according to current
audio position.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 11:00:06 +00:00
violet 6756284172 Bug 1346610 - Compute width and height only when necessary to avoid exponential time complexity r=longsonr
When only width is needed, we should not compute height, and vice versa. Otherwise
there are exponentially repeated computations for nested svg elements, which will
make the tab unresponsive due to 100% CPU usage for exponentially long time.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 07:27:24 +00:00
Byron Campen [:bwc] b6c6f6df02 Bug 1518672: Sync transceivers before firing signalingstatecheanged. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23906

--HG--
extra : moz-landing-system : lando
2019-03-19 21:07:30 +00:00
James Willcox cf8b03cc76 Bug 1522451 - Resolve named CSS colors to RGB in Web Manifests r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D23025

--HG--
extra : moz-landing-system : lando
2019-03-20 14:44:29 +00:00
Thomas Wisniewski 13eb2f8827 Bug 1437360 - do not attempt to parse XHRs as XML if content-length=0, to prevent logging "no root element found" errors; r=smaug
do not attempt to parse XHRs as XML if content-length=0, to prevent logging "no root element found" errors

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

--HG--
extra : moz-landing-system : lando
2019-03-20 15:43:31 +00:00
Mihir a24deb683c Bug 1532944 - Remove unnecessary ESLint disabling mozilla/no-cpows-in-tests comments. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24148

--HG--
extra : moz-landing-system : lando
2019-03-20 13:58:47 +00:00
Gijs Kruitbosch d185982673 Bug 1530500 - remove obsolete browser swapping flags, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24114

--HG--
extra : moz-landing-system : lando
2019-03-20 08:49:04 +00:00
Sylvestre Ledru 102b964803 Bug 1536432 - MoofParser: Delete useless declaration r=jya
Differential Revision: https://phabricator.services.mozilla.com/D24014

--HG--
extra : moz-landing-system : lando
2019-03-20 00:45:40 +00:00
Jan Varga 977e7c62d6 Bug 1526891 - Part 18: Remove main thread use from StorageOperationBase; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20927
2019-02-23 17:41:23 +01:00
Jan Varga 93fc3f1b66 Bug 1526891 - Part 17: Remove initialization on main thread from quota request parent actors; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20926
2019-02-23 17:39:49 +01:00
Jan Varga d4e6cf1df0 Bug 1526891 - Part 16: Verify principalInfo before creating any parent actors; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20925
2019-02-23 17:37:25 +01:00
Jan Varga c5284f4f76 Bug 1526891 - Part 15: Remove CreateRunnable; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20924
2019-02-23 17:33:55 +01:00
Jan Varga 9f3b0b46c4 Bug 1526891 - Part 14: Move storage service initialization to InitializeQuotaManager; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20923
2019-02-23 17:32:26 +01:00
Jan Varga f8372b6b8d Bug 1526891 - Part 13: Send an async IPC message instead of dispatching a runnable to the PBackground thread when shutting down quota manager; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20922
2019-02-23 17:30:41 +01:00
Jan Varga 64174bb9d6 Bug 1526891 - Part 12: Merge ShutdownObserver with Observer; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20921
2019-02-23 17:28:10 +01:00
Jan Varga 863112a0eb Bug 1526891 - Part 11: Initiate asynchronous deletion of unreferenced files in IDB databases directly on the PBackground thread instead of going through the main thread; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20920
2019-02-23 17:25:48 +01:00