Commit Graph

71094 Commits

Author SHA1 Message Date
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
Jon Coppeard
20b2d0162c Bug 1429535 - Split up ScriptLoader::ProcessScriptElement method r=baku 2018-01-11 12:05:26 +00:00
Andrea Marchesini
58646af781 Bug 1430061 - Signal Proxy, in fetch(), doesn't have to be nullified in order to avoid race conditions, r=bkelly 2018-01-12 15:51:34 +01:00
Andrea Marchesini
7e9322fba6 Bug 1425440 - Get rid of GetChildAt_Deprecated in selection, r=catalinb 2018-01-12 15:33:13 +01:00
Andrea Marchesini
43c8e4e21b Bug 1425440 - Get rid of GetChildAt_Deprecated in nsRange, r=catalinb 2018-01-12 15:33:13 +01:00
Brindusan Cristian
874238697d Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2018-01-12 13:34:20 +02:00
Jon Coppeard
1768b988e8 Bug 1429783 - Reset frozen state in nsIScriptElement::LoseParserInsertedness() r=smaug 2018-01-12 10:36:23 +00:00
Jon Coppeard
c7d4570648 Bug 1428515 - Check for dying JSObjects when accessing plugin wrapper table r=bz
The sNPObjWrappers table can contain entries for dead JSObjects that have not yet been finalised.  We need to take care not to trigger mJSObj's read barrier for such entries since that will attempt to expose the object to JS and cause this assertion.

The patch does this by calling unbarrieredGetPtr() which avoids the barrier.

Note converting a TenuredHeap to bool and testing equality against a pointer don't trigger the barrier.
2018-01-12 10:36:23 +00:00
Tom Ritter
3af00498bc Bug 1429668 Turn off the reduceTimerPrecision pref for one more test r=hiro
MozReview-Commit-ID: J7F502Oz3Uc

--HG--
extra : rebase_source : 6b9883e72fad25d985ba61a999a4bdd2468784b0
2018-01-10 23:06:04 -06:00
bechen@mozilla.com
de1cb40bf5 Bug 1423659 - Remove ftyp and HasMetadata(). r=alfredo
MozReview-Commit-ID: ChscPHrohHb

--HG--
extra : rebase_source : a2f71af48a01b3c1319dafdb3ec338ba52b7778d
2018-01-10 11:42:59 +08:00
Sylvestre Ledru
424664ff30 Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman
MozReview-Commit-ID: 3v8D600g8St

--HG--
extra : rebase_source : 34ea6f9868c1b322076c24daa75dc33e27b6704e
2018-01-10 08:52:04 +01:00
Sylvestre Ledru
4b189b7baf Bug 1278282 - Update of the tests to reflect the removal of the gtk2 r=lsalzman
MozReview-Commit-ID: Htgc44dCEjX

--HG--
extra : rebase_source : 55ce6a6a72c36cbfdbeef08fe58d11f2053dc35f
2018-01-10 08:55:38 +01:00
Sylvestre Ledru
eabcdd21b2 Bug 1278282 - Replace #if (MOZ_WIDGET_GTK == 3) by #ifdef MOZ_WIDGET_GTK r=lsalzman
MozReview-Commit-ID: Bo0m7n078oh

--HG--
extra : rebase_source : 1874ac3e0abca65b821b5d04a6610a5cbb63fe24
2018-01-09 11:51:07 +01:00
Sylvestre Ledru
f8b1d9ab46 Bug 1278282 - update of the moz.build files to remove gtk2 references r=lsalzman
MozReview-Commit-ID: FO1wEHzOkuN

--HG--
extra : rebase_source : ac7e61cf47d013de882048740c889735a0a7cad8
2018-01-10 10:04:59 +01:00
Ciure Andrei
23575f7023 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-11 12:06:29 +02:00
Ciure Andrei
f7400ad72e Merge inbound to mozilla-central r=merge a=merge 2018-01-11 11:54:56 +02:00
JW Wang
b69008df64 Bug 1429280 - the seeking target of exiting dormant should be adjusted by looping. r=chunmin
Otherwise we will seek to a position beyond the duration when exiting dormant
which will fail an assertion in OggDemuxer.

MozReview-Commit-ID: FPWKyd8APrj

--HG--
extra : rebase_source : 89b8cbcfbf9a63d428b9d2a513b2656fc241892f
extra : source : d6a0a81abc7781b6620777ab4cf44222942d78bd
2018-01-10 17:26:17 +08:00
Tom Ritter
2eeb5f801e Bug 1424341 Turn the pref off for existing tests that perform fine-grained timing comparisons r=mrbkap
MozReview-Commit-ID: 4ZyE4ebaCaB

--HG--
extra : rebase_source : 80a138ba722c64885a5f6811d862bdc76389a000
2018-01-10 14:46:34 -06:00
Cameron McCormack
3ef428b913 Bug 1427419 - Part 26: Move inIDOMUtils.scrollElementIntoView to InspectorUtils. r=bz
This is unused in mozilla-central but still used in comm-central.

MozReview-Commit-ID: HlJT7dthI41
2018-01-11 12:38:01 +08:00
Cameron McCormack
ce7231c196 Bug 1427419 - Part 25: Move inIDOMUtils.parseStyleSheet to InspectorUtils. r=bz
MozReview-Commit-ID: FQlNRP8ycY3
2018-01-11 12:38:01 +08:00
Cameron McCormack
afa1299635 Bug 1427419 - Part 24: Move pseudo-class lock methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: ItruGMmf5Ih
2018-01-11 12:38:01 +08:00
Cameron McCormack
3f17a89ba7 Bug 1427419 - Part 23: Move inIDOMUtils.getCSSPseudoElementNames to InspectorUtils. r=bz
MozReview-Commit-ID: A6FhXc2mJm1
2018-01-11 12:38:01 +08:00
Cameron McCormack
c4663ea0f0 Bug 1427419 - Part 22: Move inIDOMUtils.getUsedFontFaces to InspectorUtils. r=bz
This also changes the function to return a sequence (JS Array) instead of
an nsFontFaceList object, and converts nsFontFace/nsIDOMFontFace into a
Web IDL implemented object too.

MozReview-Commit-ID: 1iAW3DYe5kO

--HG--
rename : layout/inspector/nsFontFace.cpp => layout/inspector/InspectorFontFace.cpp
2018-01-11 12:38:01 +08:00
Cameron McCormack
25abd91980 Bug 1427419 - Part 21: Move content state methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: KfrUdNU4as3
2018-01-11 12:38:01 +08:00
Cameron McCormack
075f0e5256 Bug 1427419 - Part 20: Move inIDOMUtils.getBindingURLs to InspectorUtils. r=bz
This is unused in mozilla-central but still used by comm-central.

The only consumer of this API really just wants the URL strings, so
we return a sequence<DOMString> instead of an array of nsIURI objects.

MozReview-Commit-ID: ITcEe42shHw
2018-01-11 12:38:01 +08:00
Cameron McCormack
45c9e50a65 Bug 1427419 - Part 19: Move inIDOMUtils.getChildrenForNode to InspectorUtils. r=bz
MozReview-Commit-ID: 5AznAfpZIuN
2018-01-11 12:38:00 +08:00
Cameron McCormack
41ac7e60e0 Bug 1427419 - Part 18: Move inIDOMUtils.getParentForNode to InspectorUtils. r=bz
MozReview-Commit-ID: 5GxNmyVHf8u
2018-01-11 12:38:00 +08:00
Cameron McCormack
5a4d54c425 Bug 1427419 - Part 17: Move inIDOMUtils.isIgnorableWhitespace to InspectorUtils. r=bz
This is still being used by the old DOM Inspector in comm-central.

MozReview-Commit-ID: B8fJzjUUewj
2018-01-11 12:38:00 +08:00
Cameron McCormack
0c66b23322 Bug 1427419 - Part 16: Move inIDOMUtils.cssPropertySupportsType to InspectorUtils. r=bz
MozReview-Commit-ID: AfNA6g5lTec
2018-01-11 12:38:00 +08:00
Cameron McCormack
060b4a5e4f Bug 1427419 - Part 15: Move inIDOMUtils.cssPropertyIsShorthand to InspectorUtils. r=bz
MozReview-Commit-ID: LphGIXzOlDB
2018-01-11 12:38:00 +08:00
Cameron McCormack
2212f2845a Bug 1427419 - Part 14: Move inIDOMUtils.getSubpropertiesForCSSProperty to InspectorUtils. r=bz
MozReview-Commit-ID: 8Nyt0V2NUmq
2018-01-11 12:38:00 +08:00
Cameron McCormack
0ef012043a Bug 1427419 - Part 13: Move inIDOMUtils.isValidCSSColor to InspectorUtils. r=bz
MozReview-Commit-ID: DNRfmbDucdT
2018-01-11 12:38:00 +08:00
Cameron McCormack
664c1757c0 Bug 1427419 - Part 12: Move inIDOMUtils.colorToRGBA to InspectorUtils. r=bz
MozReview-Commit-ID: 9EAdNibvZ4
2018-01-11 12:38:00 +08:00
Cameron McCormack
2eef6d3612 Bug 1427419 - Part 11: Move inIDOMUtils.rgbToColorName to InspectorUtils. r=bz
MozReview-Commit-ID: LZcGUEO4Ois
2018-01-11 12:38:00 +08:00
Cameron McCormack
6e85270511 Bug 1427419 - Part 10: Remove unused nsIDOMUtils.colorNameToRGB. r=bz
MozReview-Commit-ID: 962UjCZqX6I
2018-01-11 12:38:00 +08:00
Cameron McCormack
f5ef2d0a72 Bug 1427419 - Part 9: Move inIDOMUtils.getCSSValuesForProperty to InspectorUtils. r=bz
MozReview-Commit-ID: D3jf42KI7kO
2018-01-11 12:38:00 +08:00
Cameron McCormack
1a8d3bfd54 Bug 1427419 - Part 8: Move inIDOMUtils.getCSSPropertyNames to InspectorUtils. r=bz
While we're at it, move to a more friendly API. EXCLUDE_SHORTHANDS is
currently unused so we drop that.

MozReview-Commit-ID: H64ou63We4a
2018-01-11 12:37:59 +08:00
Cameron McCormack
c81f633513 Bug 1427419 - Part 7: Move inIDOMUtils.isInheritedProperty to InspectorUtils. r=bz
MozReview-Commit-ID: AwILrjGiJ3L
2018-01-11 12:37:59 +08:00
Cameron McCormack
710da9d3e3 Bug 1427419 - Part 6: Move selector methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: 8FKRPeIijkC
2018-01-11 12:37:59 +08:00
Cameron McCormack
fc4a76fb7f Bug 1427419 - Part 5: Move nsIDOMUtils.getCSSLexer to InspectorUtils. r=bz
MozReview-Commit-ID: 4UGiS3I2V6B
2018-01-11 12:37:59 +08:00
Cameron McCormack
7371ec9f08 Bug 1427419 - Part 4: Move rule line number methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: HUxWcMPzrSq
2018-01-11 12:37:59 +08:00
Cameron McCormack
abddba8b81 Bug 1427419 - Part 3: Move inIDOMUtils.getCSSStyleRules to InspectorUtils. r=bz
MozReview-Commit-ID: 3pcxsYhguOk
2018-01-11 12:37:59 +08:00
Cameron McCormack
04c11b322d Bug 1427419 - Part 2: Move nsIDOMUtils.getAllStyleSheets to InspectorUtils. r=bz
MozReview-Commit-ID: J6lIx4uvMlS
2018-01-11 12:37:59 +08:00
Cameron McCormack
563e7a0e4a Bug 1427419 - Part 1: Add an InspectorUtils chrome-only IDL namespace. r=bz,tromey
Also add a way to access it from SpecialPowers for tests and from
importGlobalProperties for system JS scopes.

MozReview-Commit-ID: IewEs0Gf2M9
2018-01-11 12:37:59 +08:00
Kate McKinley
e97980a95e Bug 1424917 - Remove support for HSTS Priming. r=mayhemer, r=ckerschb
This patch removes support and tests for HSTS priming from the tree.
2018-01-10 11:07:00 -05:00
Kaku Kuo
9dbfc93c6f bug 1422239 - relax the resolution limitation of WMF H264 decoder; r=jya
https://msdn.microsoft.com/en-us/library/windows/desktop/dd797815(v=vs.85).aspx
Relax the resolution limitation from "width <= 4096 and height <= 2304" to "any width and height combination as long as the total pixel count is under 4096x2304".

MozReview-Commit-ID: 5wHiJfLaJkp

--HG--
extra : rebase_source : 11bf99d0eb3b50ea0199a7f65e0491e43318d29c
2018-01-08 16:37:40 +08:00
Tom Ritter
c4cbaaafe9 Bug 1424341 Add tests for dynamically tuning the timer precision r=bkelly,timhuang
MozReview-Commit-ID: IM52HhGY7y

--HG--
extra : rebase_source : a963e0dab3dd07858c050e501bc7106d90b37931
2018-01-09 15:10:59 -06:00
Tom Ritter
58c53866d8 Bug 1424341 Round the Performance Timing APIs when privacy.reduceTimerPrecision is set r=bkelly,timhuang
MozReview-Commit-ID: LrAmrIfKk39

--HG--
extra : rebase_source : e9ded5202406abd07465a0b4a9a6122c86a9c072
2018-01-10 15:51:23 -06:00
Tom Ritter
bc92067c8e Bug 1424341 Add privacy.reduceTimerPrecision and privacy.reduceTimerPrecision.microseconds prefs r=bkelly,timhuang
This pref does not override privacy.resistFingerprinting, but when it is set (and
privacy.resistFingerprinting is not) we will still adjust the precision of almost
all timers. The adjustment amount is the second pref, which is defaulted to
20us but now dynamically adjustable (in the scale of microseconds.)

This patch does _not_ address the performance API, which privacy.resistFingerprinting
disables.

We are landing this preffed on at the current value we clamp performance.now() at
which is 20us.

MozReview-Commit-ID: ESZlSvH9w1D

--HG--
extra : rebase_source : a8afead1bdba958c6c7b383b2216dacb3a1b135c
2018-01-09 14:58:34 -06:00
Edgar Chen
fd3cbab671 Bug 1417829 - Remove unresolved pseudoclass; r=heycam,smaug
MozReview-Commit-ID: JHfYVnh1SET

--HG--
extra : rebase_source : 287a967f4f354999ab8af93eb696e81727289b12
2017-12-04 17:49:41 +08:00
Jan-Ivar Bruaroey
313f7a1ac3 Bug 1429536 - Assure even width and hight for fake:true camera, fixing debug crash. r=ng
MozReview-Commit-ID: mxGcTFbEwe

--HG--
extra : rebase_source : 21a66143070dba55d616750a7733a4fa5848254b
2018-01-10 20:02:18 -05:00
JW Wang
5efcbcb3a8 Bug 1427932. P2 - fix the calculation of |endTime|. r=jya
MozReview-Commit-ID: 2a8FxMdgM8e

--HG--
extra : rebase_source : a287b19c5c2d6d3c5a2fb454c14b390f60e63667
extra : source : 49211ab256d7742cf83b16e6a2fa6ed3d53f1b46
2018-01-04 11:10:19 +08:00
JW Wang
b23b5d2214 Bug 1427932. P1 - replace NS_ASSERTION with MOZ_ASSERT to catch more bugs. r=jya
MozReview-Commit-ID: H5SNFz956nG

--HG--
extra : rebase_source : 8ee27dabc1cda0b4001464a1d78705aa2a306cd5
extra : source : ab0dab8a566c0090dd900a9fbcdd97cc7b622cbc
2018-01-04 11:09:54 +08:00
Noemi Erli
188184d4dc Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-12 00:04:40 +02:00
Margareta Eliza Balazs
a331a849a4 Backed out changeset 6d539e4a02bd (bug 1403519) for lint failures on a CLOSED TREE 2018-01-11 22:32:27 +02:00
Mike Conley
b019950988 Bug 1420902 - Bail out of RemoteSizeShellTo if the docShell has gone away. r=mystor
MozReview-Commit-ID: 4X3bfSeHGiA

--HG--
extra : rebase_source : 7af7001d7158053f66f205a49b514d24103a379f
2017-11-28 10:56:51 -05:00
Mike Conley
b8af0e6e5a Bug 1430072 - Make the TabParent's default cached value for the DocShell active state be false again. r=mystor
MozReview-Commit-ID: AMAJgD8n0Lp

--HG--
extra : rebase_source : 6e0f4fc222bf4719c421ddf3252fbf7f2d5a2c9d
2018-01-12 17:17:39 -05:00
Ryan VanderMeulen
f83acc4c48 Merge m-c to autoland. a=merge 2018-01-12 11:36:30 -05:00
Jonathan Kingston
76cec81940 Bug 1398169 - Use pref to disable registerContentHandler in non stable builds. r=baku,dao
MozReview-Commit-ID: Gbo1wFr8XU6

--HG--
extra : rebase_source : 422efb30dcf6d8f5da395fc50ccb36c0f4cc0cc6
2018-01-08 02:18:31 +00:00
Brindusan Cristian
b102ef421c Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2018-01-12 13:32:23 +02:00
Mark Banner
d2eba76015 Bug 1429701 - Enable ESLint rule mozilla/use-services for dom/indexedDB. r=bevis
MozReview-Commit-ID: 9OgcN56ziip

--HG--
extra : rebase_source : ca4e88e8bd9bd20888659b095c62c30161279ed0
2018-01-10 17:25:52 +00:00
Andrew McCreight
4a0dd8ce9d Bug 1429945 - Make ghost window unlinker e10s compatible. r=smaug
Content processes can contain ghost windows, so the debug-only ghost
window unlinker needs to send a message to child processes to get them
to run it, too.

MozReview-Commit-ID: 9Ffc3SDNDJB

--HG--
extra : rebase_source : 875891e9332cf41c4157d246b71c2c361cab4aa6
2018-01-11 14:14:09 -08:00
David Parks
f933a65f8d Bug 1382251: Part 11 - Update moz.build with new files r=jimm
Includes the build changes made by the earlier patches in this series.  Also adds some #includes required by other files when these are added to the unified build.

--HG--
extra : rebase_source : 0a7ea51fe46c2c0c919a03b7dd7cccc637e7b515
extra : histedit_source : a70277a4d8d0b37f983e6d97b8b54d54fba01ba6
2017-11-06 10:47:01 -08:00
David Parks
532ec8cea3 Bug 1382251: Part 9 - Hook functions needed for SSL communication in NPAPI process r=jimm
Adds Win32 networking APIs to the function broker so that we can run SSL communications outside of the sandbox.

--HG--
extra : rebase_source : 9a5ec38dd9f8a4f1f7bbada461e97513c7db0ab7
extra : histedit_source : f9460155a84f734fa0663bca9f4d18963c07cef5
2017-11-06 10:41:21 -08:00
David Parks
3faeb8e38f Bug 1382251: Part 8 - Migrate some previously hooked functions to FunctionHook/Broker r=froydnj
Moves GetWindowInfo, GetKeyState, SetCursorPos, GetSaveFileNameW and GetOpenFileNameW to the new FunctionHook and FunctionBroker systems.

--HG--
extra : rebase_source : faa4a5a343d3c7c9310241ad361e563a0221d2d7
extra : histedit_source : 1d06fc0480f03506e188efc834e35561bb6b07d1
2017-11-06 11:07:16 -08:00
David Parks
8828da3873 Bug 1382251: Part 7 - Add mechanism for automatically brokering DLL functions r=jimm
The FunctionBroker is a special kind of FunctionHook that brokers the hooked function on another process.  In the child process, it uses the FunctionBrokerChild to request that the FunctionBrokerParent run a function and return the response.  It handles most cases of parameter, return value and error marshaling on its own.  It also guarantees that requests are issued from the proper thread.

--HG--
extra : rebase_source : 99e4864f3e6396695eae0ff9aec75aa3c69f082f
2017-11-06 10:34:47 -08:00
David Parks
e58ba522f2 Bug 1382251: Part 6 - Start/stop new top-level brokering actors on their own threads r=jld
The FunctionBroker actors allow the NPAPI process (child) to run methods on the main process (parent).  Both the parent and the child run dedicated threads for this task -- this is a top-level protocol.

--HG--
extra : rebase_source : 38c02140f364f32c4ea16cac79d80facf168c2f9
2017-11-06 10:29:15 -08:00
David Parks
d0d0e5ba2f Bug 1382251: Part 5 - Add IpdlTuple for type-safely marshaling tuples r=jld
IpdlTuple is an array of Variants that is accessed by type and that reports an error if there is a type error.  This is used for safe and easy communication of IPDL objects, validated at run time since IPC data is untrusted.

--HG--
extra : rebase_source : ee113d501d5372cfd01f0be9a58e2db50ab539b3
2017-11-06 10:17:15 -08:00
David Parks
c6a908099a Bug 1382251: Part 4 - Init/Shutdown parts of XPCOM needed in plugin process r=erahm
We have not been initializing or shutting down XPCOM in the plugin process.  We need the nsThreadManager for this bug but, more importantly, we need to properly shut down XPCOM in order to get things like handlers connected to the ShutdownPhases (e.g. ClearOnShutdown, used to free resources at process end).

This patch includes some work to make services that are uninitialized in the plugin process to handle Shutdown calls without failing.

--HG--
extra : rebase_source : 837eddd8f8cf956b248c81cb26ca183bf13d1b46
2017-11-06 10:10:43 -08:00
David Parks
12b3918c16 Bug 1382251: Part 3 - Add mechanism for automatically hooking DLL functions r=jimm
FunctionHook uses the DLL interceptor to redirect Win32 calls to a user-supplied function.

--HG--
extra : rebase_source : 27c2ee94e1f2993bfd871a559b7d45c5bd45e510
2017-11-06 10:04:19 -08:00
Andrew Swan
63c732760f Bug 1396399 - Clarify rules for applying activeTab permission to content scripts. r=kmag, r=bz
MozReview-Commit-ID: 9xPDX8Qk2iR
2017-11-04 21:06:20 -07:00
Blake Kaplan
586e13b2b7 Bug 1404297 - Temporarily assert that we don't re-enter this function. r=bzbarsky
MozReview-Commit-ID: FoQGVDWtwN1

--HG--
extra : rebase_source : c22cc3a022dc01923696940fc0b0aae708232db0
2018-01-10 18:48:26 -05:00
Dorel Luca
ccebfc1873 Merge mozilla-central to autoland r=merge 2018-01-11 00:03:38 +02:00
Dorel Luca
8beedd4f8d Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-11 00:01:16 +02:00
Andrea Marchesini
9c2f965727 Bug 1424701 - Test for uploading files via ServiceWorker, r=bkelly 2018-01-10 17:04:09 +01:00
Mike Conley
30bfe2cdc1 Bug 1423208 - Queue pending RenderLayers calls when there are DocShell creation blockers. r=mystor
MozReview-Commit-ID: H4MqkWnfCkF

--HG--
extra : rebase_source : 046c41c0ef4de7d9e742cd98f5c87828c02d129c
2018-01-08 17:53:09 -05:00
Mike Conley
2b75bd4264 Bug 1423208 - Make DocShell active state in TabParent default to true, since that's the actual default state. r=mystor
MozReview-Commit-ID: 8JQCW12FYyJ

--HG--
extra : rebase_source : 47769fd4941af002b7c22e0ee2d62c306224c335
2018-01-08 17:52:41 -05:00
Michael Froman
69d270acdf Bug 1427009 - limit accepted mid length to 16 chars. r=bwc
webrtc.org only supports one-byte rtp header extensions which means
we can only support 16 character mids for now.

MozReview-Commit-ID: C7aTeB5Bi2M

--HG--
extra : rebase_source : e25518d02fb056f82d298f000e37cfe059099a38
2018-01-08 16:23:06 -06:00
Andrea Marchesini
a87d905d44 Bug 1428725 - Fix a crash in ConsoleData when StructuredCloneHolder fails to write data, r=smaug 2018-01-10 12:30:53 +01:00
Jon Coppeard
561949fb5e Bug 1428002 - Enable <script type="module"> in nightly builds r=smaug 2018-01-09 11:52:42 +00:00
Csoregi Natalia
08c2334fa4 Merge mozilla-central to inbound. r=merge a=merge CLOSED TREE
--HG--
extra : rebase_source : 7081cc0fb69e70c630a6d55157783cea1c44df02
2018-01-10 12:14:23 +02:00
Gurzau Raul
2d062bac22 Merge inbound to mozilla-central r=merge a=merge 2018-01-10 11:58:20 +02:00
Olli Pettay
07e03ec714 Bug 1429244 - Make Selection to use main thread only AddRef/Release, r=mccr8 2018-01-10 09:47:07 +02:00
Andrea Marchesini
89ea14e649 Bug 1428745 - Remove support for version parameter from script loader - trimming script type, r=jonco 2018-01-09 17:00:50 +01:00
Andrea Marchesini
51cbe0791e Bug 1428745 - Remove support for version parameter from script loader - tests, r=jonco
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing a broken depending test - CLOSED TREE, r=me
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing WPTs - CLOSED TREE, r=me
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing tests - CLOSED TREE, r=me
2018-01-09 17:00:49 +01:00
Andrea Marchesini
8f0c2b3ab9 Bug 1428745 - Remove support for version parameter from script loader, r=jonco 2018-01-09 17:00:49 +01:00
John Dai
408eb5bda0 Bug 1427542 - Fix reset a form can't clear -moz-ui-invalid after calling reportValidity. r=smaug 2018-01-09 16:37:02 +08:00
JW Wang
45984a084a Bug 1428951 - add a getter for MediaCacheStream::GetDebugInfo() to take the cache monitor on the main thread. r=bechen,gerald
MozReview-Commit-ID: 8qkZg0MJsGQ

--HG--
extra : rebase_source : 0ff2f6ebe8908bd5dade301f6c2c52e718a23c47
2018-01-09 10:29:10 +08:00
Sebastian Hengst
1ebdaf80de merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2018-01-10 01:52:28 +02:00
Sebastian Hengst
83d7fb3caf merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-10 01:32:52 +02:00
m_kato@ga2.so-net.ne.jp
74e5620b46 Bug 1386381 - nsTextFragment::SetTo() could be faster by allocating less often, p=makoto,smaug, r=makoto,smaug
--HG--
extra : rebase_source : 1ec6bc8cfb1df283bc110292f2ce509a27b31233
2018-01-09 15:36:01 +02:00
Olli Pettay
7891930314 Bug 1428748 - RangeBoundary is too AddRef/Release heavy, r=mystor
--HG--
extra : rebase_source : 15efb71770d21038f4230538da8c862ab832fdc4
2018-01-08 21:27:44 +02:00
Jeff Gilbert
f4cfe8596a Bug 1428898 - Add TlsScope to reduce fIsCurrent calls. - r=daoshengmu
MozReview-Commit-ID: Kyi8dcO7nAu
2018-01-09 18:43:35 -08:00
Philip Chimento
feae2f5325 Bug 1428605 - Add JS:: namespace to API where it's missing. r=sfink 2018-01-07 19:08:33 -08:00
Narcis Beleuzu
fb578c1b74 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2018-01-10 02:02:13 +02:00
Narcis Beleuzu
0cc8c52dcb Backed out 6 changesets (bug 1428745) for wpt failures on script-type-and-language-with-params.html. r=backout on a CLOSED TREE
Backed out changeset 9e84285278fe (bug 1428745)
Backed out changeset e199f1ccf64c (bug 1428745)
Backed out changeset dfb9af93ac53 (bug 1428745)
Backed out changeset 1d975770bd9a (bug 1428745)
Backed out changeset 1d5dc7dfd429 (bug 1428745)
Backed out changeset 4e53f251c5b8 (bug 1428745)
2018-01-10 00:37:59 +02:00
David Major
bace46558f Bug 1419771 followup: fix mingw build bustage 2018-01-09 15:43:47 -05:00
Ben Kelly
166bafcfe1 Bug 1428652 P3 Fix typo in browser_unregister_with_containers.js. r=me 2018-01-09 15:39:34 -05:00
Ben Kelly
65eb505d92 Bug 1428652 P2 Verify that unregistering a service worker in one container does not break a SW with same scope in different container. r=asuth 2018-01-09 14:55:05 -05:00
Ben Kelly
1819c124bd Bug 1428652 P1 Make service worker registration removal take container principals into account. r=asuth 2018-01-09 14:55:04 -05:00
Ben Kelly
1e126cdab8 Bug 1429029 Force browser_storage_permission.js to use a single content process to avoid multi-e10s service worker propagation races. r=asuth 2018-01-09 14:28:13 -05:00
Ben Kelly
5fa4248b8a Bug 1428650 Make ServiceWorkerManager::MaybeClaimClient() handle inconsistent child-process SWM state. r=asuth 2018-01-09 14:24:58 -05:00
Andrea Marchesini
a778bb516b Bug 1428745 - Remove support for version parameter from script loader - fixing tests - CLOSED TREE, r=me 2018-01-09 19:44:45 +01:00
Andrea Marchesini
b63423fdb2 Bug 1428745 - Remove support for version parameter from script loader - fixing a broken depending test - CLOSED TREE, r=me 2018-01-09 18:11:03 +01:00
Andrea Marchesini
606217325c Bug 1428745 - Remove support for version parameter from script loader - trimming script type, r=jonco 2018-01-09 17:00:50 +01:00
Andrea Marchesini
174498ca29 Bug 1428745 - Remove support for version parameter from script loader - tests, r=jonco 2018-01-09 17:00:49 +01:00
Andrea Marchesini
9d1d1b1ff3 Bug 1428745 - Remove support for version parameter from script loader, r=jonco 2018-01-09 17:00:49 +01:00
Edmund Wong
03877052c1 Bug 1428678 - Include MozFramebuffer.h instead of gfx/gl/MozFramebuffer.h to work around Thunderbird builtbot problem. r=jgilbert a=thunderbird-bustagefix 2018-01-07 19:35:00 +02:00
Margareta Eliza Balazs
fe2caaa266 Merge inbound to mozilla-central r=merge a=merge 2018-01-09 11:52:55 +02:00
JW Wang
29bae87780 Bug 1428684 - reduce the chance of UAF when changing states of MDSM. r=kaku
SetState() will delete the current state object and UAF will happen if members
are accessed after this call. However, sometimes it is not obvious if SetState()
is called indirectly as we do in MaybeFinishSeek().

To make it less error-prone, we will keep the old state object alive for a bit
longer and set mMaster to null to catch potential UAF.

MozReview-Commit-ID: Aqxj92ETjti

--HG--
extra : rebase_source : 21b4a0b6df2b1723eed01b6c9d58b33b8dcc6405
2018-01-08 11:41:59 +08:00
Tim Taubert
c3180f09e1 Bug 1406467 - Web Authentication - WD-07 Updates to Make Assertion r=jcj,smaug
Summary:
Add support for PublicKeyCredentialRequestOptions.userVerification. For now
this basically means that we'll abort the operation with NotAllowed, as we
don't support user verification yet.

Pass PublicKeyCredentialDescriptor.transports through to the token manager
implementations. The softoken will ignore those and pretend to support all
transports defined by the spec. The USB HID token will check for the "usb"
transport and either ignore credentials accordingly, or abort the operation.

Note: The `UserVerificationRequirement` in WebIDL is defined at https://w3c.github.io/webauthn/#assertion-options

Reviewers: jcj, smaug

Reviewed By: jcj, smaug

Bug #: 1406467

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

--HG--
extra : amend_source : 314cadb3bc40bbbee2a414bc5f13caed55f9d720
2018-01-09 07:27:35 +01:00
Alphan Chen
87bb85b91b Bug 1421214 - Try GoToAnchor() with unescaped string before using document's charset. r=smaug 2018-01-05 15:12:16 +08:00
Ben Kelly
572321a804 Bug 1426977 P5 Remove unnused cookie pref getters from nsContentUtils. r=mystor 2018-01-08 20:25:53 -05:00
Ben Kelly
6b60ca24ef Bug 1426977 P4 Add mochitest verifying service workers respect per-site cookie permissions. r=mystor 2018-01-08 20:25:53 -05:00
Ben Kelly
223b11ff62 Bug 1426977 P2 Add StorageAllowedForNewWindow() to support docshell service worker checks. r=mystor 2018-01-08 20:25:53 -05:00
Kilik Kuo
811a2496ae Bug 1429284 - Expose compositor dropped frame count to HTMLMediaElement's debug info. r=jwwang
MozReview-Commit-ID: GYtHxdsGSk1

--HG--
extra : rebase_source : 2ba90d5899c2a268879722476da81e9a07b83a88
2018-01-10 12:07:47 +08:00
Andreas Pehrson
1ee82e204d Bug 1428390 - Remove virtual keyword for overrides in PCameras impl. r=jib
MozReview-Commit-ID: FqhgyTFXH5W

--HG--
extra : rebase_source : d2b308bae88cf0ed70efda87ed725c6f96f96e35
2018-01-08 12:44:16 +01:00
Andreas Pehrson
584ab7f7ca Bug 1428390 - Use mChildIsAlive to decide whether to send replies. r=jib
MozReview-Commit-ID: BmpvYKo1tpJ

--HG--
extra : rebase_source : 8600dc667662467a5312cf8140d60d768fd2de5a
2018-01-08 12:42:55 +01:00
Bogdan Tara
cd1c3cc5dd Merge mozilla-central to autoland, r=merge a=merge on a CLOSED TREE 2018-01-09 00:16:46 +02:00
Bogdan Tara
73b4d6b26a Merge inbound to mozilla-central r=merge a=merge 2018-01-09 00:05:31 +02:00
Jon Coppeard
e7889065a7 Bug 1426189 - Make document.currentScript null in modules r=baku 2018-01-08 18:07:39 +00:00
Jessica Jong
dd9a9b8c68 Bug 1419803 - Use GetComposedDoc instead of GetUncomposedDoc in ContentEventHandler. r=smaug 2018-01-08 01:31:00 +02:00
John Dai
d480d5e221 Bug 1419662 - Fix incorrect custom element type in CustomElementData. f=echen, r=smaug 2018-01-07 18:45:00 +02:00
Jon Coppeard
bc9a97d964 Bug 1361369 - Allow async attribute on inline module scripts r=smaug 2018-01-08 15:17:34 +00:00
Jon Coppeard
61e2c40529 Bug 1361369 - Fix coding style in ScriptLoadRequest.h r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard
0d68beed29 Bug 1361369 - Add a script processing mode enum r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard
ba458e83d4 Bug 1361369 - Factor out method to queue an async request r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard
a606770b91 Bug 1361369 - Rename some script load request flags to be more descriptive r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard
3bd056fab8 Bug 1377402 - Add null check in SimpleGlobalObject's class hooks r=sfink 2018-01-08 14:27:50 +00:00
Andrea Marchesini
2a49ddf8b7 Bug 1419771 - Fixing compilation issue, r=me - CLOSED TREE 2018-01-08 15:07:16 +01:00
Andrea Marchesini
e10464a465 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 22 - DOMPrefs initialized at startup, r=asuth 2018-01-08 14:05:07 +01:00
Andrea Marchesini
112a861fb6 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 21 - Get rid of WorkerPrefs.h, r=asuth 2018-01-08 14:05:07 +01:00
Andrea Marchesini
4fe8b382b6 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 20 - DevTools enabled, r=asuth 2018-01-08 14:05:06 +01:00
Andrea Marchesini
2bfde4fc2d Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 19 - Resist finger-printing enabled, r=asuth 2018-01-08 14:05:06 +01:00
Andrea Marchesini
7970f659de Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 18 - FetchObserver API enabled, r=asuth 2018-01-08 14:05:05 +01:00
Andrea Marchesini
bbefbae583 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 17 - Network Information enabled, r=asuth 2018-01-08 14:05:05 +01:00
Andrea Marchesini
1b4b3007e5 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 16 - Webkit/Blink directory picker enabled, r=asuth 2018-01-08 14:05:05 +01:00
Andrea Marchesini
53cbde0f48 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 15 - Offscreen Canvas enabled, r=asuth 2018-01-08 14:05:05 +01:00
Andrea Marchesini
aacb9ccdfb Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 14 - Request Context enabled, r=asuth 2018-01-08 14:05:05 +01:00
Andrea Marchesini
f4ab91bebc Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 13 - Streams API enabled, r=asuth 2018-01-08 14:05:05 +01:00
Andrea Marchesini
4e9579eb6c Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 12 - Push enabled, r=asuth 2018-01-08 14:05:05 +01:00
Andrea Marchesini
c05772d855 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 11 - Promise Rejection Event enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
01fd1fc62e Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 10 - StorageManager enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
d6a3041434 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 9 - ServiceWorker testing enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
a45ddd5050 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 8 - ServiceWorkers enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
19b6228ddd Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 7 - Notification Request-Interaction enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
8fada45fa4 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 6 - Notification API enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
61778fdf43 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 5 - Performance logging enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
615e4c18e4 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 4 - DOM Cache testing enabled, r=asuth 2018-01-08 14:05:04 +01:00
Andrea Marchesini
b0c234924a Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 3 - DOM Caches enabled, r=asuth 2018-01-08 14:05:03 +01:00
Andrea Marchesini
9a25904cf8 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 2 - image bitmap, r=asuth 2018-01-08 14:05:03 +01:00
Andrea Marchesini
1a7b13aab4 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 1 - dump enabled, r=asuth 2018-01-08 14:05:03 +01:00
Dorel Luca
cf149b7b63 Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-08 11:56:10 +02:00
Stone Shih
0123116fe8 Bug 1420590 - dragleave event returns bad target. r=smaug. 2018-01-05 11:35:35 +08:00
Narcis Beleuzu
0a801af7ea Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2018-01-07 12:01:04 +02:00
Brindusan Cristian
f42618c99d Backed out 6 changesets (bug 1416879) for bc permafailures on windows on browser_multie10s_update.js r=backout a=backout
Backed out changeset 840a6e04bcea (bug 1416879)
Backed out changeset 994dc643a2ab (bug 1416879)
Backed out changeset 8e4fd74e7f5e (bug 1416879)
Backed out changeset 5453b8a58f0c (bug 1416879)
Backed out changeset d156f6b687e1 (bug 1416879)
Backed out changeset 714d3942fb10 (bug 1416879)
2018-01-07 11:55:44 +02:00
Adrian Wielgosik
0e43a76787 Bug 1421358 - Remove GCRuntime::notifyDidPaint and refresh_frame_slices.enabled pref. r=jonco
MozReview-Commit-ID: HBh0qyPckKv
2018-01-06 22:25:25 +01:00
Brad Werth
042dcb26b0 Bug 1423378 Part 3: Duplicate repeat auto-fit test into a repeat auto-fill test (with slightly different expected values). r=mats
MozReview-Commit-ID: AWmXfpRx7zG

--HG--
rename : dom/grid/test/chrome/test_grid_repeats.html => dom/grid/test/chrome/test_grid_repeat_auto_fit.html
2017-12-20 10:54:46 -08:00
Mats Palmgren
7097d46173 Bug 1423378 Part 2: Update tests to check line names around empty auto-fit grids. r=bradwerth 2017-12-16 14:56:00 +02:00
JW Wang
51a137168e Bug 1427699. P2 - rewrite InitAsCloneInternal() to mimic the case where data is downloaded from a channel. r=gerald
Note we add mClient->CacheClientSuspend() so the network state of the element
is changed to IDLE because we have no channel to fetch data initially.

MozReview-Commit-ID: DgJbMxvJBzH

--HG--
extra : rebase_source : 69a3ef35d4b5faaaa645fabe02246d49aebce22e
extra : source : 61ec40ce378a444ec0f74d474c28b6a9db3aa830
2018-01-05 16:31:39 +08:00
JW Wang
6c7aec249a Bug 1427699. P1 - allow element->DownloadSuspended() to be called when mChannel is null. r=gerald
This is required by P2 where we want to notify the 'suspend' event for a cloned
resource whose mChannel is initially null.

MozReview-Commit-ID: 3znDl2TqlqK

--HG--
extra : rebase_source : 71c3d6dc2052566b6bfb0879ce56b804312c5a37
extra : source : e6b7cb7937c80420ad2725c5a77143c7a071150f
2018-01-05 16:04:16 +08:00
Edgar Chen
821531562b Bug 1428244 - Part 2: Set correct oldValue/newValue for the attributeChangedCallback which is fired from style attribute change; r=smaug
MozReview-Commit-ID: 4l6XuCUHUh8

--HG--
extra : rebase_source : 23d825684dbd47ca125cd8468d2c8d22425e3cdf
2017-12-15 11:52:07 -06:00
Edgar Chen
d6c2c3283e Bug 1428244 - Part 1: Add [CEReactions] in CSSStyleDeclaration; r=smaug
per https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-camel-cased-attribute.

MozReview-Commit-ID: 7QkAZeUOrlh

--HG--
extra : rebase_source : 1431dfd4edebf8140604ac79253c674f3bf4f89d
2017-12-13 10:24:35 -06:00
Csoregi Natalia
bbfcdcd760 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
--HG--
rename : security/manager/ssl/tests/unit/test_signed_apps/cose_multiple_signed.zip => security/manager/ssl/tests/unit/test_signed_apps/cose_multiple_signed_with_pkcs7.zip
rename : security/manager/ssl/tests/unit/test_signed_apps/cose_signed.zip => security/manager/ssl/tests/unit/test_signed_apps/cose_signed_with_pkcs7.zip
rename : third_party/rust/cose/src/cbor/mod.rs => third_party/rust/moz_cbor/src/lib.rs
extra : rebase_source : 5f16e3d25e86d41e201b8c28ead361fd6ac25c42
2018-01-10 12:07:47 +02:00
JW Wang
debd843644 Bug 1429323 - remove calls to SimpleTest.expectAssertions() from media mochitests. r=bechen
MozReview-Commit-ID: GapLJjIGjmK

--HG--
extra : rebase_source : f9ea3059d2d0abce6caeb69d29e47c410731039d
2018-01-10 14:50:53 +08:00
Csoregi Natalia
ce986a196a Backed out changeset 760107333833 (bug 1420178) for assertion failure at dom/base/CustomElementRegistry.cpp:1065 in browser-chrome on Windows. r=backout on a CLOSED TREE 2018-01-10 11:27:26 +02:00
Gurzau Raul
5ec8060d2b Backed out 2 changesets (bug 1427932) for failures on tests/browser/chrome/test_media_playback.html r=backout on a CLOSED TREE
Backed out changeset fbae5269d99a (bug 1427932)
Backed out changeset 8b7cc135f1a5 (bug 1427932)
2018-01-10 11:08:57 +02:00
J.C. Jones
3ba27ce458 Bug 1428918 - Enable Web Authentication in Nightly r=keeler,smaug
In advance of enabling Web Authentication in Firefox 60 [1], let's turn it on
for Nightly users.

[1] https://groups.google.com/forum/#!msg/mozilla.dev.platform/tsevyqfBHLE/lccldWNNBwAJ

MozReview-Commit-ID: ALyjBwojKtA

--HG--
extra : rebase_source : c51aef6bf12e1e26faa3d86269132eef7057c889
2018-01-08 18:37:35 -07:00
Brad Werth
b61d32f5ef Bug 1423378 Part 1: Specially treat the explicit line names following a repeat auto-fit or auto-fill declaration to ensure they are always applied to the following line. r=mats
MozReview-Commit-ID: iFM5J6wRL6
2017-12-05 14:51:06 -08:00
Andreea Pavel
51d4c2d9ce Merge inbound to mozilla-central r=merge a=merge 2018-01-06 11:50:13 +02:00
Andrew Sutherland
3f90214c93 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 : bee2d8ae5dedfb88c1bb8fa5cf452014d74afaed
2018-01-04 18:38:43 -05:00
Andrew Sutherland
31246a1058 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 : 559af90ba766ebd4deb5d99b6696cd2207215f9f
2018-01-04 18:09:32 -05:00
Andrew Sutherland
8da7ba26dd 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 : 788dab679298841fc03bb054458b6f8cc4a0a8d9
2018-01-04 18:04:55 -05:00