Ben Kelly
45c47fc5e0
Bug 1217909 P10 Remove stale nsTArray when the last registering document for a scope is removed. r=catalinb
2015-11-16 08:04:11 -08:00
Ben Kelly
ec63158dff
Bug 1217909 P9 Report exceptions to windows performing an intercepted navigation. r=catalinb
2015-11-16 08:04:11 -08:00
Ben Kelly
d6cd5e961e
Bug 1217909 P8 Track navigation interceptions per scope in ServiceWorkerManager. r=catalinb
2015-11-16 08:04:11 -08:00
Ben Kelly
a670404ca2
Bug 1217909 P3 Refactor service worker register()/update() to reject only with SecurityErr or TypeErr. r=catalinb
...
* * *
Bug 1217909 P3 interdiff 001 fix try build
2015-11-16 08:04:11 -08:00
Ben Kelly
086c599374
Bug 1217909 P2 Track registering documents as weak reference so SWM can report errors to them. r=catalinb
2015-11-16 08:04:11 -08:00
Ben Kelly
c311fd953d
Bug 1217909 P1 Report service worker exceptions to controlled documents. r=catalinb
...
* * *
Bug 1217909 P1 interdiff 001 refactor
2015-11-16 08:04:11 -08:00
Phil Ringnalda
596e8ff827
Back out 9 changesets (bug 1214305) for e10s devtools browser_bug1045902_console_csp_ignore_reflected_xss_message.js failures
...
Backed out changeset 82929be36e95 (bug 1214305)
Backed out changeset e926606aefbf (bug 1214305)
Backed out changeset 226c83ca9a2a (bug 1214305)
Backed out changeset 88ab26108f2d (bug 1214305)
Backed out changeset 2e3e4f256d46 (bug 1214305)
Backed out changeset 347cd0f8f1e3 (bug 1214305)
Backed out changeset be072bba15fc (bug 1214305)
Backed out changeset 3b85acbe7be7 (bug 1214305)
Backed out changeset 49b930683c02 (bug 1214305)
2015-11-14 10:09:58 -08:00
Ehsan Akhgari
2d89eea92a
Bug 1214305 - Part 4: Use the secure upgraded channel URI in ServiceWorkerManager::PrepareFetchEvent; r=jdm
...
This is needed to ensure that the ServiceWorkerManager uses the
correct URI for non-subresource requests. Note that we're relying
on the property that non-secure non-subresource requests can never
be intercepted, so we don't need to check the request type explicitly.
2015-11-02 11:27:00 -05:00
Eddy Bruel
d9c0acb19f
Bug 1220740 - nsIServiceWorkerRegistrationInfo should emit an event when its worker properties change;r=amarchesini
2015-11-13 21:54:54 +01:00
Eddy Bruel
f2221b7a7f
Bug 1220740 - nsIServiceWorkerRegistrationInfo should emit an event when its scriptSpec property changes;r=amarchesini
2015-11-13 21:54:45 +01:00
Andrea Marchesini
d6cab13084
Bug 1201498 - Service worker update should compare scriptURL to worker URL without fragment, r=bkelly
2015-11-11 10:46:29 +00:00
Ben Kelly
9db4ca1512
Bug 1223378 Tighten service worker register() principal checks. r=baku
...
* * *
Bug 1223378 interdiff 001 Allow app scheme on non-release builds.
2015-11-10 13:51:22 -08:00
Wes Kocher
177fa844e6
Backed out changeset 27f5e66b3919 (bug 1201498) for serviceworkerobject-scripturl.https.html failures
...
--HG--
extra : commitid : I8Y8TNnseyU
2015-11-10 10:51:23 -08:00
Andrea Marchesini
7eae33dd23
Bug 1201498 - Service worker update should compare scriptURL to worker URL without fragment, r=bkelly
2015-11-10 17:05:47 +00:00
Matthew Noorenberghe
a0a2b249c4
Bug 1221365 - Move "Is origin potentially trustworthy?" logic outside ServiceWorkerManager.cpp. r=ckerschb,bkelly
2015-11-06 11:10:17 -08:00
Ben Kelly
68a7000f5d
Bug 1221351 P1 ServiceWorkerContainer and ServiceWorkerRegistration should not crash for null window owner. r=catalinb
2015-11-05 09:33:33 -08:00
Eddy Bruel
e12ab5ca8b
Bug 1219205 - ServiceWorkerInfo should be an XPCOM object;r=catalinb
2015-11-05 07:15:49 +01:00
Ben Kelly
fb374694d7
Bug 1221308 Fix some service worker related warnings. r=baku
2015-11-04 08:26:46 -08:00
Eddy Bruel
4bad6b08ad
Bug 1218363 - nsIServiceWorkerManager should notify its listeners when a service worker is (un)registered;r=catalinb
2015-11-04 15:17:02 +01:00
Carsten "Tomcat" Book
fb394133cc
Backed out changeset 6e4244690d03 (bug 1218363) for m-oth bustage
...
--HG--
extra : rebase_source : 33397d7b8bd802aad355ebbdb7ee4cb30171ceb0
2015-11-04 14:26:43 +01:00
Eddy Bruel
03e4076412
Bug 1218363 - nsIServiceWorkerManager should notify its listeners when a service worker is (un)registered;r=catalinb
2015-11-04 11:08:39 +01:00
Eddy Bruel
4bc69d6082
Bug 1216566
- Fix a bug in nsIServiceWorkerManager.getAllRegistrations;r=catalinb
2015-11-02 15:04:41 +01:00
dlee
f3324e8193
Bug 1214593 - Remove service worker periodic updater. r=ehsan
2015-11-02 16:08:44 +08:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Ehsan Akhgari
98b8da3eb6
Bug 1202085 - Part 3: Relax the assertion in ServiceWorkerManager::IsControlled to only happen when we think the document is controlled; r=jdm
2015-10-30 16:03:10 -04:00
Nicholas Nethercote
06aaac230d
Bug 1186810 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
...
--HG--
extra : rebase_source : f4a67d4bca37fbec566a3b110a9f7002df0af7f6
2015-10-25 21:35:44 -07:00
Nicholas Nethercote
5068308113
Bug 1186810 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
...
--HG--
extra : rebase_source : 091b13f8f15a50918c2cf14bf4e3d8cbb4159aec
2015-10-25 21:35:30 -07:00
Nicholas Nethercote
5b93c35c8a
Bug 1186810 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
...
--HG--
extra : rebase_source : b30e110d8fe10dcbfef51278c1d2178acd88d004
2015-10-25 21:35:18 -07:00
Nicholas Nethercote
ef9fab3e31
Bug 1186810 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
...
--HG--
extra : rebase_source : e50818bf8d9906634d8dff819c8994d9651b93e1
2015-10-25 21:09:05 -07:00
Nicholas Nethercote
0af735c7d5
Bug 1186810 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
...
--HG--
extra : rebase_source : ecb25ba6577e77b38894b117893545640de013e2
2015-10-25 21:08:54 -07:00
Ehsan Akhgari
e2a80ec087
Bug 1189685 - Part 1: Ensure that the state of all ServiceWorker instances is up to date when dispatching statechange events; r=bkelly
2015-10-26 12:37:48 -04:00
dimi
0a7f5412e3
Bug 1207727 - Rework updating service workers according to the latest spec. r=bkelly
2015-10-26 10:59:48 +08:00
Catalin Badea
cc62c14549
Bug 1172870 - Implement service workers clients.openWindow for desktop (non-e10s). r=baku,smaug
...
Based on patches from:
Nikhil Marathe <nsm.nikhil@gmail.com>
Alberto Crespell Perez <alberto.crespell@gmail.com>
2015-10-24 15:16:23 +03:00
Jonas Sicking
7bf7cbbd1a
Bug 1215746
: Remove RequestMode::Cors_with_forced_preflight. r=bkelly
2015-10-19 18:24:36 -07:00
Bobby Holley
cd781ec71f
Bug 1208559 - Do a CSP Check in ServiceWorkerManager::Register (r=ckerschb)
2015-10-18 19:38:06 -07:00
Nathan Froyd
01583602a9
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
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
77d38112ab
Bug 1209351 (part 2) - Optimize nsTHashTable::RemoveEntry() usage in dom/. r=bz.
...
--HG--
extra : rebase_source : 8550f181356550b6c0e540c12f61f2d1148d2050
2015-09-24 19:05:16 -07:00
Catalin Badea
518e55a5ed
Bug 1188545 - Terminate service workers that have been idle for some time. r=nsm
2015-09-30 19:11:03 -04:00
Catalin Badea
c5f9033d16
Bug 1188545 - ServiceWorkerRegistrationInfo::Clear() should terminated workers. r=nsm
2015-09-30 19:11:03 -04:00
Catalin Badea
76c7d43fd9
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
6fbdec2422
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
2758d1d2af
Bug 1188545 - Terminate service workers that have been idle for some time. r=nsm
2015-09-30 10:14:33 -04:00
Catalin Badea
47e2f6ee5c
Bug 1188545 - ServiceWorkerRegistrationInfo::Clear() should terminated workers. r=nsm
2015-09-30 10:14:33 -04:00
Catalin Badea
c537f8c503
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
Andrea Marchesini
144da2ac21
Bug 1205676 - Enable WPT service-worker/unregister-then-register-new-script.https.html in e10s, r=nsm
2015-09-23 19:40:51 +01:00
Nikhil Marathe
48d53f38df
Bug 1184798 - Ensure workers loads are treated as non-subresource fetches. r=jdm
...
--HG--
extra : commitid : KSrA2sDx3MI
extra : rebase_source : c28988811316aa40e38752669a928d27750001b6
2015-09-17 11:56:41 -07:00
Ehsan Akhgari
5d40efa578
Bug 1206894 - Enable asynchronous dispatching of fetch events; r=jdm
...
This refactoring patch separates the preparation of the fetch event
object from its dispatching, so that consumers would be able to
dispatch the event asynchronously.
2015-09-21 20:59:27 -04:00
Kit Cambridge
7f516ea381
Back out bug 1205109 for Push mochitest failure.
...
--HG--
extra : commitid : 8uF5cA3R489
extra : rebase_source : 32dcfc2a2816dabecb7a102d7b44b8f2d2c89160
2015-09-18 18:15:23 -07:00
Kit Cambridge
731f585e6c
Bug 1205109 - Make pushsubscriptionchange
extendable. r=mt,nsm
...
--HG--
extra : commitid : 4ziWEfRBlb4
extra : rebase_source : 8998aaf2f21825c93aba12de2a8543ecb64d7c1b
2015-09-17 05:15:45 -07:00
Kit Cambridge
556109257e
Bug 1205112 - Make PushEvent.data
nullable. r=mt,smaug
...
--HG--
extra : commitid : 8kofiFgB7WB
extra : rebase_source : 1ff780efd336a9a4214800149c397d9fd3fd6429
2015-09-17 05:13:04 -07:00