Kris Maglione
aec63e140c
Backed out 3 changesets (bug 1431533
) for Android mochitest bustage. CLOSED TREE
...
MozReview-Commit-ID: 5ubE9EMQpZ9
--HG--
extra : histedit_source : df68d7595925c07d9d6e8bacc2c46e69556f479a%2C72b768b9825e20ede6603ead75f871c50dc041f7
2018-01-24 22:04:59 -08:00
Kris Maglione
30b3a49bfd
Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
...
MozReview-Commit-ID: 8V1ZT53ReiP
--HG--
extra : rebase_source : 12b5f8c3e125111db7382eb3d7d20a99fb2c35b3
extra : absorb_source : e99fa7f6eee02e7e6cadeb898c7fcf6dac9c902a
extra : histedit_source : d0dfc31fadc2b81d341c9d0cd1efec02923c003b
2018-01-24 15:48:47 -08:00
Ben Kelly
979b3b9d53
Bug 1432640 Remove ServiceWorkerManager::GetDocumentController() and make ServiceWorkerContainer::GetController() look up the reg instead. r=asuth
2018-01-24 14:23:58 -08:00
Brindusan Cristian
368c3d5b6b
Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
...
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Ben Kelly
69e5062a18
Bug 1431847 P4 Don't require a load group when spawning the service worker thread for a FetchEvent. r=asuth
2018-01-24 12:47:16 -05:00
Ben Kelly
1153f4ce05
Bug 1431847 P3 Add ServiceWorkerParentInterceptEnabled() method and backing pref. r=asuth
2018-01-24 12:47:16 -05:00
Andrea Marchesini
692e6f7518
Bug 1425458 - Resource timing entries Workers - part 6 - PerformanceResourceTiming exposed, r=smaug
2018-01-24 17:17:32 +01:00
Andrea Marchesini
662a5542a3
Bug 1425458 - Resource timing entries Workers - part 3 - PerformanceStorageWorker, r=smaug
2018-01-24 17:17:32 +01:00
Andrea Marchesini
6480b95ba3
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Tom Tung
49a4cb64e9
Bug 1429093 - P2: A test to verify the close event is not allowed to window interaction. r=bkelly
2018-01-17 11:31:31 +08:00
Tom Tung
a7f36965a3
Bug 1429093 - P1: Only allow notification click to call allowWindowInteraction. r=bkelly
2018-01-10 18:05:07 +08:00
Ben Kelly
4e76a87073
Bug 1231211 P20 Don't call CancelInterception() if an error occurs in ChannelIntercepted(). r=asuth
2018-01-23 10:38:55 -05:00
Ben Kelly
e95b043f8b
Bug 1231211 P18 Make blob URL worker scripts inherit the parent's controller. r=asuth
2018-01-23 10:38:54 -05:00
Ben Kelly
d9fc56fabc
Bug 1231211 P17 Fix test_sandbox_intercept.html to not use allow-same-origin attribute. r=asuth
2018-01-23 10:38:54 -05:00
Ben Kelly
40376986e1
Bug 1231211 P13 Make worker ScriptLoader pass ClientInfo and ServiceWorkerDescriptor to NS_NewChannel() where appropriate. r=asuth
2018-01-23 10:38:54 -05:00
Ben Kelly
132eba9966
Bug 1231211 P11 Add a StorageAllowedForChannel() and use it in ServiceWorkerInterceptController. r=asuth
2018-01-23 10:38:53 -05:00
Ben Kelly
70f338b679
Bug 1231211 P10 Move nsDocShell logic into separate ServiceWorkerInterceptController. r=asuth
2018-01-23 10:38:53 -05:00
Ben Kelly
1d94a9ebaa
Bug 1231211 P9 Move logic out of nsDocShell::ChannelControlled() and into ServiceWorkerManager::DispatchFetchEvent(). r=asuth
2018-01-23 10:38:53 -05:00
Ben Kelly
8e535f8460
Bug 1231211 P2 Pass the controller ServiceWorkerDescriptor on the channel LoadInfo and back in PHttpChannel's OnStartRequest message. r=valentin
2018-01-23 10:38:52 -05:00
Boris Zbarsky
2280e86208
Bug 1431846 part 1. Kill off unused attributes from nsIDOMNavigator. r=mystor
...
MozReview-Commit-ID: HUUYPLSjWpG
2018-01-22 12:59:15 -05:00
Boris Zbarsky
470a97f6d7
Bug 1429014. Make test_interfaces require explicit opt-in to add a non-SecureContext interface. r=bkelly
...
The big data tables had the following search-and-replaces done on them:
name: "\([^"]+\)" -> name: "\1", insecureContext: true
"\([^"]+\)",$ -> {name: "\1", insecureContext: true},
followed by removal of both isSecureContext and insecureContext annotations
where both appeared.
MozReview-Commit-ID: BkqAwXFf48x
2018-01-16 14:39:58 -05: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
Kris Maglione
a75561bd62
Bug 1412726: Clean up XPCOM singleton constructor refcount handling. r=froydnj
...
This is a follow-up to bug 1409249. There are a lot of places where our
factory singleton constructors either don't correctly handle their returned
references being released by the component manager, or do handle it, but in
ways that are not obvious.
This patch handles a few places where we can sometimes wind up with dangling
singleton pointers, adds some explanatory comments and sanity check
assertions, and replaces some uses of manual refcounting with StaticRefPtr and
ClearOnShutdown.
There are still some places where we may wind up with odd behavior if the
first QI for a getService call fails. In those cases, we wind up destroying
the first instance of a service that we create, and re-creating a new one
later.
MozReview-Commit-ID: ANYndvd7aZx
--HG--
extra : rebase_source : acfb0611a028fef6b9387eb5d1d9e285782fbc7c
2017-10-29 16:02:40 -07: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
eb42607c4e
Bug 1425965 P1 Make ServiceWorkerManager::ReportToAllClients use ConsoleUtils::ReportForServiceWorkerScope. r=asuth
2018-01-12 12:16:03 -05:00
Ben Kelly
eecacb4a97
Bug 1429486
Expose GetClientInfo() and GetController() on nsIGlobalObject. r=asuth
2018-01-11 20:46:08 -05: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 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
Coroiu Cristina
ed1a813295
Backed out 2 changesets (bug 1423495) for wpt failures at /server-timing/test_server_timing.html r=backout on a CLOSED TREE
...
Backed out changeset f7667f5a63af (bug 1423495)
Backed out changeset aca79713b901 (bug 1423495)
2018-01-10 21:40:58 +02:00
Kershaw Chang
dfd9fce569
Bug 1423495 - Part 1: Implement PerformanceServerTiming. r=baku
...
This patch includes:
1. Introduce PerformanceServerTiming.webidl.
2. Add serverTiming in PerformanceResourceTiming.webidl.
3. Get serverTiming data from nsITimedChannel and keep it in PerformanceTimng class.
4. Add PerformanceServerTiming to test_interfaces.js.
2018-01-10 04:01:00 -05:00
Andrea Marchesini
9c2f965727
Bug 1424701 - Test for uploading files via ServiceWorker, r=bkelly
2018-01-10 17:04:09 +01: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
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
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
04e91897cf
Backed out 11 changesets (bug 1252998) for faling browser-chrome on browser/base/content/test/sanitize/browser_sanitize-offlineData.js
...
Backed out changeset a9ec63c01c50 (bug 1252998)
Backed out changeset a3e5299b882a (bug 1252998)
Backed out changeset aa511b206e21 (bug 1252998)
Backed out changeset 5875848a48ab (bug 1252998)
Backed out changeset 7fd2523680d1 (bug 1252998)
Backed out changeset a45e28e573a4 (bug 1252998)
Backed out changeset 92e8cc81b417 (bug 1252998)
Backed out changeset da38d133549e (bug 1252998)
Backed out changeset 5be23a98b47c (bug 1252998)
Backed out changeset 609093736110 (bug 1252998)
Backed out changeset f4955cf6447f (bug 1252998)
--HG--
rename : browser/base/content/test/sanitize/browser_purgehistory_clears_sh.js => browser/base/content/test/general/browser_purgehistory_clears_sh.js
rename : browser/base/content/test/sanitize/browser_sanitize-passwordDisabledHosts.js => browser/base/content/test/general/browser_sanitize-passwordDisabledHosts.js
rename : browser/base/content/test/sanitize/browser_sanitize-sitepermissions.js => browser/base/content/test/general/browser_sanitize-sitepermissions.js
rename : browser/base/content/test/sanitize/browser_sanitize-timespans.js => browser/base/content/test/general/browser_sanitize-timespans.js
rename : browser/base/content/test/sanitize/browser_sanitizeDialog.js => browser/base/content/test/general/browser_sanitizeDialog.js
2018-01-08 11:00:39 +02:00
Andrea Marchesini
d88b2a0051
Bug 1252998 - StorageActivityService - part 6 - StorageActivityService in ServiceWorkerRegistrar, r=asuth
2018-01-08 08:31:38 +01:00
Andrea Marchesini
c508e62b7e
Bug 1252998 - StorageActivityService - part 4 - Introduce ServiceWorkerCleanUp.jsm to clean up ServiceWorker data, r=asuth
2018-01-08 08:31:38 +01:00
Andrea Marchesini
b944c4971e
Bug 1252998 - StorageActivityService - part 3 - ServiceWorkerManager must not cleanup data when purge-session-history notification is dispatched, r=asuth
2018-01-08 08:31:35 +01: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
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
Ben Kelly
64ef60ebaa
Bug 1428447 Set a loading principal on ServiceWorker WorkerPrivate objects. r=asuth
2018-01-05 19:50:09 -05:00
Ben Kelly
fd30dd024a
Bug 1425975 P15 Add session lifetime policy checks to test_third_party_iframe.html. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
d9c3b35de3
Bug 1425975 P11 Fix test_workerupdatefound.html not to frame loading against SW activation and updatefound events. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
8d1c01e9eb
Bug 1425975 P10 Fix the test_skip_waiting.html mochitest to properly wait for active worker state. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
3bd4435759
Bug 1425975 P9 Refactor MaybeCheckNavigationUpdate() to take a ClientInfo instead of a document. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
c67746c9b2
Bug 1425975 P7 Use the mControlledClients list to drive controller start and stop logic. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
aaf7a2cb50
Bug 1425975 P6 Rename some service worker methods to not reference documents. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
81e3a5bfa7
Bug 1425975 P5 Make ServiceWorkerManager::RemoveRegistration assert there is no controlled document. r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
9354f0db20
Bug 1425975 P4 Make ServiceWorkerManager::UpdateClientControllers use mControlledClients. r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
d199c719ef
Bug 1425975 P3 Refactor ServiceWorkerManager::GetDocumentRegistration() to GetClientRegistration(). r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
0d02480ce1
Bug 1425975 P2 Add ServiceWorkerManager mControlledClients to track controlled ClientHandle references. r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
8b1b458cac
Bug 1428077 Make FinalChannelPrincipalIsValid always defined instead of only for MOZ_DIAGNOSTIC_ASSERT. r=baku
2018-01-04 17:35:41 -05:00
Lars T Hansen
b6e7d3a2ba
Bug 1423225 - Disable javascript.options.shared_memory. r=lth, r=jgraham, a=lizzard
2017-11-08 11:44:53 +01:00
Ben Kelly
6cb7f39713
Bug 1426162 Convert worker main script principal assertion to runtime check. r=baku
2018-01-03 10:56:14 -05:00
Csoregi Natalia
0bf10c4d4e
Backed out 14 changesets (bug 1425975) for M(5) permafails mochitest/test_ext_webrequest_filter.html. r=backout a=backout
...
Backed out changeset e6f4a2d1df9a (bug 1425975)
Backed out changeset 1e657fa97b71 (bug 1425975)
Backed out changeset 9e1544ec814d (bug 1425975)
Backed out changeset 0e50d9d1d069 (bug 1425975)
Backed out changeset fb89dbd922ba (bug 1425975)
Backed out changeset f2b451ce55d4 (bug 1425975)
Backed out changeset 4ce186c6d8f5 (bug 1425975)
Backed out changeset 6f520ab76d6a (bug 1425975)
Backed out changeset f091f5e182c4 (bug 1425975)
Backed out changeset 82d39ed8c831 (bug 1425975)
Backed out changeset df13eba47970 (bug 1425975)
Backed out changeset 553628a56e6a (bug 1425975)
Backed out changeset acf4d61babab (bug 1425975)
Backed out changeset b7ae11b5bce8 (bug 1425975)
2017-12-24 00:23:57 +02:00
Ben Kelly
a03dd3c968
Bug 1425975 P11 Fix test_workerupdatefound.html not to frame loading against SW activation and updatefound events. r=asuth
2017-12-22 21:09:19 -05:00
Ben Kelly
171584cc47
Bug 1425975 P10 Fix the test_skip_waiting.html mochitest to properly wait for active worker state. r=asuth
2017-12-22 21:09:19 -05:00
Ben Kelly
ae22e882e6
Bug 1425975 P9 Refactor MaybeCheckNavigationUpdate() to take a ClientInfo instead of a document. r=asuth
2017-12-22 21:09:19 -05:00
Ben Kelly
b09f6aba9a
Bug 1425975 P7 Use the mControlledClients list to drive controller start and stop logic. r=asuth
2017-12-22 21:09:19 -05:00
Ben Kelly
d05f2745d8
Bug 1425975 P6 Rename some service worker methods to not reference documents. r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
12e02a611a
Bug 1425975 P5 Make ServiceWorkerManager::RemoveRegistration assert there is no controlled document. r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
ef72634aa7
Bug 1425975 P4 Make ServiceWorkerManager::UpdateClientControllers use mControlledClients. r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
3db7469586
Bug 1425975 P3 Refactor ServiceWorkerManager::GetDocumentRegistration() to GetClientRegistration(). r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
5dbaaf5ed3
Bug 1425975 P2 Add ServiceWorkerManager mControlledClients to track controlled ClientHandle references. r=asuth
2017-12-22 21:09:18 -05:00
arthur.iakab
373adc6f0d
Merge Inbound to mozilla-central r=merge a=merge
2017-12-22 00:19:24 +02:00
Ben Kelly
b05397d47c
Bug 1401359 Disable SharedWorker if in windows that cannot access storage. r=baku
2017-12-21 10:50:27 -05:00
Florian Quèze
032c961e0a
Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs.
2017-12-21 11:08:17 +01:00
Eden Chuang
3fd3115e94
Bug 1423623 - Add telemetry for alternate data stream on service worker synthesized channels. r=bkelly, data-r=francois
...
1. Create a new telemetry scalar SW_ALTERNATIVE_BODY_USED_COUNT to count the
number of the alternative body used in service worker synthesized channels.
2. To report values of fetching related time of InterceptChannel according to
the detail subresource type. Now subresource/script, subresource/other,
subresource/image and subresource/stylesheet are provided, and keep using
subresource for other types.
2017-12-15 14:35:44 +08:00
Andrew McCreight
770567bc01
Bug 1410209, part 2 - Disambiguate some service worker runnable names. r=bkelly
...
With part 3, these names are used to identify the runnables to the
XPCOM leak checking system. There are some other classes that already
use a few of these names, so change them to something unique.
MozReview-Commit-ID: 5AN7tG5yKBk
--HG--
extra : rebase_source : a875c9c5f788e9c47e3b150d8fc31186caa591e4
2017-10-27 10:45:52 -07:00
Ben Kelly
0240c2751f
Bug 1426253 P3 Use the window/document GetController() method. r=asuth
2017-12-20 10:53:18 -05:00
Ben Kelly
7c2e00408e
Bug 1426253 P2 Use nsIDocument::GetClientInfo() where possible. r=asuth
2017-12-20 10:53:18 -05:00
Andrea Marchesini
797ef68515
Bug 1425463 - Expose Console API to JSM, r=smaug
2017-12-20 14:35:34 +01:00
Ben Kelly
81cb582d32
Bug 1425316 P6 Remove ServiceWorkerManager::ShouldReportToWindow(). r=asuth
2017-12-19 10:04:49 -05:00
Ben Kelly
36ae9f5253
Bug 1425316 P4 Note that a ClientSource has called register() for a SW scope and use it to match window console reports. r=asuth
2017-12-19 10:04:48 -05:00
Ben Kelly
6c3cec99d8
Bug 1425316 P3 Make nsGlobalWindowInner::ShouldReportForServiceWorkerScope() handle checks for controlled windows. r=asuth
2017-12-19 10:04:48 -05:00
Ben Kelly
63518babe9
Bug 1425316 P1 Expose a chrome-only Window.shouldReportForServiceWorkerScope() method that initially forwards to ServiceWorkerManager. r=asuth
2017-12-19 10:04:47 -05:00
Olli Pettay
d78d3295c5
Bug 1412775
- Implement Event.composedPath, r=stone
...
--HG--
extra : rebase_source : a970c4a0daac4a7a02cec34733131734eb93b151
2017-12-18 18:07:36 +02:00
Andrea Marchesini
b1b879f86e
Bug 1422316 - WorkerJSRuntime::Shutdown must call the base class ::Shutdown method, f=yoric, r=bkelly
2017-12-18 17:59:30 +01:00
Andrea Marchesini
6b58966a8e
Bug 1425509 - Initialize PerformanceService in RuntimeService, r=bkelly
2017-12-18 17:49:54 +01:00
Ben Kelly
c19591bc97
Bug 1424336 Convert mLoadingPrincipal assertion into a runtime check. r=baku
2017-12-18 10:35:45 -05:00
Ben Kelly
5811e89cc4
Bug 1424300 P3 Add a mochitest verifying we can recover if the script cache is deleted. r=edenchuang
2017-12-14 13:27:11 -05:00
Ben Kelly
aaa9e9567a
Bug 1424300 P2 Store response URLs in the service worker script cache. r=edenchuang
2017-12-14 13:27:11 -05:00
Ben Kelly
dcd091626b
Bug 1424300 P1 Gracefully handle when the service worker script cache exists, but is empty. r=edenchuang
2017-12-14 13:27:11 -05:00
Gurzau Raul
321347c110
Backed out 22 changesets (bug 1419771) for build bustage build/src/dom/base/FuzzingFunctions.cpp on a CLOSED TREE
...
Backed out changeset b2b7b46c8ad0 (bug 1419771)
Backed out changeset 0206657d2ea2 (bug 1419771)
Backed out changeset f0f4b98a07b6 (bug 1419771)
Backed out changeset 4b52904694f4 (bug 1419771)
Backed out changeset 9f40cc12d6c6 (bug 1419771)
Backed out changeset f500a61f564c (bug 1419771)
Backed out changeset 0bd9d964df8a (bug 1419771)
Backed out changeset 1397a6bbb446 (bug 1419771)
Backed out changeset 7e77a00fa8b5 (bug 1419771)
Backed out changeset 5f6df771459a (bug 1419771)
Backed out changeset 7624e70b2965 (bug 1419771)
Backed out changeset b9d674bdc723 (bug 1419771)
Backed out changeset 5e44aeda4196 (bug 1419771)
Backed out changeset 601b49f51b41 (bug 1419771)
Backed out changeset d12dc5557982 (bug 1419771)
Backed out changeset 6c863ab2e986 (bug 1419771)
Backed out changeset 0866d79873ab (bug 1419771)
Backed out changeset 8ecc91474621 (bug 1419771)
Backed out changeset 19b14deed8fe (bug 1419771)
Backed out changeset 000c8d5fbc03 (bug 1419771)
Backed out changeset 2e263a2519c5 (bug 1419771)
Backed out changeset b628d9298be8 (bug 1419771)
2017-12-13 23:41:49 +02:00
Andrea Marchesini
13441b7385
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 21 - Get rid of WorkerPrefs.h, r=asuth
2017-12-13 14:02:47 -06:00
Andrea Marchesini
d8578641ad
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 20 - DevTools enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
4dbb2feaf1
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 19 - Resist finger-printing enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
cd3be47aa8
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 18 - FetchObserver API enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
210efe6cb8
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 17 - Network Information enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
49aa47edd3
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 16 - Webkit/Blink directory picker enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
8ad8463643
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 15 - Offscreen Canvas enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
aba8740db3
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 14 - Request Context enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
04278a029a
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 13 - Streams API enabled, r=asuth
2017-12-13 14:02:46 -06:00
Andrea Marchesini
03cfc272e6
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 12 - Push enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
c9c405725a
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 11 - Promise Rejection Event enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
2ee056048d
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 10 - StorageManager enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
e21d3ed9a0
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 9 - ServiceWorker testing enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
3bb525bc3a
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 8 - ServiceWorkers enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
d2985dddf0
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 7 - Notification Request-Interaction enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
6577e4aae3
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 6 - Notification API enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
a1cad5ae6d
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 5 - Performance logging enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
9447a08bbc
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 4 - DOM Cache testing enabled, r=asuth
2017-12-13 14:02:44 -06:00
Andrea Marchesini
bd8d59c237
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 3 - DOM Caches enabled, r=asuth
2017-12-13 14:02:44 -06:00
Andrea Marchesini
33df556d46
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 2 - image bitmap, r=asuth
2017-12-13 14:02:44 -06:00
Andrea Marchesini
6b770adcfa
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 1 - dump enabled, r=asuth
2017-12-13 14:02:44 -06:00
Ben Kelly
af4aa7e6aa
Bug 1424943 Fix test_error_reporting.html not to race network vs Clients API. r=tt
2017-12-13 09:58:26 -05:00
Andrea Marchesini
5f1be317f0
Bug 1421094 - nsIUploadChannel2.cloneUploadStream returns the length of the stream, r=smaug
2017-12-12 18:38:19 -06:00
Ben Kelly
63c97930f1
Bug 1293277 P7 Make ServiceWorkerManager use ClientHandle::Control() for claiming and ClientSource::SetController() fire the controller change event. r=baku
2017-12-12 15:44:48 -05:00
Ben Kelly
890e126aaa
Bug 1293277 P6 Use the ClientInfo.Id() value for FetchEvent.clientId. r=baku
2017-12-12 15:44:48 -05:00
Ben Kelly
cfb0e62f7b
Bug 1293277 P5 Switch bindings over to new Client and Clients classes. r=baku
2017-12-12 15:44:47 -05:00
Ben Kelly
7fb7be80ac
Bug 1293277 P3 Remove the dom.serviceWorkers.openWindow.enabled pref. r=baku
2017-12-12 15:44:47 -05:00
Ben Kelly
6ba0d31fb9
Bug 1293277 P2 Cleanup test_openWindow.html mochitest service worker a bit. r=baku
2017-12-12 15:44:47 -05:00
Kyle Machulis
180e7d761c
Bug 1424571 - Move all notification tests to dom/notification; r=baku
...
Tests were split between dom/notification and
dom/test/mochitest/notification. Moving them all to the same place.
MozReview-Commit-ID: IP1YtIBmHcD
--HG--
rename : dom/tests/mochitest/notification/MockServices.js => dom/notification/test/mochitest/MockServices.js
rename : dom/tests/mochitest/notification/NotificationTest.js => dom/notification/test/mochitest/NotificationTest.js
rename : dom/tests/mochitest/notification/mochitest.ini => dom/notification/test/mochitest/mochitest.ini
rename : dom/tests/mochitest/notification/test_bug931307.html => dom/notification/test/mochitest/test_bug931307.html
rename : dom/tests/mochitest/notification/test_notification_basics.html => dom/notification/test/mochitest/test_notification_basics.html
rename : dom/tests/mochitest/notification/test_notification_storage.html => dom/notification/test/mochitest/test_notification_storage.html
2017-12-10 17:51:17 -08:00
Gurzau Raul
15f8898e50
Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
2017-12-09 00:56:50 +02:00
Gurzau Raul
91d3bc0100
Merge inbound to mozilla-central r=merge a=merge
2017-12-09 00:36:15 +02:00
Ben Kelly
65e9628fa6
Bug 1423913 P2 Make callers expect infallble CreateSource() and CreateHandle(). r=baku
2017-12-08 11:52:07 -05:00
Bill McCloskey
9f4d083047
Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
...
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Andrew McCreight
9cdfde0a5e
Bug 1409115 - Fix leaks by adding promise window proxy. r=bkelly
...
The service worker job queue can get stuck sometimes, so we don't want
the per-process service worker data structure to hold strong
references to content. Instead, I add a proxy that is only a weak
reference. The wrinkle is that we need to keep the promise alive as
long as the job and the window are otherwise alive. I solve this by
putting a cycle collected reference to the promise on the window
itself.
MozReview-Commit-ID: GbmCY4ZIQWk
--HG--
extra : rebase_source : 363ea865fd51bb44f3e727cd3469e316370e7cbc
2017-12-06 16:48:18 -08:00