Commit Graph

260 Commits

Author SHA1 Message Date
Kris Maglione
031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Kris Maglione
02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Narcis Beleuzu
561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione
cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Kris Maglione
636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Benjamin Bouvier
962d9c7182 Bug 1416723: Remove SIMD.js support; r=luke, r=nbp
--HG--
extra : rebase_source : d0af6d791d53015f9da0b70ebeda640a4ad5952a
2018-07-24 15:15:01 +02:00
Boris Zbarsky
2b22720daf Bug 1478390. Simplify service worker script cache code now that sandbox nsIGlobalObjects hold on to their JS global. r=mrbkap 2018-07-25 18:56:14 -04:00
Valentin Gosu
7937c7c4cc Bug 1476928 - Remove nsIURI.CloneIgnoringRef and nsIURI.CloneWithNewRef r=JuniorHsu
The patch introduces NS_GetURIWithNewRef and NS_GetURIWithNewRef which perform the same function.

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

--HG--
extra : moz-landing-system : lando
2018-07-23 11:28:47 +00:00
Andrea Marchesini
057b294956 Bug 1469566 - Port ServiceWorkers to WorkerRef - part 2 - KeepAliveHandler, r=bkelly 2018-07-13 18:26:29 +02:00
Andrea Marchesini
fbd07c7a9d Bug 1469566 - Port ServiceWorkers to WorkerRef - part 1 - LifeCycleEventWatcher, r=bkelly 2018-07-13 18:25:58 +02:00
Andrea Marchesini
bc5414c5f3 Bug 1471189 - Removing 'Terminating' state in workers, r=mrbkap 2018-07-12 19:33:41 +02:00
Andi-Bogdan Postelnicu
88cc63910d Bug 1453795 - DOM - Initialize member fields in classes/ structures. r=peterv
--HG--
extra : rebase_source : 249fc26e50bded4e94f5effa4308af0f1e54b908
2018-06-16 17:21:46 +03:00
Blake Kaplan
f88af095a8 Bug 1474898 - Fix typo in null-check. r=asuth
I probably should have caught this in review.

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

--HG--
extra : moz-landing-system : lando
2018-07-11 19:06:21 +00:00
Blake Kaplan
4188ff378b Bug 1473074 - Don't assume these are non-null. r=asuth
I guess because, in the old world, registrations were propagated everywhere we
could end up in a state with an old ServiceWorkerRegistrationInfo while our
ServiceWorkerRegistration thought that everything was up to date. I think that
what should eventually happen will be that when we eventually get our updated
Info, we'll update the state of the ServiceWorkerRegistration accordingly and
things should work themselves out.

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

--HG--
extra : moz-landing-system : lando
2018-07-11 21:11:01 +00:00
Ben Kelly
a99ba38721 Bug 1469048 Disable service worker propagation when e10s pref is enabled. r=mrbkap
--HG--
extra : rebase_source : f7a11d459a7f54ecc8b71746ff2810a7bb276692
2018-07-09 16:02:41 -07:00
Ben Kelly
87bf0f7f23 Bug 1459209 P15 Implement RemoteServiceWorkerContainerImpl::GetReady() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 119a1cb66828c3dbb21cce86aca67793f0657321
2018-07-09 16:02:41 -07:00
Ben Kelly
d7b64230f7 Bug 1459209 P14 Implement RemoteServiceWorkerContainerImpl::GetRegistrations() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 464a53e3e0c3eb37cdc7f4c73a43140fba4d5794
2018-07-09 16:02:41 -07:00
Ben Kelly
be03ee0457 Bug 1459209 P13 Implement RemoteServiceWorkerContainerImpl::GetRegistration() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 60f674e9d1d5c0701f6ed3145427ad8fc7012e55
2018-07-09 16:02:40 -07:00
Ben Kelly
4207daa618 Bug 1459209 P12 Implement RemoteServiceWorkerContainerImpl::Register() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 4c57b9b8006ab4378c5a0be4a7c13136152f80b0
2018-07-09 16:02:40 -07:00
Ben Kelly
e9dc1bae32 Bug 1459209 P11 Propogate registration state changes back from the parent to the child. r=mrbkap
--HG--
extra : rebase_source : 86bea6e7bcf6376d1fc5366a1a07b208f3805ce0
2018-07-09 16:02:40 -07:00
Ben Kelly
39b1a104c9 Bug 1459209 P10 Implement RemoteServiceWorkerRegistrationImpl::Unregister() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 8411bc26ff172a9888e040fc09b21cab745e4161
2018-07-09 16:02:40 -07:00
Ben Kelly
94f85205a9 Bug 1459209 P9 Implement RemoteServiceWorkerRegistrationImpl::Update() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 87d77ea7472b59b7e0d243d714ad19158cd7c332
2018-07-09 16:02:40 -07:00
Ben Kelly
6323d7c413 Bug 1459209 P8 Implement RemoteServiceWorkerImpl::PostMessage() across IPC and to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : d38628cc7b8822b4213c8034f0c1dd783585ddfb
2018-07-09 16:02:40 -07:00
Ben Kelly
fd93586372 Bug 1459209 P7 Scaffold a ServiceWorkerContainerProxy class to connect the parent actor to the main thread SWM. r=mrbkap
--HG--
extra : rebase_source : 4693118c6b7bfe93ea772e4ab21f79c6a2448598
2018-07-09 16:02:40 -07:00
Ben Kelly
5e3089171b Bug 1459209 P6 Scaffold a ServiceWorkerRegistrationProxy class to connect the parent actor to the main thread SWM. r=mrbkap
--HG--
extra : rebase_source : 355d278c7b891ae8de0a136d5c7db024ad0d0a76
2018-07-09 16:02:40 -07:00
Ben Kelly
d6345919a0 Bug 1459209 P5 Scaffold a ServiceWorkerProxy class to connect the parent actor to the main thread SWM. r=mrbkap
--HG--
extra : rebase_source : 555963a72a75785fc2aa43d7fa2abedeb758289d
2018-07-09 16:02:40 -07:00
Ben Kelly
e486332066 Bug 1459209 P4 Scaffold RemoteServiceWorkerRegistrationImpl to connect the binding registration to the actor. r=mrbkap
--HG--
extra : rebase_source : 6e113ac5ead01a50d8dcdd5c0124c42901b84c5e
2018-07-09 16:02:39 -07:00
Ben Kelly
9797d85bc5 Bug 1459209 P3 Scaffold RemoteServiceWorkerContainerImpl to connect the binding ServiceWorkerContainer to the PServiceWorkerContainerChild actor. r=mrbkap
--HG--
extra : rebase_source : b0a51ce7bbc1b9b27531584d0647ae28d56b15e2
2018-07-09 16:02:39 -07:00
Ben Kelly
09c855d41b Bug 1459209 P2 Scaffold RemoteServiceWorkerImpl to connect the binding ServiceWorker to the PServiceWorkerChild actor. r=mrbkap
--HG--
extra : rebase_source : 07ec45d8d019e708be144464302168ce331518e9
2018-07-09 16:02:39 -07:00
Ben Kelly
b970b0c8cc Bug 1459209 P1 Add IPC actor boilerplate for PServiceWorker, PServiceWorkerContainer, and PServiceWorkerRegistration. r=mrbkap
--HG--
extra : rebase_source : 10106a76c6e9188238a89821d59bdcbf4eedbab6
2018-07-09 16:02:39 -07:00
Andrea Marchesini
d983dd1bcd Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 6 - DOM cache, r=ehsan 2018-07-10 10:09:59 +02:00
Margareta Eliza Balazs
c37b51f523 Backed out 9 changesets (bug 1469993) for causing bustage in build/srcdom/base/nsGlobalWindowInner.cpp on a CLOSED TREE
Backed out changeset e89192032fe2 (bug 1469993)
Backed out changeset 4b261595099d (bug 1469993)
Backed out changeset 37182cfe869c (bug 1469993)
Backed out changeset 5b9870995c73 (bug 1469993)
Backed out changeset 55499fcd9738 (bug 1469993)
Backed out changeset 8c1c838d54ba (bug 1469993)
Backed out changeset 12b9c8bfa41f (bug 1469993)
Backed out changeset 04ab7d6c169a (bug 1469993)
Backed out changeset 53885d61244e (bug 1469993)
2018-07-10 11:32:34 +03:00
Andrea Marchesini
dd80ba24d3 Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 6 - DOM cache, r=ehsan 2018-07-10 10:09:59 +02:00
Ben Kelly
d2e065fc4e Bug 1472005 Don't resolve ready promise until the registration has reached the right state version. r=mrbkap 2018-07-05 13:13:48 -04:00
Ben Kelly
4405c076b5 Bug 1471929 P3 Remove the old updatefound infrastructure in favor of always updating the registration state and auto-dispatch. r=mrbkap 2018-07-05 13:13:48 -04:00
Ben Kelly
d7514a28d7 Bug 1471929 P2 Delay dispatching updatefound events until any pending update() promises resolve. r=mrbkap 2018-07-05 13:13:47 -04:00
Ben Kelly
31107e3988 Bug 1471929 P1 Automatically fire updatefound events when the ServiceWorkerRegistration gets a new installing worker. r=mrbkap 2018-07-05 13:13:47 -04:00
Ben Kelly
1ab4221865 Bug 1471912 Set ServiceWorker objects to redundant state when RegistrationRemoved() is called. r=mrbkap 2018-07-05 13:13:47 -04:00
Ben Kelly
fd8f441dbc Bug 1472008 Make ServiceWorkerRegistration.unregister() resolve false instead of rejecting for most errors. r=mrbkap 2018-06-28 14:18:00 +03:00
Ben Kelly
8dacbc94b9 Bug 1471706 P2 Maintain a version list of ServiceWorkerRegistrationInfo state changes. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly
c38d6a18a2 Bug 1471706 P1 Track each registration state change with a version number stored on the descriptor. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly
241115d614 Bug 1471631 Move ServiceWorkerManager::AddRegistrationEventListener() code to ServiceWorkerRegistrationInfo. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly
4b564b329e Bug 1462772 P5 Remove now-unused Listener logic in ServiceWorkerInfo. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
aa573bca77 Bug 1462772 P4 Route ServiceWorker state changes through the ServiceWorkerRegistration. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
f3b6e1d527 Bug 1462772 P3 Make ServiceWorker binding objects get or create a handle to their associated registration. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
4866ecedf2 Bug 1462772 P2 Add the registration Id to the ServiceWorkerDescriptor. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
78b42d6228 Bug 1469873 Make ClientSource::Control() fail if storage access is not available and make claim() respect the result. r=mrbkap 2018-06-28 12:58:23 -07:00
Brindusan Cristian
c20abdcc34 Backed out changeset b610acdb4ead (bug 1469873) for mochitest crashes on xul.dll. CLOSED TREE 2018-06-28 20:09:59 +03:00
Brindusan Cristian
bdd678b8f1 Backed out 2 changesets (bug 1394102) for wpt failures on sw.https.window.html. CLOSED TREE
Backed out changeset bad873c0dbbe (bug 1394102)
Backed out changeset afbadca69031 (bug 1394102)
2018-06-28 20:08:54 +03:00
Andrea Marchesini
d4f78055f3 Bug 1394102 - FetchEvent Request.signal should be aborted when the corrisponding nsIChannel is canceled r=bkelly 2018-06-27 14:51:43 +02:00