Alexandre Poirot
62d2ea9ddd
Bug 1158264 - Send an observer service event when a service worker intercept a request. r=bkelly
2016-01-14 05:53:00 -08:00
Ehsan Akhgari
98f3e8ff8d
Bug 1238213 - Make FetchEvent.request non-nullable; r=baku
2016-01-11 13:21:23 -05:00
Ehsan Akhgari
1968248e51
Bug 1222464 - Part 2: Implement FetchEvent.clientId; r=jdm
2015-12-02 20:36:59 -05:00
Boris Zbarsky
b99f535968
Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8
2015-11-20 13:36:46 -05:00
Ben Kelly
32cc2be54f
Bug 1225470 Report a message to the console when a service worker waitUntil() is rejected. r=baku
2015-11-19 13:15:17 -08:00
Kyle Huey
436424629a
Bug 1224061 followup to fix bustage. r=me on a CLOSED TREE IGNORE IDL
2015-11-13 09:23:59 +08:00
dimi
415546a047
Bug 1207068 - Implement ExtendableMessageEvent interface. r=baku
2015-11-10 14:31:41 +08:00
Ben Kelly
361dfda955
Bug 1220007 P2 Make InterceptedChannel's collect logs locally and only flush to nsIChannel on main thread r=bz
2015-11-03 11:20:56 -08:00
Carsten "Tomcat" Book
45963d6edd
Backed out changeset d8d75be11275 (bug 1220007)
2015-11-03 14:08:04 +01:00
Ben Kelly
d6744d2b22
Bug 1220007 P2 Make InterceptedChannel's collect logs locally and only flush to nsIChannel on main thread r=bz
2015-11-02 12:04:29 -08:00
Ben Kelly
77d9276d38
Bug 1220728 Clear pending exceptions if string conversion fails in SW intercept error handling. r=bz
2015-11-02 09:49:34 -08:00
Ben Kelly
3bca924c08
Bug 1219852 P2 Report non-response values passed to FetchEvent.respondWith(). r=bz
2015-10-31 10:34:20 -07:00
Ben Kelly
4aeebd730b
Bug 1219852 P1 Extract common JS values for rejected respondWith() promises. r=bz
2015-10-31 10:34:20 -07:00
Ben Kelly
6a6f4c7fd1
Bug 1215140 P10 Avoid AddRef'ing the nsIChannel OMT. r=bz
2015-10-29 19:53:25 -07:00
Ben Kelly
dbb167528f
Bug 1215140 P9 Provide file and line number when FetchEvent.preventDefault() cancels a request. r=bz
...
* * *
Bug 1215140 P9 interdiff 001
2015-10-29 19:53:25 -07:00
Ben Kelly
466e6a81bb
Bug 1215140 P6 Update service worker interception error strings to include detailed parameters. r=bz
2015-10-29 19:53:25 -07:00
Ben Kelly
4ca65c5f00
Bug 1215140 P5 Report the line number where respondWith() was called. r=bz
2015-10-29 19:53:25 -07:00
Ben Kelly
c8dbc91fed
Bug 1215140 P4 Make service worker respondWith() use channel ConsoleReportCollector. r=bz
2015-10-29 19:53:25 -07:00
Ehsan Akhgari
b58fc88350
Bug 1218621 - Keep the service worker alive while the promise passed to FetchEvent.respondWith() settles; r=catalinb
2015-10-27 17:10:57 -04:00
Ehsan Akhgari
582ac4e49c
Bug 1218151 - Make FetchEventInit.isReload default to false; r=bzbarsky
2015-10-26 23:00:17 -04:00
Ehsan Akhgari
ef9851d81e
Bug 1218135 - Remove FetchEvent.client; r=bzbarsky
...
This has been removed from the spec. See:
https://github.com/slightlyoff/ServiceWorker/issues/723#issuecomment-123516555
2015-10-26 23:00:16 -04:00
Ehsan Akhgari
7235471540
Bug 1214772 - Part 2: Make FetchEvent inherit from ExtendableEvent; r=bzbarsky
2015-10-26 23:00:14 -04:00
dimi
f007ebeb9c
Bug 1207727 - Rework updating service workers according to the latest spec. r=bkelly
2015-10-26 10:59:48 +08:00
Ben Kelly
0a95ed690a
Bug 1212904 P4 Set channel tainting in FetchEvent.respondWith(). r=ehsan
2015-10-22 11:07:32 -07:00
Josh Matthews
2016b77367
Bug 1173811 - Part 1: Propagate the response URL to intercepted channels when necessary (non-e10s). r=mayhemer,bkelly
2015-10-22 09:23:39 -04:00
Phil Ringnalda
9b09c6aa10
Back out 2 changesets (bug 1173811) for test_synthesized_response.js timeouts
...
CLOSED TREE
Backed out changeset 56bc1314e660 (bug 1173811 )
Backed out changeset 0ad51d302ba9 (bug 1173811 )
2015-10-21 20:21:05 -07:00
Josh Matthews
c9ea727e7e
Bug 1173811 - Part 1: Propagate the response URL to intercepted channels when necessary (non-e10s). r=mayhemer,bkelly
2015-10-21 00:05:40 -04:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Ehsan Akhgari
60b0a8342e
Bug 1179397 - Disallow FetchEvent.respondWith() when the dispatch flag is unset; r=jdm
2015-10-09 13:36:53 -04:00
Ehsan Akhgari
8df402597a
Bug 1212636 - Add a better error message for the content corrupcted error caused by the Promise being passed to FetchEvent.respondWith; r=bkelly
2015-10-07 18:06:26 -04:00
Ehsan Akhgari
57ce853202
Bug 1179401 - Call stopImmediatePropagation() on the Event object in respondWith(); r=jdm
2015-10-05 16:12:28 -04:00
Catalin Badea
8976da7cc2
Bug 1188545 - Cancel network interceptions when the service worker is being terminated with unresolved respondWith promises. r=nsm
2015-09-30 19:11:03 -04:00
Catalin Badea
a56b1ffd60
Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm
2015-09-30 19:11:03 -04:00
Catalin Badea
6240391214
Bug 1188545 - Disentangle service workers from shared workers and refactor event dispatching code into a separate class. r=nsm,mrbkap
2015-09-30 19:11:03 -04:00
Wes Kocher
4731d2ad0a
Backed out 12 changesets (bug 1188545) for test_fetch_cors failures CLOSED TREE
...
Backed out changeset e04738ee72a3 (bug 1188545)
Backed out changeset 1989893b59de (bug 1188545)
Backed out changeset 11ff29cc25d8 (bug 1188545)
Backed out changeset 4b6bdf859845 (bug 1188545)
Backed out changeset 76eb7ffeca2a (bug 1188545)
Backed out changeset 4473e036b52e (bug 1188545)
Backed out changeset 2a28cb794b23 (bug 1188545)
Backed out changeset 1fa2f55727f3 (bug 1188545)
Backed out changeset 032f4c24fc34 (bug 1188545)
Backed out changeset 4be675dc1b37 (bug 1188545)
Backed out changeset d5d05def5b17 (bug 1188545)
Backed out changeset e94f12b0bcf3 (bug 1188545)
2015-09-30 11:11:47 -07:00
Catalin Badea
b8d8f9cc7f
Bug 1188545 - Cancel network interceptions when the service worker is being terminated with unresolved respondWith promises. r=nsm
2015-09-30 10:14:33 -04:00
Catalin Badea
38850bf0c7
Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm
2015-09-30 10:14:33 -04:00
Catalin Badea
43b165568f
Bug 1188545 - Disentangle service workers from shared workers and refactor event dispatching code into a separate class. r=nsm,mrbkap
2015-09-30 10:14:33 -04:00
Bobby Holley
397f3851d5
Bug 1189668 - Check CSP before completing channel interception. r=ehsan
2015-09-20 00:32:14 -07:00
Kit Cambridge
e1a641d6a0
Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug
2015-09-17 05:10:42 -07:00
Nikhil Marathe
5d7c7dd7df
Bug 1198230 - Respect FetchEvent.preventDefault(). r=jdm
...
Update web-platform-tests expected data
2015-09-04 12:00:24 -07:00
Ben Kelly
0f6905a320
Bug 1184967 P1 Set RequestMode based on LoadInfo securityMode and client request content policy. r=nsm
2015-09-01 07:58:34 -07:00
Ben Kelly
e23c1c8e2b
Bug 1184607 P4 Handle the RequestRedirect mode during service worker interception. r=nsm
...
* * *
Bug 1184607 P4 interdiff 001 fix manual redirect assertion for navigations r=nsm
* * *
Bug 1184607 P4 interdiff 002 dom/worker nits
2015-08-31 14:26:29 -07:00
Nikhil Marathe
a893799921
Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
...
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.
Update web-platform-tests expected data
2015-08-24 14:42:14 -07:00
Ryan VanderMeulen
3bae12ba59
Backed out 7 changesets (bug 1189678, bug 1193128, bug 1189661, bug 1189644, bug 1189675) for various serviceworker mochitest and wpt failures.
...
Backed out changeset 696463139720 (bug 1189661)
Backed out changeset 7babb5b9d74a (bug 1189644)
Backed out changeset d4fa5cfc4b86 (bug 1189678)
Backed out changeset a7c27770b861 (bug 1189675)
Backed out changeset 471a45b97ce2 (bug 1189644)
Backed out changeset 4d96f2d48077 (bug 1193128)
Backed out changeset a9d5366288ff (bug 1189661)
CLOSED TREE
2015-08-24 18:09:47 -04:00
Nikhil Marathe
557b58d3a9
Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
...
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.
Update web-platform-tests expected data
2015-08-21 16:13:54 -07:00
Nikhil Marathe
1927b0c1a1
Bug 1181056 - waitUntil() should throw if called when event is not dispatching. r=smaug
2015-08-18 16:28:04 -07:00
Nikhil Marathe
afb9277fbd
Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst
2015-08-03 11:04:41 -07:00
Boris Zbarsky
7ec98a916e
Bug 983301 part 2. Change Promise to not be distinguishable from any other type. r=peterv
2015-07-31 13:30:55 -04:00
dimi
c598bad069
Bug 1158735 - FetchEvent.client asserting in onFetch when there's no document. r=bkelly
2015-07-27 19:01:37 +08:00