Ben Kelly
d078a74225
Bug 1343308 P1 Make Clients.matchAll() only return Clients controlled by the current service worker. r=baku
2017-03-01 13:08:54 -05:00
Ben Kelly
bc8430a393
Bug 1266747 P3 Sort output of Clients.matchAll(). r=smaug
2017-02-28 22:12:27 -05:00
Sebastian Hengst
6742a18dac
Backed out changeset 274999e28c07 (bug 1266747)
2017-02-28 18:54:20 +01:00
Ben Kelly
b0c03e2291
Bug 1266747 P3 Sort output of Clients.matchAll(). r=smaug
2017-02-28 10:48:51 -05:00
Ben Kelly
368c49fb52
Bug 1341040 Rename ServiceWorkerInfo::GetPrincipal() to Principal(). r=baku
2017-02-20 10:31:32 -05:00
Ben Kelly
9870ee52bd
Bug 1339823 Create a pristine principal in ServiceWorkerPrivate::SpawnWorkerIfNeeded(). r=baku
2017-02-20 09:31:24 -05:00
Carsten "Tomcat" Book
4d70a3c289
Backed out changeset 59e30ba1b38f (bug 1339823) on a CLOSED TREE
2017-02-20 15:26:36 +01:00
Ben Kelly
ba8958dea5
Bug 1339823 Create a pristine principal in ServiceWorkerPrivate::SpawnWorkerIfNeeded(). r=baku
2017-02-20 09:05:55 -05:00
Ben Kelly
a94d509588
Bug 1337543 P0 Sanitize the nsIPrincipal used to register a service worker to ensure CSP is not persisted. r=baku
2017-02-14 10:06:38 -05:00
Andrea Marchesini
48c7650f3b
Bug 1335678 - Revert patch for bug 1302566, r=ehsan
2017-02-06 16:37:15 +01:00
Tom Tung
c08930401f
Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly.
2017-02-06 09:19:34 +08:00
Ben Kelly
4d4e22fbfd
Bug 1336529 Handle ServiceWorkerInfo destruction while released KeepAliveToken. r=asuth
2017-02-03 14:36:27 -05:00
Ben Kelly
e86b60fd3e
Bug 1335414 Make ServiceWorkerManager::CreateNewRegistration() safer. r=asuth
2017-01-31 07:29:34 -08:00
Andrea Marchesini
468f997f6f
Bug 1302566 - Get rid of nsContentUtils::IsInPrivateBrowsing, r=ehsan
2017-01-27 16:53:44 +01:00
Sebastian Hengst
e21ce67e10
Backed out changeset 2e942ed64921 (bug 1302566) for mass test failures after asserting isPrivate == mRespectPrivacy at imgLoader.cpp:2072. r=backout on a CLOSED TREE
2017-01-23 13:25:19 +01:00
Andrea Marchesini
dab8349d74
Bug 1302566 - Get rid of nsContentUtils::IsInPrivateBrowsing, r=ehsan
2017-01-23 12:36:01 +01:00
Ben Kelly
a76506c622
Bug 1331656 Make ServiceWorkerManager handle PBackground init failure. r=baku
2017-01-18 12:18:51 -08:00
David Parks
aad6af2292
Bug 1312788 - Log to browser console and telemetry if the parent content to a ServiceWorker is a file. r=bkelly
...
Info is useful to sandboxing. Logs when ServiceWorker is registered (i.e. each run), not just when it is installed.
2017-01-10 15:17:13 -08:00
Ben Kelly
e93380c6c0
Bug 1330679 Don't force crash if ServiceWorkerManager tries to init during browser shutdown. r=baku
2017-01-13 07:39:30 -08:00
Ben Kelly
f338b42112
Bug 1330673 Gracefully handle ServiceWorkerRegistrar not being active. r=baku
2017-01-13 07:39:28 -08:00
Ben Kelly
98ea6e67f7
Bug 1330747 Always nullptr check return value from ServiceWorkerManager::GetInstance(). r=asuth
2017-01-12 14:00:36 -08:00
Andrea Marchesini
46a9207d60
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Ben Kelly
27b7ec41a8
Bug 1329716 Try to ensure we don't dispatch a SW event if the registration has been removed. r=asuth
2017-01-09 13:40:46 -08:00
Ben Kelly
a50f3bedc3
Bug 1329759 Gracefully handle a missing active service worker during interception. r=asuth
2017-01-09 13:40:46 -08:00
Ho-Pang Hsu
e6a5e45d91
Bug 1290944 - Part 3.2: Pass LOAD_BYPASS_CACHE caused by script expiration timer to ServiceWorkerInfo. r=bkelly
2017-01-04 17:08:58 +08:00
Ho-Pang Hsu
bdcbdfa0ee
Bug 1290944 - Part 3.1: Propogate load flags to ServiceWorkerInfo. r=bkelly
2017-01-04 17:08:55 +08:00
Ho-Pang Hsu
531cc278ae
Bug 1290944 - Part 2.3: Set the load flags when registering a service worker. r=bkelly
2017-01-04 17:08:51 +08:00
Ho-Pang Hsu
9531839afe
Bug 1290944 - Part 2.1: Save load flags in ServiceWorkerRegistration. r=bkelly
2017-01-04 17:08:43 +08:00
Yoshi Huang
13130453ba
Bug 1324115 - Part 2: replace the callers to use C++ helper. r=smaug
2016-12-21 14:59:21 +08:00
Catalin Badea
89dcbf3918
Bug 1181127 - Don't run service workers for fetch events if no fetch handlers were added during script's evaluation. r=bkelly
...
Display a warning when event listeners are added after the script's evaluation.
2016-12-19 04:38:53 +02:00
Catalin Badea
acbc14d028
Bug 1317266 - Transition ServiceWorker instances when the SW changes states instead of just invalidating them. r=bkelly
2016-11-21 02:14:54 +00:00
Andrea Marchesini
9543422488
Bug 1289001 - NeckoParent::GetValidatedAppInfo should consider ServiceWorkers when validating HttpChannel requests, r=bkelly, r=valentin, f=asuth
2016-11-03 08:18:51 +01:00
Sebastian Hengst
f752a66b1e
Backed out changeset 0473f2d0d024 (bug 1289001) for eslint failures. r=backout on a CLOSED TREE
2016-11-02 23:04:44 +01:00
Andrea Marchesini
14fd7d346f
Bug 1289001 - NeckoParent::GetValidatedAppInfo should consider ServiceWorkers when validating HttpChannel requests, r=bkelly, r=valentin, f=asuth
2016-11-02 21:57:45 +01:00
Geoff Brown
131dda1304
Bug 1313397 - Move browser/components/sessionstore/Utils.jsm to toolkit/modules; r=mikedeboer
2016-11-02 10:56:20 -06:00
Yoshi Huang
85db56b906
Bug 1237152 - rename clear-origin-data to clear-origin-attributes-data, r=smaug
...
find \( -name '*.cpp' -o -name '*.h' -o -name '*.js' -o -name '*.jsm' -o -name '*.idl' -o -name '*.html' \) \
-a -type f -exec sed -i 's/clear-origin-data/clear-origin-attributes-data/g' {} \;
2016-10-07 17:45:10 +08:00
Tom Tung
1f61d7f9c3
Bug 1187335 - P1 - Add a way to report error to all clients for ServiceWorker and SharedWorker. r=bkelly.
2016-05-23 14:56:46 +08:00
Nicholas Nethercote
887efe04d5
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
2016-09-01 15:01:16 +10:00
Gabriele Svelto
71d5cdbf24
Bug 1296579 - Remove the SimplePush API r=kitcambridge,baku
2016-09-01 20:17:03 +02:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Ben Kelly
b24a2b5956
Bug 1290116 P5 Make navigator.serviceWorker.getRegistrations() ignore uninstalling registrations. r=asuth
2016-08-18 07:12:09 -07:00
Ben Kelly
ca8eadc0f2
Bug 1290116 P3 Delay removing registration until active worker is idle. r=asuth
2016-08-18 07:12:09 -07:00
Ben Kelly
f2ea56a5f0
Bug 1290116 P2 Clean up ServiceWorkerManager::StopControllingADocument(). r=asuth
2016-08-18 07:12:08 -07:00
Phil Ringnalda
6ef267a68f
Backed out 10 changesets (bug 1290116, bug 1293690) for build bustage
...
CLOSED TREE
Backed out changeset bbc14d107fca (bug 1290116)
Backed out changeset a81b6ce5c25f (bug 1290116)
Backed out changeset e0b9c25b6125 (bug 1290116)
Backed out changeset 8e9a9ba04ce5 (bug 1290116)
Backed out changeset 2d5ad5e9ed20 (bug 1290116)
Backed out changeset eb7da0dbfc72 (bug 1290116)
Backed out changeset 6a4e8c92faae (bug 1290116)
Backed out changeset 0342d98afa10 (bug 1293690)
Backed out changeset d84b0768f0ce (bug 1293690)
Backed out changeset f9f62ade9508 (bug 1293690)
2016-08-17 21:16:43 -07:00
Ben Kelly
c719176595
Bug 1290116 P5 Make navigator.serviceWorker.getRegistrations() ignore uninstalling registrations. r=asuth
2016-08-17 20:03:21 -07:00
Ben Kelly
648435d823
Bug 1290116 P3 Delay removing registration until active worker is idle. r=asuth
2016-08-17 20:03:21 -07:00
Ben Kelly
e58b12d4e1
Bug 1290116 P2 Clean up ServiceWorkerManager::StopControllingADocument(). r=asuth
2016-08-17 20:03:20 -07:00
Nicholas Nethercote
0550795f93
Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
...
This patch makes the following changes on many in-class methods.
- NS_IMETHODIMP F() override; --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final; --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...} --> NS_IMETHOD F() final {...}
Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.
2016-08-08 10:54:47 +10:00
Kaku Kuo
bcb7169ac7
Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz
...
MozReview-Commit-ID: KNbxVcCVqts
2016-08-09 17:15:13 +08:00
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00