Commit Graph

70947 Commits

Author SHA1 Message Date
Gurzau Raul
e0cb05876d Merge inbound to mozilla-central. a=merge 2018-01-15 11:57:47 +02:00
Jessica Jong
bf1d5c0073 Bug 1429656 - Implement ShadowRoot.activeElement. r=smaug 2018-01-15 14:42:47 +08:00
Jessica Jong
20d2281c59 Bug 1429982 - cloneNode on ShadowRoot interface should throw NotSupportedError. r=smaug
The spec changed in order to align with the error thrown by importNode.

--HG--
rename : dom/tests/mochitest/webcomponents/test_bug1176757.html => dom/tests/mochitest/webcomponents/test_shadowroot_clonenode.html
2018-01-15 14:42:43 +08:00
Stone Shih
76cbc214bf Bug 1414336 - Add a test case to make sure pointercancel isn't fired when content prevents default on touchstart. r=kats.
MozReview-Commit-ID: 93FSsD3bXvA
2018-01-13 07:33:21 +08:00
Alastor Wu
cb52b8db63 Bug 1428722 - part2 : move all user-activation implementation details to nsDocument. r=smaug
In order to write tests, I would like to create an method that allows chorome js can directly set the user-activation flag.

Therefore, I need to move all these details into nsDocument, then we could easily simulate the user activation.

MozReview-Commit-ID: 5JrCoQc0vF7

--HG--
extra : rebase_source : 256ff2993ef754dc51409e7e444b868a3302bd65
2018-01-11 17:26:30 +08:00
Alastor Wu
acecd71925 Bug 1428722 - part1 : always activate the top level frame. r=smaug
For top level frame, it should also be activated when user activate its child frame.

eg. A (youtube.com) -> B (ad.com), when user activate B frame, the A frame would also be activated.

MozReview-Commit-ID: BP7eGKiqYJe

--HG--
extra : rebase_source : 8a07e2a46d70957989168a9ee677e5241fee61fe
2018-01-08 16:44:28 +08:00
Munro Mengjue Chiang
6da9bf9b27 Bug 1420585 - refine logs. r=jib
MozReview-Commit-ID: KJlFTQALAb4

--HG--
extra : rebase_source : c33ea991c82090741c28d4b8dba092c5e1d7b51c
2018-01-05 15:51:48 +08:00
Chris Peterson
37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Coroiu Cristina
c90daa0e30 Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2018-01-13 12:02:52 +02:00
Coroiu Cristina
c6a942e1bf Merge inbound to mozilla-central r=merge a=merge 2018-01-13 11:55:23 +02:00
Csoregi Natalia
739e4b302b Backed out changeset 19af171d7718 (bug 1401678) for failing nsSoundProxy.cpp:63 on a CLOSED TREE 2018-01-13 01:39:10 +02:00
Andrew McCreight
4a42e66fbe Bug 1430183 - ClassTypedef from CodeGen.py is unused. r=qdot
This was used in CGPrototypeTraitsClass, but that usage was removed at
some point.

MozReview-Commit-ID: G3bGMma5XTw

--HG--
extra : rebase_source : 89ff19e10bba68a8e3e3392d3695448dfb245d7c
2018-01-12 10:43:39 -08:00
Xidorn Quan
7955befd91 Bug 1429959 - Make nsBindingManager::EnumerateBoundContentBindings yield each binding only once. r=emilio
MozReview-Commit-ID: LxiF2RngJmq

--HG--
extra : rebase_source : cb75c5c20445fe6e00a0a161465bdfb7fac881be
2018-01-12 11:59:51 +11:00
Byron Campen [:bwc]
c3f235552f Bug 1425621 - Part 6: Update mochitests to match new behavior. r=jib
MozReview-Commit-ID: GIloM9yzyEB

--HG--
extra : rebase_source : b4201568aae477379a3d9538e57a1733afc3fc56
extra : intermediate-source : 38be599cd677ee40c858b9932cecd91c9b76d054
extra : source : adb2834d52f3f678c1204cb4a678bd5cb2327ccd
2017-12-21 11:26:28 -06:00
Byron Campen [:bwc]
ae7b275a48 Bug 1425621 - Part 5: Handle transceiver removal caused by rollback after track events. r=drno,jib,smaug
MozReview-Commit-ID: 5Z5ntG5Bvgc

--HG--
extra : rebase_source : ae8a2438dfdc1dd968768fba86a8a6752934bd82
extra : intermediate-source : 347e79f12f838355b45f3eebbc33322bf866d75f
extra : source : 8a127885a8d0265994c5f9d4ef9bd384279f6858
2017-12-21 10:22:37 -06:00
Byron Campen [:bwc]
802d9b4a0d Bug 1425621 - Part 4: Move track event logic to JS. r=drno,jib,smaug
MozReview-Commit-ID: 8kUbYQnD3Oc

--HG--
extra : rebase_source : a1f0685c8156c75438cf57e0d55117b8a4025bc8
extra : intermediate-source : 9b756cb6bccaca473925679725688a012d4086f6
extra : source : b3f9155a0ec77f819a0a02ce798d0d0a84da0524
2017-12-20 17:00:40 -06:00
Byron Campen [:bwc]
5331725296 Bug 1425621 - Part 3: Implementation for MediaStream.onremovetrack. r=pehrsons
MozReview-Commit-ID: 70Hsr4G4cp6

--HG--
extra : rebase_source : fd25ff1b39b9923f85b43dcc9d55c92d39baec65
extra : intermediate-source : f6c7d3fda2f3fcc9ecb8be6daa2f665bafa16a9c
extra : source : 574c407e80072fd2ad7827e4e22d0202bddc3cd1
2017-12-20 12:36:19 -06:00
Byron Campen [:bwc]
d81f3f59fe Bug 1425621 - Part 2: webidl for MediaStream.onremovetrack. r=smaug
MozReview-Commit-ID: BqBR3uFlrT2

--HG--
extra : rebase_source : 95cd2848eddac95d49323a37063934e11a9d4d6a
extra : intermediate-source : 5458f04358cb7fdd4974c39347b22a1ed432555d
extra : source : b5aca40119eafb23a6661add2d7a2cdfbbde793d
2017-12-20 12:35:46 -06:00
Byron Campen [:bwc]
5b3880b10d Bug 1425621 - Part 1: Test-case for removeTrack and MediaStream.onremovetrack. r=jib
Also, expects onmute to happen before SRD resolves, even for offers.

MozReview-Commit-ID: 2ibQKDfyHYH

--HG--
extra : rebase_source : c47533d173ae13b851e585158811118047968a19
extra : intermediate-source : ab30f91e677aece43bd5049ac0e3725a0793328e
extra : source : bee557f078c402c7893c19ca1dc3bc2164261e65
2017-12-18 14:37:43 -06:00
Nika Layzell
261933c435 Bug 1383876 - Part 5: Clean up in moz.build files, r=freesamael
MozReview-Commit-ID: 1HKNAeI7hSV
2018-01-12 17:53:00 -05:00
Nika Layzell
319310193a Bug 1383876 - Part 4: Remove even more tests which no longer work, r=freesamael, r=smaug
MozReview-Commit-ID: 5j8fNeKuHAM
2018-01-12 17:52:58 -05:00
Nika Layzell
e0822be7b9 Bug 1383876 - Part 2: Remove GroupedSHistory and Prerendering logic from JS code, r=freesamael
MozReview-Commit-ID: KwvOcgQKheK
2018-01-12 17:52:54 -05:00
Nika Layzell
a0d1f16079 Bug 1383876 - Part 1: Remove GroupedSHistory and Prerendering logic from C++ code, r=freesamael, r=smaug
MozReview-Commit-ID: 2aHA6NcQPGk
2018-01-12 17:52:52 -05:00
Csoregi Natalia
b64306c51a Merge mozilla-central to inbound. r=merge a=merge CLOSED TREE 2018-01-13 00:04:06 +02:00
Csoregi Natalia
7476b71e00 Merge inbound to mozilla-central r=merge a=merge 2018-01-12 23:59:06 +02:00
Ben Kelly
020e20e535 Bug 1425965 P7 Fix dom/push/test/test_error_reporting.html to expect new console reporting mechanism. r=asuth 2018-01-12 12:16:06 -05:00
Ben Kelly
cd445b9897 Bug 1425965 P6 Change test_fetch_integrity.html not to expect exact window ID values in console messages. r=asuth 2018-01-12 12:16:06 -05:00
Ben Kelly
ca1c57878e Bug 1425965 P4 Remove mControlledDocument, mRegisteringDocuments, and mNavigationIntercepts from ServiceWorkerManager. r=asuth 2018-01-12 12:16:05 -05:00
Ben Kelly
18648deb01 Bug 1425965 P3 Make ServiceWorkerManager::FlushReportsToAllClients() use FlushReportsToConsoleForServiceWorkerScope(). r=asuth 2018-01-12 12:16:04 -05:00
Ben Kelly
88cfd7461c Bug 1425965 P2 Add nsIConsoleReportCollector::FlushReportsToConsoleForServiceWorkerScope(). r=baku 2018-01-12 12:16:04 -05:00
Ben Kelly
eb42607c4e Bug 1425965 P1 Make ServiceWorkerManager::ReportToAllClients use ConsoleUtils::ReportForServiceWorkerScope. r=asuth 2018-01-12 12:16:03 -05:00
Ryan VanderMeulen
636edb9f6d Merge m-c to inbound. a=merge 2018-01-12 11:35:56 -05:00
Kearwood "Kip" Gilbert
77e75469f3 Bug 1426500 - Part 2: Update test_interfaces mochitest to expect WebVR interfaces to be disabled on release builds for macOS. r=smaug, a=me 2018-01-11 15:13:58 -08:00
Narcis Beleuzu
4de0807d09 Merge inbound to mozilla-central r=merge a=merge 2018-01-12 13:25:57 +02:00
Margareta Eliza Balazs
82e1a579e9 Backed out changeset add48ffcf303 (bug 1429754) for gl failing in dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html on a CLOSED TREE 2018-01-12 07:10:00 +02:00
Boris Zbarsky
02eaa145e7 Bug 1429531. Add MOZ_CAN_RUN_SCRIPT annotations to SVG methods that can call GetPrimaryFrame. r=mystor
MozReview-Commit-ID: KoXEBUa2OjR
2018-01-11 23:01:20 -05:00
Jeff Gilbert
c606284204 Bug 1429754 - Trust the driver about floating point support. - r=daoshengmu
Remove the probe, and remove the cached value check.
Also remove dead code which relies on this sometimes-clamping glGet query.

MozReview-Commit-ID: JA1VgH8fLRB
2018-01-11 18:53:23 -08:00
Ben Kelly
eecacb4a97 Bug 1429486 Expose GetClientInfo() and GetController() on nsIGlobalObject. r=asuth 2018-01-11 20:46:08 -05:00
Noemi Erli
53c1edf299 Merge mozilla-central to inbound. r=merge a=merge CLOSED TREE 2018-01-12 00:05:46 +02:00
Noemi Erli
adbfbaab81 Merge inbound to mozilla-central r=merge a=merge 2018-01-11 23:54:07 +02:00
Andreea Pavel
800e10df0b Backed out 11 changesets (bug 1382251) for failing mochitest at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/RefPtr.h:318 r=backout a=backout on a CLOSED TREE
Backed out changeset cc3ec37e0dbe (bug 1382251)
Backed out changeset e9cce5779674 (bug 1382251)
Backed out changeset 5bf011fc507d (bug 1382251)
Backed out changeset 77ccb100a258 (bug 1382251)
Backed out changeset e63fa691fa34 (bug 1382251)
Backed out changeset 7936c75851a2 (bug 1382251)
Backed out changeset e6056433a119 (bug 1382251)
Backed out changeset e8262c37dfac (bug 1382251)
Backed out changeset 5dc95b140fd7 (bug 1382251)
Backed out changeset a1ca7804d848 (bug 1382251)
Backed out changeset 56a6f6bcc5c5 (bug 1382251)
2018-01-11 17:20:36 +02:00
Brian Birtles
5a753e5e80 Bug 1429671 - Make composite member of Keyframe dictionary objects accept null values; r=bz
This patch reflects the following change to the Web Animations spec:

  abf76745b5

MozReview-Commit-ID: A2GD1igUf5f

--HG--
extra : rebase_source : 8129f6386b144adebc3bf0320ca7d6bfbba7a2e9
2018-01-11 16:20:49 +09:00
Andrew Sutherland
1fe2cfad13 Bug 1416879 - Part 0d: Move browser_multie10s_update.js into its own directory. r=bkelly
This test is unfortunately a victim of a multi-e10s unregister() race
from browser_force_refresh and given the imminent multi-e10s cleanup
that's going to happen, the more complicated alternatives aren't worth
the effort versus just moving this test to its own directory.

..and now it's disabled too.  Bug 1429794 tracks re-enabling.

--HG--
rename : dom/workers/test/serviceworkers/browser_multie10s_update.js => dom/workers/test/serviceworkers/isolated/multi-e10s-update/browser_multie10s_update.js
rename : dom/workers/test/serviceworkers/file_multie10s_update.html => dom/workers/test/serviceworkers/isolated/multi-e10s-update/file_multie10s_update.html
rename : dom/workers/test/serviceworkers/server_multie10s_update.sjs => dom/workers/test/serviceworkers/isolated/multi-e10s-update/server_multie10s_update.sjs
extra : rebase_source : 2f93eda70120fff7f5b8ebac3db1f46c3aaf3070
extra : source : 3f059dbbf8ba6d42984a4a8c08836aec3ae37f47
2018-01-11 10:31:17 -05:00
Andrew Sutherland
095e3fbc68 Bug 1416879 - Part 0c: browser_multie10s_update.js should not use setTimeout. r=bkelly
This test used a fixed setTimeout of 3secs for serving the SW.  This
lower-bounded the test runtime at 6 seconds, plus it was not safe in
the event of a slow test runner.

This set of changes, although a little ugly, improves the logic so that
the SW's transmission is driven by a separate "release" fetch that is
only triggered when both updates have been issued and the first update
failure has been reported.  This ensures we are observing the desired
situation.  There's also a sanity check on the number of times the SW
script is fetched.

--HG--
extra : rebase_source : 895af5a50578ca69ce9437b67fa0590c1f046682
extra : source : e708703ab4459ccba7a5242a6a50df4a47b59175
2018-01-09 17:31:01 -05:00
Andrew Sutherland
d709a493f2 Bug 1416879 - Part 0b: browser_multie10s_update.js needs to protect its invariants, clean-up after itself. r=bkelly
--HG--
extra : rebase_source : 97f6be59ee1e48ec537f97802caea2ef0f3c2763
extra : source : d8ac81aeacda111c1159993f1599b32d6fb46ce3
2018-01-09 16:16:24 -05:00
Andrew Sutherland
fffb233779 Bug 1416879 - Part 0a: Make browser_force_refresh.js clean up after itself. r=bkelly
--HG--
extra : rebase_source : 8c71c59161d5d3a3b9de486ab56b71f5c5a56887
extra : source : 83317df6c46b7a09d8f13b725bd955414307c03d
2018-01-10 12:38:25 -05:00
Andrew Osmond
7cc5611e47 Bug 1428946 - Part 1. Make comparing and mapping DataSourceSurfaceWrapper objects work consistently. r=bas 2018-01-11 08:48:46 -05:00
Andrew Sutherland
a0ec53afae Bug 1416879 - Part 6: Test cancellation of diverted client-intercepted streams. r=bkelly
This adds a test where we have a ServiceWorker return 2 different types
of streams that Firefox recognizes as downloads which are handled by
diversion of the channel to the parent.  The diverted downloads are
then cancelled and we verify that cancellation actually results in the
underlying connections being closed and/or the ServiceWorker notified.

Our 2 types of streams are:
1. A pass-through stream that is incrementally delivered through use of
   an .sjs file that delivers data using setInterval.
2. A SW-authored ReadableStream (which is not enabled by default, so we
   set a pref.)

Determining when the .sjs's stream is canceled is accomplished by
opening a second "monitor" connection that only completes when the
streaming connection is closed.

In all cases we differentiate between cancelation and timeouts firing.

--HG--
extra : rebase_source : 255ea1b97d632363d7465d6d116a8c37dcca85c3
extra : source : 840a6e04bcea7d87e362adf14a37b7c17e20f043
2018-01-04 18:38:43 -05:00
Andrew Sutherland
8244fa6b69 Bug 1416879 - Part 5: FetchStreamReader needs to cancel its reader when it encounters write errors. r=baku, f=bkelly
Currently, FetchStreamReader never signals to the JS stream code that
the reader has been closed.  This means that when a ServiceWorker
passes a ReadableStream to respondWith and the HTTP Channel gets
canceled, the JS code will keep generating the stream without ever
realizing the data's not going anywhere.  It's necessary to cancel
the reader.  Or do something like that, this seems to work!

--HG--
extra : rebase_source : 88952a917c48b9fa7e421f640b7fb57b15cf7d4d
extra : source : 994dc643a2ab62f03fef780a58971b476a4b6f4a
2018-01-04 18:09:32 -05:00
Andrew Sutherland
f3a816271e Bug 1416879 - Part 4: FetchDriver needs to propagate write failures. r=baku
In the scenario where a ServiceWorker returns a pass-through fetch via
`evt.respondWith(fetch("underlying"))`, in order for the "underlying"
HTTP channel to be canceled when the outer HTTP channel is canceled,
FetchDriver's OnDataAvailable method needs to return an error when
the output pipe experiences an error.

Unfortunately, the contract for ReadSegments is effectively that it
returns NS_OK regardless of what the rv of the write handler returned,
so relying on the returned rv is insufficient.  And because various
Write*() methods will all fast-path to returning NS_OK if a count of 0
is passed, it's necessary to infer a closed/broken pipe by noticing
that we tried to write more than 0 bytes of data but 0 bytes were
written.  (This is safe because the pipe we write into was created
by FetchDriver::OnStartRequest which explicitly creates an infinite
pipe, so it's not possible for the write to fail due to lack of space
in the pipe.)

--HG--
extra : rebase_source : 0a1f9f7a4c244934ff255a07e78608c8ea6fef0e
extra : source : 8e4fd74e7f5e69df7363bdb560f79dde347ce082
2018-01-04 18:04:55 -05:00