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

77017 Коммитов

Автор SHA1 Сообщение Дата
alwu a23a30a650 Bug 1483703 - part1 : allow media without audio track to autoplay. r=cpearce
We would allow media without audio track to autoplay after it had loaded the metadata.

If media hasn't loaded metadata yet, we would treat it as audible media and then block it.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 20:58:26 +00:00
Brindusan Cristian d2592042f8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-23 01:02:39 +03:00
Brindusan Cristian d21b936680 Merge inbound to mozilla-central. a=merge 2018-08-23 01:00:10 +03:00
Blake Kaplan f91879804f Bug 1480965 - Fix review nit. r=asuth
--HG--
extra : rebase_source : 5403d4a11f6753d086fcc7a64314b72e31419a30
2018-08-22 15:34:16 -04:00
Noemi Erli e0e342c6ae Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-22 19:31:52 +03:00
Noemi Erli f2ac80ab7d Merge inbound to mozilla-central. a=merge 2018-08-22 19:28:33 +03:00
Yaron Tausky 7d9fd70298 Bug 1455078: Implement [SecureContext] for ServiceWorkerContainer r=asuth
The spec mandates that ServiceWorkerContainer only be visible in a secure context,
yet currently it is (almost) always visible, but rejects calls to register() in
non-secure contexts. This commit moves the context check to a [Func] function, thus
implementing the behavior exactly as specified.

This commit uses the same mechanism used by [SecureContext] bindings instead of the
current ad hoc implementation.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 15:22:40 +00:00
Yaron Tausky c97b9eb29f Bug 1455078: Make ServiceWorker test check interface availability with lowered privileges r=asuth
The test as it is currently written checks whether navigator.serviceWorker
exists with system privileges. By using eval(), this commit makes it
perform the check with the content's privileges.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 13:12:52 +00:00
Yaron Tausky 814ab6a3e3 Bug 1455078: Enable service worker testing in test r=asuth
This preference must be enabled since the test creates an insecure context, in
which navigator.serviceWorker is undefined.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 13:15:18 +00:00
svoisen d9fce4a9d0 Bug 1466722 - Remove remaining references to nsCSSRuleProcessor since it has been removed. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D3928

--HG--
extra : moz-landing-system : lando
2018-08-22 01:29:39 +00:00
Blake Kaplan 1f4f71fbc2 Bug 1472303 - Block self-update from top level scripts. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D3221

--HG--
extra : moz-landing-system : lando
2018-08-22 20:00:19 +00:00
Jon Coppeard 6877f8fb6f Bug 1469599 - Associate all module scripts in a module graph with DOM elements before execution r=hsivonen 2018-08-22 14:54:17 +01:00
Olli Pettay ddda29dcf1 Bug 1484371 - make *enter/*leave events uncomposed, r=masayuki
--HG--
extra : rebase_source : 508dc487915b352682887e1a4650fc396564d532
2018-08-22 16:08:17 +03:00
Paul Adenot 1c154b62b4 Bug 1483926 - Take into account mInputDeviceID is always nullptr on Android for now. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D3899

--HG--
extra : moz-landing-system : lando
2018-08-21 16:32:24 +00:00
Henri Sivonen 641c6f0580 Bug 1485320 - Use SetLength() instead of GetMutableData() throwing away the pointer in MemoryOutputStream::Create(). r=asuth
MozReview-Commit-ID: zZmGlE30kz

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

--HG--
extra : moz-landing-system : lando
2018-08-22 11:32:41 +00:00
Noemi Erli a6271be24c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-22 12:53:37 +03:00
Emilio Cobos Álvarez 19b0bfc00d Bug 1484855: Match the 'is rendered' definition from the spec in innerText. r=smaug
This matches other implementations and the spec for fallback content like:

  <canvas><div>abc

(calling div.innerText).

We're treating the <div> as 'rendered' because it's not in a display: none
subtree, but that's not ok, since it is in fact not rendered.

This was added in bug 1226293, and Boris suggested this change, but roc opposed
because it'd be hard to spec properly in comment 15. Looks like the HTML spec
ended up merging roc's innerText spec, and now it's spec'd in terms of 'being
rendered'.

I think IsOrHasAncestorWithDisplayNone just doesn't work in any reasonable way
for stuff out of the flat tree. Thus I think this change is the right thing.

The canvas test fails because of bug 1485076.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 09:05:09 +00:00
Ciure Andrei 40b18c41b7 Backed out 7 changesets (bug 1429298) for xpcshell failures properties-db.js CLOSED TREE
Backed out changeset 48214a8e1b6b (bug 1429298)
Backed out changeset cc2785ab879e (bug 1429298)
Backed out changeset c217209a3b04 (bug 1429298)
Backed out changeset 196fc7b48b84 (bug 1429298)
Backed out changeset 761e9bb54adb (bug 1429298)
Backed out changeset 0b9ec0d707b5 (bug 1429298)
Backed out changeset 38ad1cc1b0c8 (bug 1429298)

--HG--
rename : testing/web-platform/tests/css/motion/offset-path-string-002.html => testing/web-platform/tests/css/motion/offset-path-string.html
2018-08-22 08:01:49 +03:00
Andreea Pavel c7eca6e1df Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-08-22 06:37:23 +03:00
Andreea Pavel 883da574e8 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-22 06:35:14 +03:00
Boris Chiou bbea8d1bca Bug 1429298 - Part 6: Apply motion path transform matrix. r=nical
We implement the layout part of offset-path. Now we don't have
offset-distance, so use the default value, 0%, for it.

Note: rename mCombinedTransform as mIndividualTransform, which only
stores the combined individual transforms. We apply the individual
transforms, motion path transform, and specified transform in
ReadTransforms. (We have to follow the order, so we don't combine the
specified transform in FinishStyle.)

Depends on D2967

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

--HG--
extra : moz-landing-system : lando
2018-08-22 01:22:28 +00:00
Boris Chiou 3563363c59 Bug 1429298 - Part 5: Implement BuildPath for offset-path. r=jwatt
Implement one variant of BuildPath to accept nsTArray<StylePathCommand>,
which is used by <offset-path> (and clip-path in the future).

Depends on D3922

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

--HG--
extra : moz-landing-system : lando
2018-08-22 01:21:45 +00:00
Boris Chiou 6943683e56 Bug 1429298 - Part 4: Rename builder as aBuilder in SVGPathData.cpp. r=TYLin
Follow the rule of naming for the function parameters.

Depends on D2966

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

--HG--
extra : moz-landing-system : lando
2018-08-22 01:21:06 +00:00
Tiberius Oros 05b46cf200 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-22 00:59:19 +03:00
Brian Grinstead e858b8d083 Bug 1484759 - Update references to browser.xul in tests to use AppConstants.BROWSER_CHROME_URL;r=Gijs
This only includes functions that seem to be using it to reference a window.
There are other instances where it's used as a generic chrome URI, and those
are left unchanged.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 15:33:26 +00:00
Dorel Luca 3fa761ade8 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-21 19:01:08 +03:00
Boris Chiou cc2e8fb329 Bug 1429298 - Part 6: Apply motion path transform matrix. r=nical
We implement the layout part of offset-path. Now we don't have
offset-distance, so use the default value, 0%, for it.

Note: rename mCombinedTransform as mIndividualTransform, which only
stores the combined individual transforms. We apply the individual
transforms, motion path transform, and specified transform in
ReadTransforms. (We have to follow the order, so we don't combine the
specified transform in FinishStyle.)

Differential Revision: https://phabricator.services.mozilla.com/D2968
2018-08-21 22:41:44 -07:00
Boris Chiou cfadc28092 Bug 1429298 - Part 5: Implement BuildPath for offset-path. r=jwatt
Implement one variant of BuildPath to accept nsTArray<StylePathCommand>,
which is used by <offset-path> (and clip-path in the future).

Differential Revision: https://phabricator.services.mozilla.com/D2967
2018-08-21 22:41:42 -07:00
Boris Chiou b2e2f913eb Bug 1429298 - Part 4: Rename builder as aBuilder in SVGPathData.cpp. r=TYLin
Follow the rule of naming for the function parameters.

Differential Revision: https://phabricator.services.mozilla.com/D3922
2018-08-21 22:41:41 -07:00
Andreea Pavel c8dfc19d97 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-08-22 06:38:49 +03:00
Marcos Cáceres d9c9ac71d9 Bug 1483156 - Currency of PaymentItem total should be 'USD', but got BOB r=edenchuang
--HG--
extra : amend_source : 8bfb03ef649733c587b1b04bfea6260fb5b2b4fd
2018-08-21 20:16:00 +03:00
Dorel Luca d9bdf77969 Merge mozilla-central to autoland 2018-08-21 12:57:58 +03:00
Dorel Luca 07c6e76122 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-21 12:54:24 +03:00
Emilio Cobos Álvarez bd36609f59 Bug 1484773 - Containing shadow could be null after unlink. r=smaug
Bug 1483882 removed the line that used to remove the SHADOW_TREE bit during
unbind. I missed this caller which still assumed that `IsInShadowTree() ->
GetContainingShadow()`.

That means that before that patch it was going through
nsIDocument::RemoveStyleSheet, which looks pretty wrong to me.

Fix it so that we don't remove the stylesheet (we weren't doing it before
anyway), but we don't crash.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 23:28:57 +00:00
Tom Tung d2cd03866d Bug 1484615 - Followup comment fix for bug 1409641; r=janv
This patch add comments to IndexedDBHelper.jsm to clarify how txn.result is set.
The comments should clear up any confusion caused by previous commit message
(fix for bug 1409641).

--HG--
extra : rebase_source : 57a6f3eb569224a9e432803ef67d80f57219f7ab
2018-08-20 11:46:24 +02:00
Emilio Cobos Álvarez c1a9351458 Bug 1480275: Handle nested use shadow trees properly when the ID target changes. r=heycam
We end up with three <svg:use> elements to update (lol), because the target (#c)
changes, since we create another element with that ID in the document via
outerHTML.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 00:32:56 +00:00
Thomas Daede 2868cd8be4 Bug 1417050: Add support for AV1 in MP4. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D3365

--HG--
extra : moz-landing-system : lando
2018-08-20 23:56:39 +00:00
Kris Maglione 3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Kris Maglione 2dee0aae3c Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj
This allows JS callers to automatically get the correct types during
interation, without having to explicitly specify them.

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

--HG--
extra : rebase_source : b708f382d8ea571d199c669bfed5b5a7ca9ffac4
extra : histedit_source : 7df6feb82088c8a5ca45dc28fe4d2b852c177fee
2018-08-18 21:06:32 -07:00
Kris Maglione c943b2a5c4 Bug 1484496: Part 4a - Add JS iterator support to nsISimpleEnumerator. r=mccr8
This patch adds simple stubs to convert between the nsISimpleEnumerator
iteration protocol and the JS iteration protocol.

Each iterable object is required to have an @@iterator method which returns an
object implementing the iterator protocol. The later objects, by convention,
also have such a method which returns the object itself.

This patch adds both a @@iterator() and entries() methods to
nsISimpleEnumerator. The former returns an iterator which returns plain
nsISupports objects. The latter accepts an IID and queries each element to
that IID before returning it. If any element fails to query, the error is
propagated to the caller.

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

--HG--
extra : rebase_source : 340eb43a1c5e6d7ae69fa8ee486d66d31d079b14
extra : histedit_source : f3efc6c265851a563968ee410e4626e0540f55c0
2018-08-18 16:02:49 -07:00
Kris Maglione 65c28aa0ad Bug 1484496: Part 2 - Add common base class for all nsISimpleEnumerator implementations. r=froydnj
In order to allow JS callers to use nsISimpleEnumerator instances with the JS
iteration protocol, we'll need to additional methods to every instance. Since
we currently have a large number of unrelated implementations, it would be
best if they could share the same implementation for the JS portion of the
protocol.

This patch adds a stub nsSimpleEnumerator base class, and updates all existing
implementations to inherit from it. A follow-up will add a new base interface
to this class, and implement the additional functionality required for JS
iteration.

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

--HG--
extra : rebase_source : ad66d7b266856d5a750c772e4710679fab9434b1
extra : histedit_source : a83ebffbf2f0b191ba7de9007f73def6b9a955b8
2018-08-18 14:22:47 -07:00
Brian Hackett 3570b01c28 Bug 1483248 Part 1 - Allow recording child processes to handle TabChild deletion, r=mccr8.
--HG--
extra : rebase_source : 3f320c950c5018d0852b434a55d552a2e77c0f51
2018-08-21 00:58:31 +00:00
Brian Hackett f4be588d5b Bug 1483240 - Disable plugins in recording/replaying processes, r=jimm.
--HG--
extra : rebase_source : 342a8a0b55affc43858e9cba231888af4411892e
2018-08-21 00:56:47 +00:00
Brian Hackett 418ac18c32 Bug 1483242 - Ensure recording filenames are unique, r=mccr8.
--HG--
extra : rebase_source : 9db5e5beab5e12e4e2abe07f6f07cccd41075f44
2018-08-21 00:55:58 +00:00
Kris Maglione 88a98e8a25 Bug 1484373: Part 6 - Minimize the amount of JS processing required to init extension policies. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3696

--HG--
extra : rebase_source : a0c5b225ba810ccee7fbbbaea06f8eb8d2878cf7
extra : histedit_source : e8bab5d1c67d03d8b9f632802dcf6a24d84b46c3
2018-08-17 21:14:10 -07:00
Kris Maglione 984c4ecad1 Bug 1484373: Part 4 - Move more content script injection logic into policy service. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3694

--HG--
extra : rebase_source : 8816204962b8f1ee843ca526c99aaa8175ca22c8
extra : histedit_source : ede9809d9f9e9bac5e37cfa79c80b899b349a91b
2018-08-17 22:09:23 -07:00
Kris Maglione acf635a29b Bug 1484373: Part 2c - Add Promise::Then handler which accepts a lambda. r=smaug
This makes it easier to add promise handlers from C++ in a manner similar to
JavaScript.

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

--HG--
extra : rebase_source : efa6735da4b22677b684ae790aede6aac6bb1bad
2018-08-18 09:43:22 -07:00
Kris Maglione 5fc43565d7 Bug 1484373: Part 1 - Allow querying to ContentFrameMessageManager. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3691

--HG--
extra : rebase_source : 65652ca62cf87293ec9cebaeda6da747ab5e2fa1
2018-08-17 16:14:43 -07:00
Henri Sivonen 5adc82bb21 Bug 1485029 - Use SIMD for PopulateBufferForBinaryString() in FileReader.cpp. r=smaug
MozReview-Commit-ID: Gwoj13lFJsJ

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

--HG--
extra : moz-landing-system : lando
2018-08-22 13:59:43 +00:00
Eden Chuang 6fddec41b3 Bug 1483470 - Adding new method closePayment in nsIPaymentUIService.idl. r=baku
1. Adding a new method void closePayment(in AString requestId) in
       nsIPaymentUIService.idl
    2. Implementing the closePayment method in paymentUIService.js.
    3. Calling closePayment of paymentUIService.js in
       PaymentRequestService::LaunchUIAction()
2018-08-16 14:19:35 +02:00
Eden Chuang 68bb5bfa3c Bug 1483470 - Handling PaymentRequestService::RespondPayment() to a closed PaymentRequest. r=baku
1. Returning NS_ERROR_FAILURE in PaymentRequestService::RespondPayment() when
       the specified PaymentRequest does not exist in PaymentRequestService.
    2. Renaming "cleanup" to "close" in DOM::WebPayment codes to fit the actual
       behavior.
2018-08-16 14:27:24 +02:00
Landry Breuil aa545e34c8 Bug 1457092 - Implement sandboxing on OpenBSD. r=gcp, r=jld
Add StartOpenBSDSandbox method calling pledge() syscall,
and use it where we're sandboxing processes.

The pledge subsets are coming from two new prefs:
- security.sandbox.pledge.content for the content process
- security.sandbox.pledge.main for the main process

--HG--
extra : rebase_source : 60da70e2d335755fda6126a6b7de7aad41eebb7e
2018-08-23 07:35:00 -04:00
Csoregi Natalia 8f0256ad4c Backed out changeset 675288974991 (bug 1485465) for causing browser-chrome failures browser_use_counters.js. CLOSED TREE 2018-08-23 19:21:21 +03:00
Jeff Walden e4f79e2a19 Bug 1484421 - Move JSON-related functionality into js/public/JSON.h that isn't #include'd in jsapi.h. r=jandem 2018-08-20 07:54:45 -07:00
Jeff Walden ffd93ba761 Bug 1033916 - Move JSAutoByteString out of jsapi.h into js/public/AutoByteString.h, incidentally breaking the jsfriendapi.h -> jsapi.h dependency. r=jandem
--HG--
extra : rebase_source : d85baf9b28e632db5669aa3d056cc9744686f5c8
2018-08-20 07:46:08 -07:00
Jeff Walden 3e90595274 Bug 1484389 - Move various SavedFrame-related functions and data types into js/public/SavedFrameAPI.h so that users aren't forced to depend on jsapi.h or jsfriendapi.h for them. r=jandem
--HG--
extra : rebase_source : d891f81cb0827d3c03971f71ba95a014d1e35379
2018-08-20 07:45:44 -07:00
Jeff Walden cd10720691 Bug 1040316 - Move AutoStableStringChars out of friendapi into public API. r=jandem
--HG--
extra : rebase_source : 3f66710e9517aba203a3d5365f6c3f0102c7baf8
2018-08-20 07:44:44 -07:00
Nicholas Nethercote d6f4bef529 Bug 1484605 - Tweak some lookupForAdd() uses. r=luke
These are cases where the existing code is a little dubious or sub-optimal.

--HG--
extra : rebase_source : 2fcb4657afc7c7d24ae88b85d08df57ae04db38c
2018-08-21 11:53:47 +10:00
Kris Maglione 356dd0de4a Bug 1484466: Part 3a - Update remaining XPCOMUtils.generateQI callers to use ChromeUtils. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3709

--HG--
extra : rebase_source : 650545d3e58ab92821a9ea2097793cca5996d5b3
2018-08-18 12:44:57 -07:00
Kris Maglione 56f4830bf8 Bug 1484466: Part 2a - Remove no-op generateCI calls. r=mccr8
These stopped having any effect when we switched to ChromeUtils.generateQI,
which does not support automatic nsIClassInfo forwarding.

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

--HG--
extra : rebase_source : 62a3690304ad7baa760c41eba777aa17b9af33f0
2018-08-18 12:38:31 -07:00
Csoregi Natalia 0b0d5bd64a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-21 01:04:16 +03:00
Csoregi Natalia 6a5d41b053 Merge inbound to mozilla-central. a=merge
--HG--
rename : devtools/server/actors/webconsole/moz.build => devtools/server/actors/webconsole/listeners/moz.build
2018-08-21 01:00:01 +03:00
shindli 39fac07af8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-20 19:35:19 +03:00
shindli 71ef4447db Merge inbound to mozilla-central. a=merge 2018-08-20 19:31:32 +03:00
Jean-Yves Avenard 384be24476 Bug 1482847 - Fix android decoder creation. r=jolin
A mDisplay vs mImage mixup. We also set both values in CreateTrackInfoWithMIMETypeAndContainerTypeExtraParameters to prevent similar issues in the future.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 15:47:21 +00:00
Jean-Yves Avenard 2cdf517489 Bug 1484648 - Implement CodecProxy::IsHardwareAccelerated. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D3789

--HG--
extra : moz-landing-system : lando
2018-08-20 15:42:33 +00:00
Jan Varga 80990b5552 Bug 1361330 - Part 6: Gate SimpleDB behind a preference; r=asuth 2018-08-20 14:33:17 +02:00
Jan Varga e7d1daf164 Bug 1361330 - Part 5: Automatic tests for simpledb; r=asuth 2018-08-20 14:33:10 +02:00
Jan Varga 5733cbbbd3 Bug 1361330 - Part 4: Core implementation; r=asuth 2018-08-20 14:33:03 +02:00
Jan Varga 8486a0d568 Bug 1361330 - Part 3: Use fully qualified name when declaring ref counting for IDB quota client; r=asuth 2018-08-20 14:32:56 +02:00
Jan Varga b277f1385d Bug 1361330 - Part 2: Move MemoryOutputStream to a generic place; r=asuth 2018-08-20 14:32:48 +02:00
Jan Varga 60713ff421 Bug 1361330 - Part 1: Make quota stream constructors public and move the Create() helpers outside of the stream classes; r=asuth 2018-08-20 14:32:33 +02:00
Jon Coppeard 06575221db Bug 1483487 - Fix static analysis bustage and add missing comments on a CLOSED TREE r=me 2018-08-20 11:13:33 +01:00
shindli 22e756d763 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-20 12:54:42 +03:00
Jon Coppeard 9005410bc5 Bug 1483487 - Add asertions around creating and retrieving DOM proxy expando objects r=peterv 2018-08-20 10:12:35 +01:00
Marcos Cáceres 8f0ff24be1 Bug 1480872 - paymentDetails attributes should default to an empty arrays. r=edenchuang 2018-08-19 19:11:00 +03:00
Masatoshi Kimura 66fa613043 Bug 1484191 - Suppress warning C4819 in TestMimeType.cpp. r=froydnj
--HG--
extra : source : f6814f368b90b9cf1c00df44fd4a62c423a1f8cc
2018-08-17 03:18:15 +09:00
Narcis Beleuzu 96343e8f1f Backed out 3 changesets (bug 1484184, bug 1484190, bug 1484191) for bustages on test_toolchain_configure.py. CLOSED TREE
Backed out changeset dca5444170e0 (bug 1484190)
Backed out changeset 1ef81d07bc5b (bug 1484184)
Backed out changeset 2a42fd4df1bb (bug 1484191)
2018-08-20 19:49:37 +03:00
shindli 1d3a8e90da Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-20 19:36:01 +03:00
Masatoshi Kimura 60b0d9635e Bug 1484191 - Suppress warning C4819 in TestMimeType.cpp. r=froydnj
--HG--
extra : rebase_source : 0c3e287a29cec81e24a22980f6ee2ea32de42283
extra : source : f6814f368b90b9cf1c00df44fd4a62c423a1f8cc
2018-08-17 03:18:15 +09:00
Narcis Beleuzu 1fc429066b Backed out changeset 655d8b94c8f1 (bug 1483926) for geckoview failures on org.mozilla.geckoview.test.PermissionDelegateTest.media
--HG--
extra : rebase_source : 6f7996f81fa9d4c2b675df595b9de3f6385ee5e3
2018-08-20 15:21:55 +03:00
Emilio Cobos Álvarez 3b61137a4b Bug 1484478 - Use a node bit for connectedness. r=smaug
While trying to repro bug 1484293 I noticed that this assertion failed:

https://searchfox.org/mozilla-central/rev/ef8b3886cb173d5534b954b6fb7eb2d94a9473d0/dom/base/ShadowRoot.cpp#160

(during unlink, while unbinding the kids)

We rely on GetComposedDoc returning the right thing during unbind to cleanup
some stuff (see bug 1473637 for example), so it should probably be correct all
the time, regardless of whether something is unlinked or not.

Also this makes GetComposedDoc() much faster, which is nice too, since we call
it somewhat often.

I removed NodeHasRelevantHoverRules, since it's unused (was used by the old
style system).

I moved the SetIsConnected(false) call for the shadow root to before unbinding
the kids for consistency with what Element does with the uncomposed doc flag,
now that the children's connectedness doesn't depend on the shadow root's.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 11:56:27 +00:00
shindli b158b60c25 Backed out changeset 39f61de4e7bb (bug 1484478) for bustages in /builds/worker/workspace/build/src/dom/base/ShadowRoot.cpp:526:20 2018-08-20 14:21:08 +03:00
Emilio Cobos Álvarez ac923a49c1 Bug 1484478 - Use a node bit for connectedness. r=smaug
While trying to repro bug 1484293 I noticed that this assertion failed:

https://searchfox.org/mozilla-central/rev/ef8b3886cb173d5534b954b6fb7eb2d94a9473d0/dom/base/ShadowRoot.cpp#160

(during unlink, while unbinding the kids)

We rely on GetComposedDoc returning the right thing during unbind to cleanup
some stuff (see bug 1473637 for example), so it should probably be correct all
the time, regardless of whether something is unlinked or not.

Also this makes GetComposedDoc() much faster, which is nice too, since we call
it somewhat often.

I removed NodeHasRelevantHoverRules, since it's unused (was used by the old
style system).

I moved the SetIsConnected(false) call for the shadow root to before unbinding
the kids for consistency with what Element does with the uncomposed doc flag,
now that the children's connectedness doesn't depend on the shadow root's.

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

--HG--
extra : moz-landing-system : lando
2018-08-19 18:22:48 +00:00
Emilio Cobos Álvarez 69f98d5c58 Bug 1484474 - Make the ua widget flag in ShadowRoot write-only. r=smaug
Letting people set it back to false would be bad.

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

--HG--
extra : moz-landing-system : lando
2018-08-18 21:32:38 +00:00
Brindusan Cristian a120d8eae6 Backed out changeset a236c987f26c (bug 1357785) for buid bustages on builds/worker/workspace/build/src/dom/base/VisualViewport.cpp. CLOSED TREE 2018-08-20 11:55:10 +03:00
Emilio Cobos Álvarez f61dacb354 Bug 1485465 - Cleanup SVG mapped attribute parser. r=dholbert
* Remove use counters since they're useless right now and I'm re-implementing
   them in bug 1425700 (I'll cleanup UseCounterFor and friends later).

 * Rename some stuff to be clearer (TakeDeclarationBlock instead of
   GetDeclarationBlock).

 * Don't allocate a new URLExtraData for each mapped attribute, cache them in
   the parser instead.

CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D4006
2018-08-23 17:22:55 +02:00
Emilio Cobos Álvarez b10726c501 Back out changeset 56f244940096 (Bug 1425700) for landing with the wrong bug number. r=backout 2018-08-23 17:20:45 +02:00
Emilio Cobos Álvarez d8c2430541 Bug 1425700 - Cleanup SVG mapped attribute parser. r=dholbert
* Remove use counters since they're useless right now and I'm re-implementing
   them in bug 1425700 (I'll cleanup UseCounterFor and friends later).

 * Rename some stuff to be clearer (TakeDeclarationBlock instead of
   GetDeclarationBlock).

 * Don't allocate a new URLExtraData for each mapped attribute, cache them in
   the parser instead.

Differential Revision: https://phabricator.services.mozilla.com/D4006
2018-08-23 17:02:51 +02:00
Cosmin Sabou b69e48dda2 Merge mozilla-central to mozilla-inbound. a=merge 2018-08-24 00:46:31 +03:00
Ehsan Akhgari 988c6ea870 Bug 1485493 - Remove the XPCOM registration for the geolocation service; r=nika 2018-08-23 16:40:21 -04:00
Anny Gakhokidze edf3cdbd07 Bug 1453153 - Initial removal of moz* APIs in DataTransfer, r=enndeakin,r=nika
In DataTransfer, change mozItemCount, mozTypesAt, mozClearDataAt, mozSetDataAt,
mozGetDataAt APIs to be ChromeOnly.

MozReview-Commit-ID: 9uJ9ncrcBL2
2018-08-22 15:10:31 -04:00
Francois Marier 309a23afc3 Bug 1482950 - Use the correct 3rdparty check in tracking annotations. r=dimi,Ehsan,mayhemer!,ehsan!
The mIsTrackingResource flag on nsIHttpChannel was split into two separate
flags depending on whether or not the resource is third-party. The correct
flag will be set by the channel classifier. Similarly, a new function was
introduced, GetIsThirdPartyTrackingResource(), for those consumers (like TP)
who only care about third-party trackers.

The existing function, GetIsTracking(), will continue to look at both
first-party and third-party trackers (the behavior since first party
tracking was added to annotations in bug 1476324).

The OverrideTrackingResource() function now allows nsHTMLDocument to
override both mIsFirstPartyTrackingResource and
mIsThirdPartyTrackingResource, but since this function is a little dangerous
and only has a single user, I added an assert to make future callers think
twice about using it to opt out of tracking annotations.

Currently, only the default storage restrictions need to look at first-party
trackers so every other consumer has been moved to
mIsThirdPartyTrackingResource or GetIsThirdPartyTrackingResource().

This effectively reverts the third-party checks added in bug 1476715 and
replaces them with the more complicated check that was added in bug 1108017.
It follows the approach that Ehsan initially suggested in bug 1476715. It
also reverts the changes in the expected values of the tracking annotation
test since these were, in hindsight, a warning about this regression.

Depends on D3722

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

--HG--
extra : moz-landing-system : lando
2018-08-20 23:53:45 +00:00
Gabriele Svelto afec91a1db Bug 1459212 - Save memory reports for use in crash reports when low on memory r=dmajor,mccr8
This moves the code that detects very low memory scenarios and grabs memory
reports from the main thread event-loop to the available memory tracker.
Besides removing the overhead of the check from the event-loop code this
increases the likeliness of the reports being gathered by sampling at a
higher frequency but only when we already detected a low-memory scenario. Last
but not least this add checks for low commit-space detection alongside low
virtual-memory detection.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 21:53:27 +00:00
Paul Adenot 3f50ca3b6f Bug 1480036 - Allow scaling all MSG volume with a pref. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D2594

--HG--
extra : rebase_source : 12a931585d95fe190e6fc1e3b4fba9a2f0cd6cd9
extra : histedit_source : 355f316e6eba1feaa0ee3e7750feede92eeae4bc
2018-08-01 12:10:32 +02:00
Paul Adenot a5f0fee215 Bug 1480036 - Allow forcing a specific audio output device from a test. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D3507

--HG--
extra : rebase_source : 2f20dcd24d148ea0cc9f7b73ff0dd81f25574467
extra : histedit_source : aa2205caf3ad5fe9e5fceaf78e6f7a7e3488155b
2018-08-01 14:16:30 +02:00
Tanushree Podder b1dcd1284f Bug 1357785 - Expose the Visual Viewport API to web content. r=botond,Nika
Summary:
Implemented the non-event handler attributes of the Visual Viewport API
according to the spec: https://wicg.github.io/visual-viewport

The 'onresize' and 'onscroll' attributes will be implemented in the bug
1478776.
MozReview-Commit-ID: G4bkIZ9VtZ2

--HG--
extra : rebase_source : f73681fa9a6b3642e4ea176b994bd168572d7f6c
2018-07-25 23:08:20 -04:00
Paul Adenot a7e21c1d8c Bug 1483926 - Fix Android device enumeration. r=pehrsons
Not having a return here means that we end up clearing our device list.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 15:34:16 +00:00
Masatoshi Kimura 49ee57f31d Bug 1485028 - Fix warnings that are specific to clang-cl ASAN builds. r=dmajor
--HG--
extra : source : f0b577cc8b920352dfe297e7ec9cca58b1838c5d
2018-08-22 02:02:56 +09:00
Noemi Erli c7ab615992 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-22 19:32:56 +03:00
Philipp Hancke 3a00b39e7b Bug 1481851 - Add kind to RTCRtpStreamStats as alias to mediaType. r=ng,smaug
spec change in https://github.com/w3c/webrtc-stats/issues/301
2018-08-08 17:30:40 +02:00
Jean-Yves Avenard 70040ff272 Bug 1245400 - P3. Report number of frames dropped by compositor back to VideoSink. r=nical
We report the number of frames dropped by the compositor because they were too late through:
ImageComposite -> ImageHost -> CompositableTransactionParent -> ImageBridgeParent -> IPDL -> ImageBridgeChild -> ImageContainerListener -> ImageContainer -> VideoSink

Differential Revision: https://phabricator.services.mozilla.com/D2177
2018-08-22 17:26:36 +02:00
Jeff Walden cce0bfcd74 Bug 1484420 - Move locale-related functions into js/public/LocaleSensitive.h that isn't #include'd in jsapi.h. r=anba
--HG--
extra : rebase_source : 96d10bf0985da922f1992ac13f39cb4c2a944137
2018-08-20 17:11:32 -05:00
Ehsan Akhgari a07f6c3866 Bug 1484848 - Remove the XPCOM component registrations for window and child window; r=mstange 2018-08-21 16:20:28 -04:00
Andreea Pavel d801b3a01e Backed out 2 changesets (bug 1484420) for hazard failures on a CLOSED TREE
Backed out changeset d910e3c8372a (bug 1484420)
Backed out changeset d79cdb73c55f (bug 1484420)
2018-08-21 23:19:27 +03:00
Jeff Walden 8acccdc0b8 Bug 1484420 - Move locale-related functions into js/public/LocaleSensitive.h that isn't #include'd in jsapi.h. r=anba
--HG--
extra : rebase_source : 0c594e4a64373f0432194898ab18f94722c3c54a
2018-08-20 17:11:32 -05:00
Karl Tomlinson 8f279eaba8 Bug 1484046 reset variables for main thread buffer dropping logic on the same thread r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D3580

--HG--
extra : moz-landing-system : lando
2018-08-17 12:24:51 +00:00
Csoregi Natalia 953b0fcb6d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-18 12:50:21 +03:00
Csoregi Natalia 3e61ab4489 Merge inbound to mozilla-central. a=merge 2018-08-18 12:46:20 +03:00
Kris Maglione 7f10bb1ced Bug 1484363: Treat FrameMessageManagers as chrome event targets. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3663

--HG--
extra : rebase_source : aad2e4c00e6635658c736cf9400f2fb3ce5809ac
2018-08-17 15:11:11 -07:00
Brad Werth bac3e2671c Bug 1482968 Part 2: Add a test of modifier key clicks and drags on input elements. r=smaug!
Depends on D3450

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

--HG--
extra : moz-landing-system : lando
2018-08-17 18:59:36 +00:00
Brad Werth 50cab3e9c8 Bug 1482968 Part 1: Relax input event modifier filtering to allow most modifier keys to be pressed during mouse and key events. r=smaug!
Differential Revision: https://phabricator.services.mozilla.com/D3450

--HG--
extra : moz-landing-system : lando
2018-08-17 18:59:13 +00:00
Daniel Varga 3ee92b7a2f Merge mozilla-central to autoland 2018-08-18 01:04:09 +03:00
Daniel Varga 707a0b3f74 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-18 00:53:04 +03:00
Emilio Cobos Álvarez 66b986e252 Bug 1483882 - Teach IDTracker about Shadow DOM. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3533
2018-08-17 22:01:52 +02:00
Narcis Beleuzu b001ac17eb Backed out changeset 9c08d6d5d6f2 (bug 1483882) for reftest failures on svg/fragid-shadow. CLOSED TREE 2018-08-17 21:27:14 +03:00
Henri Sivonen d3a158ae38 Bug 1483764 - Fix EOF behavior when decoding responseText lazily. r=smaug
* Drop the decoder when it finishes regardless of who called it.
 * Match criteria for having mDecoder process EOF from OnStopRequest to
   the criteria used for eager decoding in StreamReaderFunc.
 * Process EOF when decoding lazily.
 * Get rid of the useless mResponseCharset field.

MozReview-Commit-ID: 7oJwyKQYP8K

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

--HG--
extra : moz-landing-system : lando
2018-08-17 17:04:22 +00:00
Brian Birtles c23be2ef0f Bug 1467344 - Move tests from dom/animations/tests/css-transitions to WPT; r=hiro
--HG--
rename : dom/animation/test/css-transitions/test_animation-computed-timing.html => testing/web-platform/tests/css/css-transitions/AnimationEffect-getComputedTiming.tentative.html
rename : dom/animation/test/css-transitions/test_pseudoElement-get-animations.html => testing/web-platform/tests/css/css-transitions/CSSPseudoElement-getAnimations.tentative.html
rename : dom/animation/test/css-transitions/test_animation-cancel.html => testing/web-platform/tests/css/css-transitions/CSSTransition-canceling.tentative.html
rename : dom/animation/test/css-transitions/test_animation-currenttime.html => testing/web-platform/tests/css/css-transitions/CSSTransition-currentTime.tentative.html
rename : dom/animation/test/css-transitions/test_setting-effect.html => testing/web-platform/tests/css/css-transitions/CSSTransition-effect.tentative.html
rename : dom/animation/test/css-transitions/test_animation-finished.html => testing/web-platform/tests/css/css-transitions/CSSTransition-finished.tentative.html
rename : dom/animation/test/css-transitions/test_animation-ready.html => testing/web-platform/tests/css/css-transitions/CSSTransition-ready.tentative.html
rename : dom/animation/test/css-transitions/test_animation-starttime.html => testing/web-platform/tests/css/css-transitions/CSSTransition-startTime.tentative.html
rename : dom/animation/test/css-transitions/test_csstransition-transitionproperty.html => testing/web-platform/tests/css/css-transitions/CSSTransition-transitionProperty.tentative.html
rename : dom/animation/test/css-transitions/test_document-get-animations.html => testing/web-platform/tests/css/css-transitions/Document-getAnimations.tentative.html
rename : dom/animation/test/css-transitions/test_element-get-animations.html => testing/web-platform/tests/css/css-transitions/Element-getAnimations.tentative.html
rename : dom/animation/test/css-transitions/test_keyframeeffect-getkeyframes.html => testing/web-platform/tests/css/css-transitions/KeyframeEffect-getKeyframes.tentative.html
rename : dom/animation/test/css-transitions/test_effect-target.html => testing/web-platform/tests/css/css-transitions/KeyframeEffect-target.tentative.html
rename : dom/animation/test/css-transitions/test_event-dispatch.html => testing/web-platform/tests/css/css-transitions/event-dispatch.tentative.html
extra : rebase_source : f09d4ff00f5be59ec5f90b211eebb074bdc17781
2018-08-16 14:41:04 +09:00
Brian Birtles 8ad2e56a19 Bug 1467344 - Drop use of flushComputedStyle in css-transitions tests; r=hiro
flushComputedStyle is as follows:

  var cs = getComputedStyle(elem);
  cs.marginLeft;

That _probably_ flushes style in most engines, but it's possible some engine in
the future will optimize things in a way that it can flush marginLeft without
flushing, say, backgroundColor. Before moving these tests to wpt, it would be
better to explicitly flush the property (or at least one of the properties) we
are transitioning.

This patch also updates the "Setting zero combined duration" test from
test_animation-cancel.html since, in making this change, I realized the test was
wrong.

Specifically, it was testing that when we set a combined duration of zero that
a transition is canceled. However, nothing in the spec requires this. The spec
only requires a non-zero combined duration to _start_ a transition and only
cancels an existing transition if the combined duration becomes _zero_ if the
"the end value of the running transition is not equal to the value of the
property in the after-change style".

This test passed, however, because it changed the transition property to
margin-top, hence it was actually testing the same condition as the previous
test.

--HG--
extra : rebase_source : ab1890c3125cb0a136869cd665efd2aa358304f0
2018-08-16 14:41:04 +09:00
Brian Birtles 39f115e905 Bug 1467344 - Update tests in test_setting-effect.html; r=hiro
This patch splits the first test into four separate tests since it really seems
to be testing four different things.

Likewise, the later patch for replacing the effect is split into two parts:

- One to test the playState behavior
- One to test the value reported by transitionProperty

The test, "After setting a transition's effect to null, transitionend is still
dispatched", is dropped since it is covered by the last test in
test_event-dispatch.html.

--HG--
extra : rebase_source : dae7ade8a7217e7916930278050b1c9fae847553
2018-08-16 14:41:03 +09:00
Brian Birtles 7b8fddcb1b Bug 1467344 - Update tests in test_keyframeeffect-getkeyframes.html; r=hiro
This patch merely tidies up some whitespace and uses of quotes / template
strings. There are no substantive changes.

--HG--
extra : rebase_source : 09383565b47c2a6173e1839756058e2b20dfff16
2018-08-16 14:41:03 +09:00
Brian Birtles e72376bfc3 Bug 1467344 - Update tests in test_animation-element-get-animations.html; r=hiro
This mostly just tidies up these tests to give them sensible titles.

The only test with major substantive changes is the first test. This test tests
three things:

1) That getAnimations() returns one transition per transitioning property
2) That getAnimations() returns transitions in the order they were generated
3) That CSS transitions have their start time set based on when they were
   generated.

(2) is covered later in this file by the test: 'getAnimations sorts
    transitions by when they were generated'
(3) is really a test for startTime, if anything, not getAnimations().
    I'm not sure how necessary it is, but I've added it to
    test_animation-starttime.html for now.

As a result, this patch updates this first test to only cover (1).

--HG--
extra : rebase_source : 992861421e83e8fc391f865888428de22ed16914
2018-08-16 14:41:03 +09:00
Brian Birtles 7c74982678 Bug 1467344 - Tidy up test in test_csstransition-transitionproperty.html; r=hiro
This is mostly whitespace tidy-ups. The only substantive change is the fix to
the test description which previously seemed to be missing some words.

--HG--
extra : rebase_source : 9eb84f5a845ece8fe60d5322de6d5f8a6580c370
2018-08-16 14:41:03 +09:00
Brian Birtles 08d47db33c Bug 1467344 - Update tests in test_animation-starttime.html; r=hiro
Apart from obvious tidy-ups the substantive changes to tests in this file are as
follows:

* Skipping forward through animation
  -> This is really testing two things:
     (a) That you can seek a transition using the start time.
     (b) That seeking a transition using the start time triggers
         dispatching events.

     This patch splits the above into two separate tests.

* Skipping backwards through animation,
  -> All these tests are really just exercising event dispatch which is
     already covered by test_event-dispatch.html.

     As a result this patch drops these tests.

* Setting startTime to null
  -> Covered by 'Setting an unresolved start time sets the hold time'
     in wpt/web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html

* Animation.startTime after pausing
  -> Covered by 'Pausing clears the start time'
     in wpt/web-animations/timing-model/animations/pausing-an-animation.html

--HG--
extra : rebase_source : ed598e907085d1cb06ef2142d6471eec4a34300d
2018-08-16 14:41:03 +09:00
Brian Birtles 92f4d59c41 Bug 1467344 - Update tests in test_animation-ready.html; r=hiro
The test: 'A new ready promise is created each time play() is called the
animation property', is covered in:

  web-animations/interfaces/Animation/ready.html

by the 'A new ready promise is created when play()/pause() is called' test.
As a result, this patch removes that test.

--HG--
extra : rebase_source : 61059b90fec505784b9df67c9b8a2962ca45204b
2018-08-16 14:41:03 +09:00
Brian Birtles f42870d113 Bug 1467344 - Drop test_animation-pausing.html; r=hiro
This seems to be adequately covered by:

  web-animations/timing-model/animations/pausing-an-animation.html
  (specifically the last test: 'The animation's current time remains fixed
  after pausing')

  web-animations/timing-model/animation-effects/simple-iteration-progress.html
  (which checks that the iteration progress is correctly calculated from the
  current time)

--HG--
extra : rebase_source : 58fc61afb9ae638568f17950723bdba0c758c6a5
2018-08-16 14:41:03 +09:00
Brian Birtles fd734f45b8 Bug 1467344 - Update tests in test_animation-finished.html; r=hiro
For the first test, we really want to check that it is possible to restart
transitions (since they are otherwise disassociated once they finish) hence this
patch updates the test to the actual output in style rather than timing.

The second test is covered in

  web-animations/timing-model/animations/reversing-an-animation.html

by the 'Playing a finished and reversed animation seeks to end' test so this
patch removes it from this file.

--HG--
extra : rebase_source : 415b8c9ca314085e64ffc715bf72046db264cf52
2018-08-16 14:41:03 +09:00
Brian Birtles ce2e73ce15 Bug 1467344 - Update tests in test_animation-currenttime.html; r=hiro
This patch basically completely rewrites this file to make it simpler and remove
unnecessary tests.

In particular:

* It sets the duration and delay to 100s to match what we use in most tests
* All the helper methods at the start are inlined into the relevant tests
  because doing so makes the tests much easier to read and debug.
* The first two tests are combined and extended
  - Testing the initial current time is zero is not generally useful but it is
    when we're testing setting it
  - What the second test really wants to test is that the style updates (i.e.
    you really can seek a transition, not just that the currentTime value
    updates)
  - The trick where we set the start time just to get out of the pending state
    seems unnecessary, we may as well just wait on ready. In fact, we don't
    _need_ to do that, but this test is about checking you can seek a transition
    in motion.
* In the fourth test, 'Skipping backwards through transition', we don't check
  the event is dispatched since that is covered in test_event-dispatch.html
  in the 'Active -> Before' test.
* The final test, 'Animation.currentTime after pausing', is covered by
  web-animations/timing-model/animations/pausing-an-animation.html

--HG--
extra : rebase_source : 113af8f3e4b4f2ffe90cb9bb87be3c2e72a82289
2018-08-16 14:41:03 +09:00
Brian Birtles 01f72be8ec Bug 1467344 - Fix some minor formatting in test_animation-computed-timing.html; r=hiro
--HG--
extra : rebase_source : bc27d838e5e1f905852fe847681954e02c2c0624
2018-08-16 14:41:02 +09:00
Brian Birtles 7aa56d6148 Bug 1467344 - Drop some unnecessary <body> elements from test files; r=hiro
We're a bit inconsistent about this, but generally we try to keep this files as
minimal as possible.

There is still a lot of other cruft in the starttime and currenttime test files
but we will remove that when we tidy up those files in later patches in this
series.

--HG--
extra : rebase_source : 93ef290315b4650650de960551ff07572ff7656e
2018-08-16 14:41:02 +09:00
Brian Birtles e251f1ce8d Bug 1467344 - Update the titles of each test file; r=hiro
--HG--
extra : rebase_source : 4df35b9464ebd90b05303fb908df92c4ad43e024
2018-08-16 14:41:02 +09:00
Brian Birtles 7817c2fe89 Bug 1467344 - Fix the spelling of canceled/canceling in dom/animation/test/css-transitions/; r=hiro
--HG--
extra : rebase_source : 486ed16cf22a6104ec15be455258eab2f902865b
2018-08-16 14:41:02 +09:00
Brian Birtles e53dbb4a04 Bug 1467344 - Replace var with const/let in dom/animation/test/css-transitions/; r=hiro
--HG--
extra : rebase_source : d98025fe06bff9c486082cf323b99417ae42e6a7
2018-08-16 14:41:02 +09:00
Brian Birtles 32f3f5b4fe Bug 1467344 - Use async/await in dom/animation/test/css-transitions/; r=hiro
As part of this change, the "Restart transition after cancelling transition
immediately" test in test_event-dispatch.html needed significant changes.
The reason is that this test was calling:

  watcher.wait_for([ 'transitioncancel',
                     'transitionrun',
                     'transitionstart' ]);

However, it was not waiting for the result of that call and hence was not
actually checking if the events were being dispatched. And, they are not.

There are two problems. Firstly, this test cancels the transition by setting
display:none. However, transitions don't run on display:none elements so
attempting to restart the transition will not generate transition events.
This might be a bug, but it is not a recent regression in any case (I tested
back to Firefox 54).

However, this test does not require using display:none to cancel. There are
_many_ tests that check that display:none generates a transitioncancel event.
This test only needs to make the transition idle. As a result, this patch makes
that test call transition.cancel() instead.

However, even with that change this test will not pass because it sets
a transition-delay of 100s (presumably so that it does not need to check for
a transitionstart event). As a result this test should not wait on _both_
transitionrun and transitionstart but just transitionrun.

--HG--
extra : rebase_source : a0af0928fd5668b23c92bd8ca142d4b8e99f5429
2018-08-16 14:41:02 +09:00
Brian Birtles 58054bc030 Bug 1467344 - Use arrow functions in dom/animation/test/css-transitions/; r=hiro
This patch also drops the checkStateOnSettingCurrentTimeToZero function since it
is no longer used.

--HG--
extra : rebase_source : bd4fdb9368d55b120c839330dbd90a0a89464370
2018-08-16 14:41:01 +09:00
Liang-Heng Chen 411a3a427b Bug 1481252 - Part 0: add tracker statistics fields to document; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3023

--HG--
extra : moz-landing-system : lando
2018-08-17 17:04:44 +00:00
Brian Grinstead 8e29f09232 Bug 1478999 - Don't check for -moz-binding on dropmarker to avoid getting computed style in GetBindingURL;r=emilio
This is slow to do when the element isn't visible, and we know it
won't have a XBL binding anyway, since it's a Custom Element.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 16:41:59 +00:00
Emilio Cobos Álvarez aabc4bed97 Bug 1483882 - Teach IDTracker about Shadow DOM. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3533
2018-08-17 19:14:47 +02:00
John Lin a47eb60caa Bug 1481139 - fix GMP process IPC channel error on Android. r=jld,njn
Bug 1481139 - p1: handle invalid file descriptors.
Bug 1481139 - p2: add dummy fds for GMP process.

Two file descriptors were added in bug 1438678 and 1471025 for content/child
process but not GMP process, and it breaks the IPC channel on Android.

Add dummy values to make it work for now before bug 1440207 clean up the mess.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 00:06:20 +00:00
Noemi Erli 5788eb8190 Backed out 2 changesets (bug 1483882) for reftest failures in uilds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/fragid-shadow-3.html
Backed out changeset 4656d3bf8e9c (bug 1483882)
Backed out changeset 4105f56578d4 (bug 1483882)
2018-08-17 18:13:14 +03:00
Emilio Cobos Álvarez 9d77ba352b Bug 1483882 - Teach IDTracker about Shadow DOM. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3533

--HG--
extra : moz-landing-system : lando
2018-08-17 11:35:15 +00:00
Noemi Erli c6f79a6d0e Backed out 1 changesets (bug 1483882) for reftest failures in builds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/fragid-shadow-3.html on a CLOSED TREE
Backed out changeset d25d4da4aad2 (bug 1483882)
2018-08-17 13:37:55 +03:00
Margareta Eliza Balazs 0b2fdd0c87 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-17 12:50:13 +03:00
Margareta Eliza Balazs 6c198262de Merge inbound to mozilla-central. a=merge 2018-08-17 12:46:14 +03:00
Tom Tung 5b3f5f96b1 Bug 1482812: Patch for turning on the origin parser check on both beta and release. r=janv
This patch, basically, turns the check. To avoid checking the same direcotries
multiple time, it creates a member hashtable |mValidOrigins| in QuotaManager and
use it in EnsureOriginDirectory(). Since it needs to use the member hashtable,
this patch also moves EnsureOriginDirectory() to become a QuotaManager member
function.

--HG--
extra : rebase_source : 170f749b07ca955e1dc41a627d339709381ffcad
2018-08-15 16:59:26 +02:00
Tom Tung e66bb71c21 Bug 1409641: Get the result only when it's defined in IDBtranscation. r=janv
--HG--
extra : rebase_source : 005404b167d8399263acb52021cce9222dfb7536
2018-08-16 16:09:40 +02:00
Olli Pettay 9fb8ccf44c Bug 1471947, bug 1471948 - Enable Shadow DOM and Custom Elements in release builds, r=ehsan, emilio 2018-08-17 03:39:02 +03:00
Emilio Cobos Álvarez b57fa69bb3 Bug 1483882 - Teach IDTracker about Shadow DOM. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3533

--HG--
extra : moz-landing-system : lando
2018-08-17 09:19:47 +00:00
Olli Pettay 9ea97a4cf5 Bug 1484040, unbind shadow DOM content when uninstalling shadow DOM based XML Pretty Printer, r=timdream 2018-08-17 02:49:16 +03:00
Tiberius Oros 482b5ce92a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-17 00:38:55 +03:00