Commit Graph

439 Commits

Author SHA1 Message Date
Andrew Sutherland
af016de2cb Bug 1272436 - P0: Implement "only-if-cached" RequestCache mode. r=mayhemer, r=bkelly, r=bzbarsky for WebIDL change
The fetch spec has re-introduced "only-if-cached" mode which loads only from
the cache.  There are privacy implications to this so for the time being it
is required that "same-origin" mode is used.
2016-06-08 12:10:15 -04:00
Kit Cambridge
d9d287a14e Bug 1265841 - Implement the notificationclose service worker event. r=wchen,baku
MozReview-Commit-ID: EQfCbQKqn9H

--HG--
extra : rebase_source : 2dad51a3c148db794769fb7c64c28f81ea2ca6ff
extra : histedit_source : 254e2e372ba605f74c1f5106f40b207e492e85e1
2016-04-19 22:04:09 -07:00
Ben Kelly
05565765eb Bug 1254741 P2 Don't aggressively terminate service workers when last controlled window is closed. r=baku 2016-05-23 02:46:26 -07:00
Andrea Marchesini
b4fdf724ae Bug 1268393 - Some compilation issues in ServiceWorker code, r=ehsan 2016-04-29 09:01:22 +08:00
Jonathan Watt
2bb448cbb2 Bug 1267509 - Make nsContentSecurityManager::IsURIPotentiallyTrustworthy act on an nsIPrincipal. r=bz
MozReview-Commit-ID: Zu1zU4Brkx

--HG--
rename : dom/security/test/unit/test_isURIPotentiallyTrustworthy.js => dom/security/test/unit/test_isOriginPotentiallyTrustworthy.js
2016-04-26 11:30:43 +01:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Ben Kelly
e5a1d1af80 Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz 2016-04-24 08:11:32 -07:00
Phil Ringnalda
296f3a95c3 Back out 4 changesets (bug 1265771, bug 1266857) for leaks in browser_DownloadPDFSaver.js on Windows
CLOSED TREE

Backed out changeset a0c85ccffafd (bug 1266857)
Backed out changeset 1cf8785bdc0c (bug 1265771)
Backed out changeset e411c3ccd7b6 (bug 1265771)
Backed out changeset a298cd2c9417 (bug 1265771)
2016-04-22 21:27:11 -07:00
Ben Kelly
b4090694b7 Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly
d78f4aec16 Bug 1265795 P3 Assert that controlled documents have an outer window. r=bz 2016-04-21 16:10:40 -07:00
Ben Kelly
7ccf656ad3 Bug 1265761 Clients.matchAll() should treat http windows as secure if devtools are open and http testing is enabled. r=ehsan 2016-04-19 11:22:16 -07:00
Ben Kelly
a9a4f7363c Bug 1263307 P2 Make ServiceWorkerRegistrationInfo worker members private. r=jdm 2016-04-17 04:29:53 -07:00
Ben Kelly
6f3adcd11b Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm 2016-04-08 17:28:25 -07:00
Wes Kocher
06cdc2f4b8 Backed out changeset c24f78610523 (bug 1260591) for build bustage on at least Windows CLOSED TREE
MozReview-Commit-ID: AlLfu3CM10S

--HG--
extra : amend_source : ebac1dd7e8731db98da1bf286e7a88bee5c4e171
2016-04-08 16:03:54 -07:00
Ben Kelly
60056e5afe Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm 2016-04-08 15:43:11 -07:00
Ben Kelly
807cba86ca Bug 1256428 P17 Rename service worker job classes to remove "2" suffix. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly
bd0809f521 Bug 1256428 P12 ServiceWorkerUnregisterJob2 should not use ServiceWorkerManager internals. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly
6bdc298a74 Bug 1256428 P10 Remove ServiceWorkerRegistrationInfo::mUpdating flag. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly
1bafe887a8 Bug 1256428 P9 Remove now unused code from ServiceWorkerManager.cpp. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly
7358d7c977 Bug 1256428 P6 Use ServiceWorkerJobQueue2 and new job classes in ServiceWorkerManager. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly
b49ff12e19 Bug 1261776 Use SafeElementAt() in service worker job queue. r=ehsan 2016-04-06 10:21:36 -07:00
Kit Cambridge
4d03aea7f9 Bug 1255621 - Ignore service workers previously registered in non-private windows. r=bkelly
MozReview-Commit-ID: 8ncS62nJKVD

--HG--
extra : rebase_source : c06bc3a1595e3f5c42ce9dfc1ca78a0845c1c599
2016-04-01 14:17:07 -07:00
John Dai
059fdf21d7 Bug 1220757 - Add report to console when service worker register fails due to mismatching scope path.r=bkelly
MozReview-Commit-ID: 9hRBzWtSAd2

--HG--
extra : rebase_source : 8552934879813ac2bd6ca828b3a2ec99b35893df
2016-03-31 23:08:45 -07:00
Kit Cambridge
c92c8e5179 Bug 1247089 - Add a mode to ReportToConsoleNonLocalized that ignores the calling location. r=bkelly
MozReview-Commit-ID: 3hAP7IgNxYs

--HG--
extra : rebase_source : fa07988a1359863ba12383055a6fbb81722f1363
2016-03-10 20:28:41 -08:00
Kit Cambridge
d55b21e98b Bug 1246341 - Report push event errors and rejections to the Push service. r=baku
MozReview-Commit-ID: D6fRPqojOEh

--HG--
extra : rebase_source : 41c55862cb7393681fdea28e35b689a970a376c3
2016-03-28 11:50:39 -07:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Ben Kelly
9856db4da2 Bug 1256411 Simplify and cleanup ServiceWorkerInfo. r=ehsan 2016-03-15 07:29:56 -07:00
Ehsan Akhgari
ac9a100c66 Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer 2016-03-11 14:40:33 -05:00
Ryan VanderMeulen
e98112b9bd Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)

CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari
9874b83667 Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer 2016-03-10 17:29:11 -05:00
Wes Kocher
53011a6a05 Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)

MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari
fded90051d Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer 2016-03-09 16:42:53 -05:00
Ben Kelly
8324a752f1 Bug 1253738 P3 Use origin the ServiceWorkerManager scope key. r=baku 2016-03-08 06:55:41 -08:00
Ben Kelly
e9e35aeba9 Bug 1253738 P2 Consistently use "scope key" terminology in ServiceWorkerManager. r=baku 2016-03-08 06:55:41 -08:00
Ben Kelly
7ebbd928f1 Bug 1253738 P1 Require an explicit principal when looking up a service worker registration. r=baku 2016-03-08 06:55:41 -08:00
Ben Kelly
a9358d515b Bug 1252055 P1 Make equivalent ServiceWorker DOM objects strictly equal in js. r=ehsan 2016-03-03 19:37:57 -05:00
dimi
f4133f869a Bug 1237992 - service worker activate should be executed after install onstatechange events are fired. r=bkelly 2016-02-25 09:03:28 +08:00
Ben Kelly
eee3c799da Bug 1242482 P4 Don't call SendUnregister() a second time when SW registration is finally removed. r=baku
--HG--
extra : rebase_source : 88a0529fab3ab7e14a44573126c067877f5073d2
2016-02-15 13:40:00 +01:00
Ben Kelly
c7c4fb325b Bug 1242482 P3 Don't send unregister messages when triggered from a PropagateUnregister(). r=baku
--HG--
extra : rebase_source : bca7c0517ca06a7daf44117148309af64f75f29e
2016-02-20 07:03:00 +01:00
Ben Kelly
b81860f65d Bug 1242482 P2 Don't SendUnregister() if registration is already removed. r=baku
--HG--
extra : rebase_source : caea92dfbacc7f3d76b260905c467d6351dd890d
2016-02-12 14:21:00 +01:00
Kyle Huey
31dabb4558 Bug 1247117: De-namespace much of IndexedDB. r=baku 2016-02-16 13:46:08 -08:00
Ben Kelly
482fdc1b5f Bug 1247436 Ensure service worker registration is persisted if its resurrected from a pending uninstall. r=baku 2016-02-11 06:23:11 -08:00
Ben Kelly
73fb651fae Bug 1238954 P1 Purge potentially controlled document entries when evicting service worker registrations. r=ehsan 2016-02-09 19:33:40 -08:00
dimi
79e7aac574 Bug 1241929 - remove PurgeActiveWorker() from install job when skip waiting is set. r=bkelly 2016-02-03 14:37:55 +08:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ehsan Akhgari
fbf2580b8c Bug 1197379 - Remove support for intercepting app:// URIs using service workers; r=jdm 2016-01-27 15:26:27 -05:00
Kit Cambridge
9e4ed15128 Bug 1239584, Part 1 - Add nsIPushNotifier and nsIPushMessage interfaces. r=dragana
--HG--
extra : commitid : HD2fDINypFu
extra : rebase_source : 477ab56822deb5e6423c8f9b36f1a5c119d07951
2016-01-13 22:19:51 -07:00