Csoregi Natalia
783947af6e
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
78b41c2582
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
697439370a
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
6868473b60
Bug 1425975 P6 Rename some service worker methods to not reference documents. r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
0967a1dad1
Bug 1425975 P5 Make ServiceWorkerManager::RemoveRegistration assert there is no controlled document. r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
b840c542ef
Bug 1425975 P4 Make ServiceWorkerManager::UpdateClientControllers use mControlledClients. r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
80f529517a
Bug 1425975 P3 Refactor ServiceWorkerManager::GetDocumentRegistration() to GetClientRegistration(). r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
204564e1f6
Bug 1425975 P2 Add ServiceWorkerManager mControlledClients to track controlled ClientHandle references. r=asuth
2017-12-22 21:09:18 -05:00
Ben Kelly
8ba00b8688
Bug 1426253 P3 Use the window/document GetController() method. r=asuth
2017-12-20 10:53:18 -05:00
Ben Kelly
210ae1bc94
Bug 1426253 P2 Use nsIDocument::GetClientInfo() where possible. r=asuth
2017-12-20 10:53:18 -05:00
Ben Kelly
4524db6bb4
Bug 1425316 P6 Remove ServiceWorkerManager::ShouldReportToWindow(). r=asuth
2017-12-19 10:04:49 -05:00
Ben Kelly
f3253e898f
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
51179207eb
Bug 1425316 P3 Make nsGlobalWindowInner::ShouldReportForServiceWorkerScope() handle checks for controlled windows. r=asuth
2017-12-19 10:04:48 -05:00
Ben Kelly
f01ec2b5b5
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
Ben Kelly
bdc4d69fb6
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
a94ff42d24
Bug 1293277 P6 Use the ClientInfo.Id() value for FetchEvent.clientId. r=baku
2017-12-12 15:44:48 -05:00
Ben Kelly
51aca07dfc
Bug 1293277 P5 Switch bindings over to new Client and Clients classes. r=baku
2017-12-12 15:44:47 -05:00
Gurzau Raul
08cab4f288
Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
2017-12-09 00:56:50 +02:00
Ben Kelly
1b9792a883
Bug 1423913 P2 Make callers expect infallble CreateSource() and CreateHandle(). r=baku
2017-12-08 11:52:07 -05:00
Andrew McCreight
4d6f3c65a3
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
2017-12-06 16:48:18 -08:00
Tom Tung
fd4cb671b0
Bug 1418376: Report to the console if a service worker is blocked because the storage is not fully allow. r=bkelly
2017-11-29 09:29:55 +08:00
Ben Kelly
1928345b3c
Bug 1423412 P1 Actually mark window/worker ClientSource objects controlled when loaded with a controlling service worker. r=baku r=jld
2017-12-05 20:45:22 -05:00
Cosmin Sabou
369f0175e7
Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
...
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Andrea Marchesini
f2d4a8cfc0
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 9 - ServiceWorker testing enabled, r=asuth
2017-11-30 18:16:45 +01:00
Nika Layzell
5d2b3a7e28
Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug
...
These were originally exposed directly as static methods on nsGlobalWindow, but
as they are clearly associated with either the inner or outer window, it makes
more sense for them to be called as such.
MozReview-Commit-ID: LFq8EfnhDlo
2017-11-09 10:44:47 -05:00
Nika Layzell
d8c117bc28
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Bevis Tseng
b163a5642f
Bug 1413466 - Fire events after iterating ServiceWorkerManager::mControlledDocuments is done. r=bkelly
...
It's possible to modify mControlledDocuments from oncontrollerchange handler.
We should fire events after iteration to prevent updating this hashtable while reading it.
2017-11-01 15:18:23 +08:00
Ben Kelly
2f256c5390
Bug 1412015 P3 Check ResetInterception result and CancelInterception if a failure occurs. r=asuth
2017-10-30 10:30:01 -04:00
Andrea Marchesini
cc531a6e90
Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 15 - ServiceWorkers, r=asuth
2017-10-24 12:02:41 +02:00
Masatoshi Kimura
e29c3d5a3e
Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
...
MozReview-Commit-ID: 7JoD4VYzZp3
2017-10-21 23:53:02 +09:00
Kris Maglione
7cdbf75d48
Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
...
MozReview-Commit-ID: 8Oei6TuXNbu
2017-10-15 23:15:40 -07:00
Kris Maglione
7b017c97d6
Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
...
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.
Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.
As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.
MozReview-Commit-ID: LqD9GxdzMte
2017-10-12 15:43:55 -07:00
Andrea Marchesini
792189dd57
Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug
2017-08-06 20:47:00 +03:00
Ben Kelly
948ebc622d
Bug 1336364 P9 Block storage denied windows from ServiceWorker.postMessage() and clients.matchAll(). r=asuth
2017-09-20 09:24:07 -07:00
Ben Kelly
f5bc2bd861
Bug 1336364 P6 Ensure that we don't control a document if its window cannot access storage. r=asuth
2017-09-20 09:24:07 -07:00
Ben Kelly
bd8ef4ab41
Bug 1336364 P5 Disable service worker getRegistrations() if storage is disallowed for a window. r=asuth
2017-09-20 09:24:07 -07:00
Ben Kelly
e41672cc04
Bug 1336364 P4 Disallow service worker register() is storage is forbidden for the window. r=asuth
2017-09-20 09:24:07 -07:00
David Parks
d67acde44c
Bug 1397445: Remove expiring FILE_EMBEDDED_SERVICEWORKERS telemetry probe. r=bkelly
...
This measured service workers registered in https iframes contained in file:// pages.
2017-09-08 11:21:27 -07:00
Bevis Tseng
ebd315c07c
Bug 1384034 - Label UpdateTimerCallback in ServiceWorkerManager. r=bkelly
...
Label with SystemGroup because UpdateTimerCallback only sends an IPC message
to the parent without touching any web contents.
2017-08-29 17:59:01 +08:00
Ho-Pang Hsu
1153df23ab
Bug 1353636 - Part 3: Update SERVICEWORKERREGISTRAR_VERSION and a related gtest. r=bkelly
2017-08-17 15:29:26 +08:00
Ho-Pang Hsu
a6182fce1d
Bug 1353636 - Part 1: Move from nsLoadFlags to UpdateViaCache. r=bkelly
2017-08-16 14:18:52 +08:00
Nicholas Nethercote
723f585d9c
Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
...
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.
The patch also removes a couple of unused declarations from
nsIStringBundle.idl.
Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.
2017-08-04 14:40:52 +10:00
Bevis Tseng
59627df038
Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
2017-07-27 02:18:20 +08:00
Mats Palmgren
64658a0f83
Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
...
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
238bf154d5
Backed out changeset 4f6302a98ae4 (bug 1372405)
2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Mats Palmgren
dd5298e9b8
Bug 1372317 part 2 - Replace LookupRemoveIf() calls with Lookup() + entry.Remove() where needed. r=froydnj
...
MozReview-Commit-ID: AoRNdbzh66c
2017-06-18 17:07:54 +02:00