Граф коммитов

2325 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini 6b6bb12186 Bug 1221852 - SharedWorker.port should be always not null, r=smaug 2015-11-10 19:11:05 +00: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
dimi a41b603e0d Bug 1207068 - Implement ExtendableMessageEvent interface. r=baku
--HG--
extra : rebase_source : ddc40a1fddf3558d22f647a8a8b785de97a270cc
2015-11-10 14:31:41 +08:00
Nicholas Nethercote d31ac5d1e9 No bug. Remove a stray debugging printf of mine. r=me.
DONTBUILD because trivial.

--HG--
extra : rebase_source : 3542e20aaea1d1b6388056d7b781416399df1a8c
2015-11-09 17:25:33 -08:00
Marco Castelluccio a1ea198959 Bug 1222097 - Test openWindow with a relative URL. r=bkelly 2015-11-06 12:09:00 +01:00
Marco Castelluccio aafd2c9f63 Bug 1222097 - Resolve the openWindow URL using the service worker URL as the base URL. r=bkelly 2015-11-06 08:39:00 +01: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
Jan de Mooij 115d04ec63 Bug 1125423 part 5 - Remove innerObject/outerObject/thisValue Class hooks. r=luke 2015-11-06 19:03:52 +01: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
Bill McCloskey de23733337 Bug 1219504 - Test changes (r=Gijs,mconley,jryans,MattN,Mossop) 2015-11-04 10:56:15 -08: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
Andrea Marchesini 9d98f9a481 Bug 1215235 - Drop support for jar: URIs by default, r=bz 2015-11-04 11:19:02 +00: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
Ben Kelly 8267928bb3 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 042b4d64cd Backed out changeset d8d75be11275 (bug 1220007) 2015-11-03 14:08:04 +01:00
Ben Kelly 537f8dad54 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 9a99bbe66c Bug 1220728 Clear pending exceptions if string conversion fails in SW intercept error handling. r=bz 2015-11-02 09:49:34 -08: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
Ryan VanderMeulen 028dec7cc8 No bug - Various crashtest manifest cleanups.
--HG--
rename : dom/base/crashtests/713417.html => dom/base/crashtests/713417-1.html
rename : dom/workers/test/1158031.html => dom/workers/test/crashtests/1158031.html
rename : dom/workers/test/779707.html => dom/workers/test/crashtests/779707.html
rename : dom/workers/test/943516.html => dom/workers/test/crashtests/943516.html
rename : dom/workers/test/crashtests.list => dom/workers/test/crashtests/crashtests.list
rename : layout/generic/crashtests/812879.html => layout/generic/crashtests/812879-1.html
rename : layout/generic/crashtests/first-letter-638937.html => layout/generic/crashtests/first-letter-638937-1.html
extra : rebase_source : b9274dc6870030ed62bcee35350d566160502869
2015-10-31 19:35:27 -04:00
Ben Kelly cd7a409e01 Bug 1219852 P2 Report non-response values passed to FetchEvent.respondWith(). r=bz 2015-10-31 10:34:20 -07:00
Ben Kelly 6eedccec9c Bug 1219852 P1 Extract common JS values for rejected respondWith() promises. r=bz 2015-10-31 10:34:20 -07:00
Andrew McCreight 5981b92f78 Bug 1219842 - Enable a bunch of mochitest-plain tests under e10s. r=mrbkap 2015-10-31 06:26:44 -07:00
Kit Cambridge 6ea0525c5f Bug 1205109 - Make `pushsubscriptionchange` extendable. r=mt
--HG--
extra : commitid : 7bR7TQ39ZSS
extra : rebase_source : c037e5dda0cb1dbb96aa1900f64364feac65f7a7
2015-10-30 18:13:48 -07:00
Ehsan Akhgari 3a539c9718 Bug 1202085 - Part 5: Add an automated test for the interaction of image cache with controlled documents; r=jdm 2015-10-30 16:03:12 -04: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
Catalin Badea 6e75ef33f5 Bug 1172870 - Part 3 - Fix openWindow mochitest to work on e10s. r=smaug
This patch also fixes a nullptr access in ContentChild::ProvideWindowCommon.
2015-10-30 20:51:40 +02:00
Carsten "Tomcat" Book 7351a2cd94 Backed out changeset 99a4fb4ba5c1 (bug 1172870) for causing test regressions m4 on a CLOSED TREE 2015-10-30 16:41:32 +01:00
Nicholas Nethercote e847fcd5ec Bug 1186810 (part 8) - Replace nsBaseHashtable::Enumerate() calls in dom/workers/ with iterators. r=khuey.
--HG--
extra : rebase_source : 622ce00f8ecfca3c1b6710bf77a0639a47c7bb3a
2015-10-26 17:09:44 -07:00
Nicholas Nethercote ce3c57710f Bug 1186810 (part 7) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=khuey.
--HG--
extra : rebase_source : c114f64e23fd08830e53ddec54503f9bb40bc328
2015-10-26 16:41:55 -07:00
Nicholas Nethercote 6efee4944c Bug 1186810 (part 6) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=khuey.
--HG--
extra : rebase_source : 37b230d344a69ee997f77581ffe4c7f62dabaea9
2015-10-26 16:07:45 -07: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
Ben Kelly 69c8a55480 Bug 1215140 P10 Avoid AddRef'ing the nsIChannel OMT. r=bz 2015-10-29 19:53:25 -07:00
Ben Kelly e3bee41820 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 b9615b724e 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 5fb3550c91 Bug 1215140 P5 Report the line number where respondWith() was called. r=bz 2015-10-29 19:53:25 -07:00
Ben Kelly f55ae9b765 Bug 1215140 P4 Make service worker respondWith() use channel ConsoleReportCollector. r=bz 2015-10-29 19:53:25 -07:00
Catalin Badea e13c1c9c9e Bug 1172870 - Part 3 - Fix openWindow mochitest to work on e10s. r=smaug 2015-10-30 01:30:58 +02:00
Catalin Badea 8255b13467 Bug 1172870 - Part 2 - Enable ServiceWorkerClients::OpenWindow on e10s desktop. r=smaug 2015-10-30 01:30:57 +02:00
Ehsan Akhgari da8340a541 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 073195c513 Bug 1206298 - Part 2: Add a test to make sure that we respect Cache-Control headers on the synthesized response; r=jdm 2015-10-27 11:58:30 -04:00
Ehsan Akhgari 8bb8104d86 Bug 1218499 - Make FetchEvent.request nullable; r=bzbarsky 2015-10-26 23:00:19 -04:00
Ehsan Akhgari 6a86907c4e Bug 1218151 - Make FetchEventInit.isReload default to false; r=bzbarsky 2015-10-26 23:00:17 -04:00
Ehsan Akhgari 7029e804f8 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 61cf88b565 Bug 1214772 - Part 2: Make FetchEvent inherit from ExtendableEvent; r=bzbarsky 2015-10-26 23:00:14 -04:00
Ehsan Akhgari b17439be5e Bug 1214772 - Part 1: Move the declaration of FetchEvent to after that of ExtendableEvent; r=bkelly 2015-10-26 23:00:13 -04:00
Ehsan Akhgari 28e742e312 Bug 1218146 - Move WindowClient.frameType to Client.frameType; r=bzbarsky 2015-10-26 16:00:00 -04:00
Ehsan Akhgari c41762a46d Bug 1218142 - Remove ServiceWorkerGlobalScope.onbeforeevicted/onevicted; r=bzbarsky 2015-10-26 15:59:58 -04:00
Ehsan Akhgari 14fbafb7be Bug 1218139 - Remove ServiceWorkerContainer.onreloadpage; r=bzbarsky 2015-10-26 15:59:57 -04:00
Ehsan Akhgari c43ad45f05 Bug 1218119 - Simplify defining worker prefs; r=baku 2015-10-26 14:06:28 -04:00
Andrea Marchesini 24cd451d65 Bug 1211967 - Fix how we report errors when loading a worker from a data url, r=bz 2015-10-26 17:28:45 +00: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
Ehsan Akhgari 5273912012 Bug 1202001 - Log errors emitted during service worker lifecycle events to the Web Console; r=bkelly 2015-10-26 12:30:46 -04:00
Ehsan Akhgari 80c460d668 Bug 1181054 - Part 3: Correctly handle upload channels that have embedded body headers when dispatching a FetchEvent; r=bkelly 2015-10-26 12:21:03 -04:00
Carsten "Tomcat" Book 3f4ea95cfa Merge m-c to mozilla-inbound 2015-10-26 11:29:00 +01:00
Carsten "Tomcat" Book 758c43af6b merge mozilla-inbound to mozilla-central a=merge 2015-10-26 10:57:35 +01:00
dimi 975b82b179 Bug 1207727 - Add WPT tests for service worker update algorithm. r=bkelly 2015-10-26 11:03:47 +08:00
dimi 0a7f5412e3 Bug 1207727 - Rework updating service workers according to the latest spec. r=bkelly 2015-10-26 10:59:48 +08:00
Victor Porof 9dc0ce6b1a Bug 1202657 - Add markers for workers' message passing and serialization/deserialization, r=smaug, jsantell, tromey, ejpbruel
--HG--
rename : docshell/base/timeline/OTMTMarkerReceiver.h => docshell/base/timeline/MarkersStorage.h
2015-10-21 23:10:05 +02:00
Olli Pettay a062f00aab Bug 1218190 - Add a pref to enable Clients.openWindow, r=catalinb 2015-10-25 22:36:27 +02:00
Ryan VanderMeulen 4e1540b2b5 Bug 779707 - Add crashtest. 2015-10-25 00:06:24 -04: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
Ehsan Akhgari bbf58e7a30 Bug 1185558 - Send a "Service-Worker: script" header when downloading service worker scripts; r=bkelly 2015-10-22 17:33:35 -04:00
Ben Kelly c0ad7f1171 Bug 1212904 P7 Verify xhr respects service worker CORS tainting. r=ehsan 2015-10-22 11:07:32 -07:00
Ben Kelly d7e898d8d0 Bug 1212904 P4 Set channel tainting in FetchEvent.respondWith(). r=ehsan 2015-10-22 11:07:32 -07:00
Josh Matthews d3726427db 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
Ehsan Akhgari 383397be38 Bug 1216697 - Unship Request.cache until the implementation is finished; r=bzbarsky 2015-10-23 15:38:47 -04:00
Tooru Fujisawa 24ab66bc98 Bug 1217093 - Remove for-each from dom/. r=smaug
--HG--
extra : commitid : DcjxshJqlKg
extra : rebase_source : 23bc9a985f1e6d13e13837e31bb9b88b9be24d55
2015-10-19 02:00:50 +09:00
Phil Ringnalda 6401c0185c 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 591281df75 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
Ehsan Akhgari 8ab0d9d2f8 Bug 931243 - Remove the XMLHttpRequest APIs from ServiceWorkerGlobalScope; r=bzbarsky 2015-10-20 13:16:34 -04:00
Ehsan Akhgari 9d5b088d22 Bug 1189673 - Set FetchEvent.request.headers' guard to immutable before dispatching the FetchEvent; r=bkelly 2015-10-20 10:21:11 -04:00
Nigel Babu 7cb4a2efa8 Backed out changeset 4b38a09cca56 (bug 1189673) for W(4) and W(8) bustages ON A CLOSED TREE 2015-10-20 13:52:22 +05:30
Ehsan Akhgari 34f6acee2f Bug 1189673 - Set FetchEvent.request.headers' guard to immutable before dispatching the FetchEvent; r=bkelly 2015-10-19 21:54:38 -04:00
Jonas Sicking 7bf7cbbd1a Bug 1215746: Remove RequestMode::Cors_with_forced_preflight. r=bkelly 2015-10-19 18:24:36 -07:00
Jonas Sicking cc10dd7ad3 Bug 1182571: Make nsXMLHttpRequest use AsyncOpen2. r=ehsan 2015-10-19 11:14:54 -07:00
Ehsan Akhgari ca6a03d7a4 Bug 1198397 - Add a test for interception of requests upgraded through the CSP upgrade-insecure-requests directive; r=jdm 2015-10-19 11:17:10 -04:00
Ehsan Akhgari 6673eddd94 Bug 1198394 - Part 2: Add a test for interception of HSTS upgraded connections; r=jdm 2015-10-19 10:32:38 -04:00
Christoph Kerschbaumer 643f27c257 Bug 1208559 - Hook up ServicerWorkers with CSP (r=sicking,bkelly,dveditz) 2015-10-18 19:59:18 -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
Ehsan Akhgari 9dd6f325b3 Bug 1215601 - Enable service workers for non-release builds on Fennec similar to desktop; r=bkelly 2015-10-16 14:08:08 -04:00
Eddy Bruel f7c6589364 Bug 1178726 - Simplify how we deal with freezing/thawing workers;r=jlongster,khuey 2015-10-16 18:48:26 +02:00
Ehsan Akhgari 73e2c128c6 Bug 1215230 - Disable service workers and push notifications on non-release builds until we're ready to ship them; r=bkelly 2015-10-16 11:19:57 -04:00
Wes Kocher c2b3d9275b Backed out 2 changesets (bug 1182571) for being a likely cause of the Android S4 errors
Backed out changeset e2b3064dcace (bug 1182571)
Backed out changeset 8153ae231d16 (bug 1182571)
2015-10-15 14:07:06 -07:00
Jonas Sicking 2578b19458 Bug 1182571: Make nsXMLHttpRequest use AsyncOpen2. r=ehsan 2015-10-15 12:18:21 -07:00
Andrea Marchesini f93604eafb Bug 1211970 - "Muted errors in workers are not correctly reported to the console". r=bz 2015-10-15 05:05:00 +02:00
Andrea Marchesini ef38daea39 Bug 1160890, r=smaug 2015-10-15 14:06:55 +02:00
Andrea Marchesini 0d7595b59b Bug 1214300 - AsyncErrorReporter doesn't use JSRuntime param., r=smaug 2015-10-14 11:29:55 +01:00
Morris Tseng d1d37e3f9b Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku
--HG--
extra : rebase_source : 55ae1e1fc1f88bffd43800eefaed4506789e608c
2015-10-12 11:21:04 +08:00
Morris Tseng c3d37560cc Bug 709490 - Part 5: Add interfaces test. r=ehsan
--HG--
extra : rebase_source : d5cca4941baf9c5e3fbe05cb7f4d12d860ef1825
2015-10-12 11:21:03 +08:00