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
30fe75b00c
Bug 1337522 P2 Set ServiceWorker principal earlier. r=baku
2017-02-14 10:06:39 -05:00
Ben Kelly
9615ced41a
Bug 1337543 P1 ServiceWorker should not inherit CSP from registration principal. r=baku
2017-02-14 10:06:38 -05:00
Ben Kelly
e45c2b5a25
Bug 1339116 Improve the ServiceWorkerPrivate timer code. r=asuth
2017-02-14 08:49:44 -05:00
Sebastian Hengst
2e17e6ceb2
Backed out changeset f4f59e7c1be7 (bug 1337543) for crashing in various mochitest and web-platform-tests, e.g. dom/security/test/csp/test_child-src_worker.html. r=backout on a CLOSED TREE
2017-02-13 19:00:56 +01:00
Ben Kelly
bcf5b79b92
Bug 1337543 P1 ServiceWorker should not inherit CSP from registration principal. r=baku
2017-02-13 12:15:58 -05:00
Catalin Badea
5facd19eb2
Bug 1337033 - Remove code handling MIME input streams with bodies that contain headers. r=bkelly
2017-02-10 14:10:59 +00:00
Tim Huang
b3fb2c8458
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
2017-02-07 11:49:34 +08:00
Ben Kelly
4d4e22fbfd
Bug 1336529 Handle ServiceWorkerInfo destruction while released KeepAliveToken. r=asuth
2017-02-03 14:36:27 -05:00
Andrea Marchesini
f0aa583269
Bug 1336020 - transferables should be arrays of objects, r=smaug
2017-02-03 11:00:38 +01:00
Andrea Marchesini
21b2cb9c61
Bug 1336020 - postMessages should have transferable as [] by default, r=smaug
2017-02-03 11:00:37 +01:00
Catalin Badea
0156476d98
Bug 1316659 - Use OpenWindowRunnable as an observer when waiting for fennec to start before executing an open window operation. r=bkelly
...
This patch also changes the order in which pending openWindow operations
are executed.
2017-01-31 14:21:52 +00:00
Ben Kelly
8cca8b45c7
Bug 1334480 Don't try to update a nullptr registration. r=asuth
2017-01-27 12:04:24 -08:00
Wes Kocher
397df34387
Merge inbound to central, a=merge
...
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Ben Kelly
d009de5f67
Bug 1319278 P4 Make ServiceWorkerPrivate use new WorkerControlEventTarget instead of TimeThreadEventTarget. r=baku
2017-01-26 08:01:33 -08:00
Kartikaya Gupta
a2a492cb06
Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj
...
MozReview-Commit-ID: 5yt3O4Hoois
2017-01-25 14:51:34 -05:00
Ben Kelly
98ea6e67f7
Bug 1330747 Always nullptr check return value from ServiceWorkerManager::GetInstance(). r=asuth
2017-01-12 14:00:36 -08: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
Ho-Pang Hsu
959d5c5f2b
Bug 1290944 - Part 3.3: Propagate load flags to ScriptLoader when loading scripts. r=bkelly
2017-01-04 17:09:00 +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
Tomislav Jurin
9ff3007b90
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Tom Tung
61f436a667
Bug 1271692 - Do not fail event processing if an exception is thrown in ServiceWorker. r=bkelly
2016-11-10 17:53:24 +08:00
Catalin Badea
0c681a21b7
Bug 1263304 - Allow waitUntil() to be called asynchronously. r=bkelly
...
The behaviour is changed in two ways:
1. waitUntil() will now wait for each promise separately, even if one of
them is rejected.
2. Extensions can be added asynchronously as long there is a pending
waitUntil promise.
2016-11-21 02:14:53 +00:00
Catalin Badea
8aac870108
Bug 1263304 - Move Service Worker MessageEvent dispatching code to ServiceWorkerPrivate. r=bkelly
...
This refactoring makes it easier to modify the behaviour of lifetime
extensions by having a single call path for all extendable events.
2016-11-21 02:14:53 +00:00
Boris Zbarsky
7605afb76e
Bug 1317990. Remove Event::IsChrome in favor of passing CallerType arguments. r=smaug,bkelly
2016-11-16 14:10:22 -05:00
Thomas Nguyen
5e424350fb
Bug 1264792 - Update request'referrer policy when redirect.r=bkelly,dragana.
...
MozReview-Commit-ID: 3V6W0fuRomZ
2016-11-14 15:15:32 +08:00
Tom Tung
8224b73089
Bug 1264178 - Part 1: Expose URL fragment to request but not response. r=bkelly
2016-11-07 10:16:34 +08:00
Dylan Roeh
35a3c1acef
Bug 1262251 - Make openWindow() launch Fennec if it isn't already running. r=catalinb
2016-10-31 14:10:25 -05:00
Arthur Edelstein
4e271d1b40
Bug 1268726 - isolate shared worker by first party domain. r=baku
...
Tor 15564: Isolate SharedWorker by first party domain
uplift/refactor by Dave Huseby <[email protected] >
review tweaks
2016-09-19 21:13:00 -04:00
Ben Kelly
1d07830caa
Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku
2016-09-13 20:14:02 -07:00
Wes Kocher
e70a727506
Backed out 6 changesets (bug 1300658) for frequent Windows VM Xpcshell failures a=backout
...
Backed out changeset 6cf3a60640cf (bug 1300658)
Backed out changeset c74062a27462 (bug 1300658)
Backed out changeset 39fbc61739ef (bug 1300658)
Backed out changeset 0b9d70b040a2 (bug 1300658)
Backed out changeset 4e921d61f036 (bug 1300658)
Backed out changeset 56496fad6494 (bug 1300658)
2016-09-12 16:34:08 -07:00
Ben Kelly
c55871977b
Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku
2016-09-12 12:32:21 -07:00
Ben Kelly
449d185850
Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me
2016-09-12 12:29:17 -07:00
Ben Kelly
07e44cb284
Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku
2016-09-12 11:21:02 -07:00
Tom Tung
aedb197f83
Bug 1187335 - P4 - Integrate fetch and cache with SRI & add nsIConsoleReportCollector to show console report. r=bkelly.
2016-09-07 10:20:23 +08:00
Nicholas Nethercote
b5810a1eb4
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
2016-09-02 17:12:24 +10: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
bee31710b3
Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku
2016-08-18 07:11:04 -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
72fb8c6934
Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku
2016-08-17 20:01:35 -07: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
Ben Kelly
2883244a9d
Bug 1170543 P3 Expose ServiceWorker idle thread state to ServiceWorkerManager. r=asuth
2016-07-27 20:36:10 -04:00
Ben Kelly
5951700bc2
Bug 1170543 P2 Explicitly track the idle KeepAliveToken separately. r=asuth
2016-07-27 20:36:10 -04:00
Ben Kelly
eca67d0365
Bug 1170543 P1 Create separate KeepAliveTokens for service worker events and script evaluation. r=asuth
2016-07-27 20:36:10 -04:00
Ben Kelly
4464e9d2fe
Bug 1289658 Make ExtendableMessageEvent.waitUntil() hold the service worker alive. r=asuth
2016-07-27 10:32:12 -04:00