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

1895 Коммитов

Автор SHA1 Сообщение Дата
Nikhil Marathe 338560dbe9 Bug 1172717 - Fail on UNKNOWN_APP_ID instead of crashing. r=bholley a=RyanVM
--HG--
extra : rebase_source : 971c575911a800d97c741a65efcf0689b454fee3
extra : amend_source : abdf62fe7b775cf3305a4e8a0616c99096813cec
2015-06-08 16:18:09 -07:00
Morris Tseng 066c9f47e0 Bug 1172405 - Fix build error when adding files to dom/workers and gfx/layers. r=nical
CLOSED TREE
2015-06-08 02:28:00 -04:00
Carsten "Tomcat" Book 6f10985138 Merge mozilla-central to fx-team 2015-06-08 12:29:48 +02:00
Eddy Bruël 9fa7476bb3 Bug 1168853 - Implement WorkerDebugger.isInitialized;r=khuey 2015-06-08 09:08:20 +02:00
Ben Turner 215b1e0292 Bug 1173002 - Set worker system principal flag correctly when created from chrome, r=bz, a=kwierso. 2015-06-09 14:34:00 -07:00
Paolo Amadini 0697364b3d Bug 1158133 - Add a way to disable async stacks, and disable by default on mobile platforms. r=bent,jimb
--HG--
extra : rebase_source : 440284ded7a60d44430cd0a91fd946fa4c76c987
2015-06-09 11:17:09 +02:00
Ehsan Akhgari 9a671f5365 Bug 1172110 - Re-enable service workers on desktop and mobile for non-release builds; r=jst 2015-06-06 21:00:18 -04:00
Ehsan Akhgari e140eb2cf9 Bug 1164397 - Part 12: Add a test case for the service worker responding to normal and cached HTTP->HTTPS responses; r=jdm 2015-06-05 15:58:00 -04:00
Ehsan Akhgari efca89ffe3 Bug 1164397 - Part 11: Add a test case for the service worker responding to HTTPS normal and cached Responses; r=jdm 2015-06-05 15:57:58 -04:00
Ehsan Akhgari b71252d396 Bug 1164397 - Part 10: Add a test case for the service worker for an app:// URI responding with cached HTTP and HTTPS responses; r=jdm 2015-06-05 15:57:56 -04:00
Ehsan Akhgari 94b37a9fb9 Bug 1164397 - Part 9: Add a test case for the service worker for an app:// URI responding with a redirected HTTPS response; r=jdm 2015-06-05 15:57:53 -04:00
Ehsan Akhgari 861774e782 Bug 1164397 - Part 8: Add a test case for the service worker for an app:// URI responding with a redirected Response; r=jdm 2015-06-05 15:57:51 -04:00
Ehsan Akhgari 1315a45cc4 Bug 1164397 - Part 7: Add a test case for the redirected Response object being stored in the DOM Cache; r=jdm
--HG--
rename : dom/workers/test/serviceworkers/test_origin_after_redirect.html => dom/workers/test/serviceworkers/test_origin_after_redirect_cached.html
2015-06-05 15:57:49 -04:00
Ehsan Akhgari 02f547b7e8 Bug 1164397 - Part 6: Add a test case for the service worker responding with a redirected Response; r=jdm 2015-06-05 15:57:46 -04:00
Jose Antonio Olivera Ortega 88a9211951 Bug 1115820 - Add telemetry to ServiceWorkers. r=nsm, r=vladan
--HG--
extra : rebase_source : 69547573525bcea989d24e0a0293f6df9e7f90e1
2015-06-05 08:11:18 +02:00
Jose Antonio Olivera Ortega 49e020876b Bug 1122161 - Redirected channels should respect skip service worker flag. r=nsm
--HG--
extra : rebase_source : 959228846310fa8b44a74e8378f24c14a4f278c0
2015-06-03 10:02:40 +02:00
Ehsan Akhgari a402da64d1 Bug 1171486 - Part 2: Make it OK to call ServiceWorkerManager::GetInstance() during its Init() function; r=baku 2015-06-05 08:52:19 -04:00
Carsten "Tomcat" Book e7e949f08a Backed out changeset bc305c9b5d05 (bug 1155153) for b2g xpshell test failure on a CLOSED TREE 2015-06-05 13:07:51 +02:00
Fernando Jimenez 953d3573cb Bug 1169613 - Use content type of synthesized response for JAR channel requests if available. Tests. r=jdm 2015-06-05 12:53:58 +02:00
Andrea Marchesini 6b856c6ad5 Bug 1134224 - onerror for test_bug1132395.html, r=ehsan 2015-06-05 11:15:17 +01:00
Andrea Marchesini 42cd5b397c Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley 2015-06-04 19:51:57 +01:00
Ehsan Akhgari f30c9b2b9a Bug 1162018 - Add an automated test to ensure that a redirected Request won't be visible to a service worker if it had triggered the original fetch(); r=jdm 2015-06-04 16:29:48 -04:00
Ehsan Akhgari cbf85aceea Bug 1171486 - Avoid recursively obtaining the service worker manager service; r=nsm 2015-06-04 16:27:48 -04:00
Bobby Holley 7df20a2925 Bug 1171175 - Improve BasePrincipal::IsCodebasePrincipal. r=baku 2015-06-04 10:01:40 -07:00
Ryan VanderMeulen c2e15cd8c8 Backed out changeset e95a9e8e7650 (bug 1170795) for e10s test_fetch_event.html faliures. 2015-06-04 11:09:07 -04:00
Ehsan Akhgari ca699d4bcb Bug 1171285 - Part 2: Fix test_app_protocol.html to finish both index.html and controlled.html tests; r=jdm 2015-06-04 10:18:53 -04:00
Ehsan Akhgari 8fa914ff17 Bug 1171285 - Part 1: Add a script for regenerating the application.zip used by test_app_protocol.html; r=jdm 2015-06-04 10:18:47 -04:00
Josh Matthews 3bd0da1770 Bug 1170795 - Ignore redirect errors for synthesized cache entries. r=mayhemer 2015-06-04 10:06:33 -04:00
Andrea Marchesini 610a5e6ef0 Bug 1169867 - nsXMLHttpRequest should use and free mProxy correctly, r=ehsan 2015-06-04 15:04:09 +01:00
Andrea Marchesini 9e407c75be Bug 1134224 - More test for test_bug1132395.html, r=ehsan 2015-06-04 08:58:19 +01:00
Andrea Marchesini 80f57ca876 Bug 1131352 - Part 3: ServiceWorkerManager::SetSkipWaitingFlag() updated CLOSED TREE 2015-06-03 15:20:52 +01:00
Jose Antonio Olivera Ortega 2d3a0be044 Bug 1131352 - Part 2: Add ServiceWorkerGlobalScope skipWaiting(). r=nsm, r=baku 2015-06-02 07:12:00 -04:00
Andrea Marchesini 8adec8a2d4 Bug 1162088 - patch 2 - ServiceWorkerManager should use OriginAttributes from the principal as scopeKey, r=nsm 2015-06-03 09:44:09 +01:00
Andrea Marchesini a71e717b67 Bug 1162088 - patch 1 - ServiceWorkerManager should use OriginAttributes from the principal as scopeKey, r=nsm, r=bholley 2015-06-03 09:43:43 +01:00
Fernando Jimenez bf20132dbb Bug 1169296 - Intercepting top-level document loads is not working with JAR channels. Tests. r=jdm 2015-06-03 10:41:45 +02:00
Wes Kocher bcd821592f Merge m-c to inbound, a=merge 2015-06-02 18:43:25 -07:00
Wes Kocher d80ffbf1c9 Merge inbound to central, a=merge 2015-06-02 18:20:12 -07:00
Eddy Bruël 27446f880e Bug 1166847 - Implement OpaqueCrossCompartmentWrapper;r=evilpies 2015-06-02 16:54:54 +02:00
Eddy Bruël 05c931e961 Bug 1164564 - WorkerDebugger.initialize should not return failure when called more than once;r=khuey 2015-06-02 16:52:17 +02:00
Ehsan Akhgari 0cd59018b9 Bug 1170550 - Don't crash when registering a service worker which has a strict mode error; r=baku 2015-06-02 18:20:52 -04:00
Ben Kelly 93d33ee1bd Bug 1157619 P2 Test that service worker is not intercepted on force refresh. r=ehsan 2015-06-01 10:53:20 -04:00
Nikhil Marathe 66014a3f14 Bug 1168676 - Switch off embed/object ServiceWorker interception. r=ehsan
I would have liked to watch for onerror on the tags instead of having these
todos(), but onerror does not seem to fire. I have locally verified that the
test does indeed receive 404s on the network console.

--HG--
extra : rebase_source : 53c3f05cdca707b692fcf0192ae46ad42d83bc7e
extra : amend_source : 200549af4247ece528e38c7eeaa950809312adf2
2015-05-28 16:27:45 -07:00
Wes Kocher 18437e8dc3 Backed out changeset 3b09b61cdb45 (bug 1168676) for causing assertion failures CLOSED TREE 2015-05-28 11:45:56 -07:00
Birunthan Mohanathas 470bd9148f Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj 2015-05-28 11:07:43 -07:00
Nikhil Marathe e5964f4913 Bug 1168676 - Switch off embed/object ServiceWorker interception. r=ehsan
I would have liked to watch for onerror on the tags instead of having these
todos(), but onerror does not seem to fire. I have locally verified that the
test does indeed receive 404s on the network console.

--HG--
extra : rebase_source : bb1c9150b3efc0c8ea3027ec8f59198d31d13039
2015-05-27 16:36:44 -07:00
Josh Matthews f5fb27939c Bug 1157283 - Recreate IPC redirected HTTP channels as necessary after intercepting the request in the child. r=mayhemer 2015-05-28 10:47:35 -04:00
Jose Antonio Olivera Ortega c5913f35b9 Bug 1169210 - Can't call content service worker from chrome. r=nsm
--HG--
extra : rebase_source : a49c90113ea72dad97d70906479870c5b50f29ad
2015-05-29 18:17:33 +02:00
Wes Kocher 8f6c908ed7 Bug 1166924 part 1 r=baku
--HG--
extra : rebase_source : 02f9db11cd27f70ecd644a734e6ff03583067d1f
2015-05-27 14:33:22 -07:00
Andrea Marchesini c2ab19f99e Bug 1166924 part 0 r=bent
--HG--
extra : rebase_source : 750e7006efaa29b503cda99f565128312a347139
2015-05-27 14:21:44 -07:00
Ehsan Akhgari 4017e4028f Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book 1f0ef48e79 Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE 2015-05-27 14:50:43 +02:00
Ehsan Akhgari c66a858d3a Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 08:25:03 -04:00
Ben Turner 57dc7c8b04 Bug 1163109. Restrict the resource:// weirdness in workers to loads from a system principal. r=bzbarsky 2015-05-26 17:27:01 -04:00
Andrea Marchesini 6a2a4a1aa9 Bug 1155761 - User Timing API in Workers, r=ehsan 2015-05-25 17:53:07 +01:00
Fernando Jimenez 46140c45a2 Bug 1161684 - Allow JAR channels to be intercepted by service workers. Tests. r=jdm 2015-05-22 09:32:25 +02:00
Fernando Jimenez 95803111ef Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Ryan VanderMeulen 8f6f16604c Merge inbound to m-c. a=merge 2015-05-22 14:02:47 -04:00
Cervantes Yu 55152ad9d9 Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Cervantes Yu 836d8fd8d0 Backout change 3285d8bef13f (bug 1113429) due to backout of bug 970307. 2015-05-19 11:26:26 +08:00
Andrew McCreight e32a66ebb3 Bug 1166488 - Eliminate ServiceWorkerRegistrationBase::mCCDummy. r=smaug 2015-05-20 09:55:07 -07:00
Sebastian Hengst 89d9f2f631 Backout 068cc6419d1e (Bug 1161684) for M4 perma-failures on opt. r=backout 2015-05-22 10:48:03 +02:00
Sebastian Hengst 6fce538b2e Backout f938930b3ac5 (Bug 1161684) for M4 perma-failures on opt. r=backout 2015-05-22 10:47:20 +02:00
Fernando Jimenez b489f767be Bug 1161684 - Allow JAR channels to be intercepted by service workers. Tests. r=jdm 2015-05-22 09:32:25 +02:00
Fernando Jimenez 6608088159 Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Catalin Badea a68051d606 Bug 1158728 - ServiceWorkerClient: use innerWindow id for referencing clients. r=nsm
--HG--
extra : rebase_source : 51313aa04168631d1d2952f90fb02406aa824fb5
2015-05-20 13:14:49 -07:00
Catalin Badea fc75d392de Bug 1130684 - Test fetch events are intercepted after a client is claimed. r=nsm
--HG--
extra : rebase_source : 75792d264f2ffb118c0360d58d493c69ceb00e8e
2015-05-20 11:48:06 -07:00
Ryan VanderMeulen e1ee0d7597 Backed out changeset f0af05d88416 (bug 1162088) for various web-platform-test failures.
CLOSED TREE
2015-05-19 15:20:15 -04:00
Andrea Marchesini 1d31da42fd Bug 1162088 - ServiceWorkerManager should use the principal+scope for the initialization of ServiceWorkers, r=nsm,ehsan 2015-05-19 17:53:36 +01:00
Terrence Cole 161a4c26ba Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
Andrea Marchesini 61b9bd0496 Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Catalin Badea 8b1fbc7805 Bug 1130684 - Implement Service Worker clients.claim. r=nsm,ehsan
--HG--
extra : rebase_source : ea1da8f6dfd8d31936c0ae495ec262581c9e5775
2015-05-14 12:41:42 -07:00
Ehsan Akhgari 909a826cf5 Merge central into inbound on a CLOSED TREE to fix bustage 2015-05-14 15:52:39 -04:00
Ehsan Akhgari 3a263e7770 Fix the interfaces tests now that service workers have been disabled, no bug, a=me
Fixing bustage on a CLOSED TREE.
2015-05-14 15:49:13 -04:00
Ehsan Akhgari 3309c4cb9b Bug 1163945 - Handle aborted CompareNetwork jobs properly in CompareNetwork::OnStartRequst; r=nsm 2015-05-14 11:27:35 -04:00
Ehsan Akhgari e2d76efa70 Bug 1164487 - Part 2: Update the interfaces tests; r=baku 2015-05-14 09:04:02 -04:00
Andrea Marchesini 138f6d0913 Bug 1159792 - get rid of dom.workers.websocket.enabled pref, r=smaug 2015-05-14 12:24:06 +01:00
Eddy Bruël d2c20ea03d Bug 1150444 - Intermittent test_WorkerDebugger.isFrozen.xul;r=khuey 2015-05-08 07:08:17 +02:00
Andrea Marchesini f4538bb921 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 13:11:03 +01:00
Andrea Marchesini 368a198972 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher 983fcabeef Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Wes Kocher 6b003ab737 Backed out changeset 56e4c68dc3da (bug 1163387) for build bustage CLOSED TREE
--HG--
rename : dom/base/MultipartBlobImpl.cpp => dom/base/MultipartFileImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/base/MultipartFileImpl.h
2015-05-11 13:17:58 -07:00
Andrea Marchesini 49a0ee6938 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-11 18:50:54 +01:00
Andrea Marchesini 91a8a35606 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen 2390c704f8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE

--HG--
extra : histedit_source : a6c24f88b9c5a0cbcf2d44189fd359ddb20757b4%2C46613cfc309a9f0531e8c2475ac17877f606f231
2015-05-11 11:43:59 -04:00
Andrea Marchesini 48ecacaa74 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Jordan Santell 7b6fec2d8c Bug 922221 - implement console.timeStamp(label) to create profile timeline markers. r=khuey 2015-04-29 12:48:57 -07:00
Ehsan Akhgari e268b57aa9 Bug 1162344 - Use the exemptFromPerDomainMax pref in test_importscript.html; r=nsm 2015-05-08 16:33:05 -04:00
Nikhil Marathe 21ce8b6fa0 Bug 1162787 - Check for null before calling Equals. r=ehsan
CLOSED TREE

--HG--
extra : amend_source : c6f56030839abc8ca179c7f5ca0aec338165c614
2015-05-07 19:10:06 -07:00
Boris Zbarsky 59ea7eac31 Bug 1162013. Process the Promise queue between adjacent setTimeout callback invocations when we're going through the callback list without returning to the event loop. r=smaug 2015-05-07 14:49:31 -04:00
Ehsan Akhgari 4336f915ab Bug 1130101 - Part 3: Add unit tests for the handling of the Service-Worker-Allowed header; r=nsm 2015-05-07 21:07:10 -04:00
Ehsan Akhgari ac2874c72f Bug 1130101 - Part 2: Honor the Service-Worker-Allowed header when prefix matching the service worker scope; r=nsm 2015-05-07 21:06:34 -04:00
Ehsan Akhgari 0053c63b09 Bug 1130101 - Part 1: Store the value of the Service-Worker-Allowed header in the CompareManager object; r=nsm 2015-05-07 21:06:33 -04:00
Nikhil Marathe 1bcf68b61f Bug 1150959 - Log rejected Promise error message to browser console
--HG--
extra : rebase_source : e3fdd530c32c042791e959f896ef4ae06263f1f0
2015-04-08 16:04:12 -07:00
Nikhil Marathe 4c2d6784e1 Bug 1080109 - Clear ServiceWorkers when clearing history or forgetting about site. r=baku,ehsan
--HG--
extra : rebase_source : 41417b60ed6603d613b65cd7e96a5ba8121b05e5
2015-03-05 17:37:49 -08:00
Ehsan Akhgari 71f3e8945e Bug 1162787 - Make the service worker periodic tests robust to the idle daily service firing its notification when the tests are being run; r=nsm
--HG--
extra : rebase_source : b78061a0cda67e426cdbbef7f89ca006c03a9158
2015-05-07 16:23:50 -07:00
Ehsan Akhgari a26860eed6 Bug 1159378 - Part 4: Add a unit test for periodic updates of service workers on HTTPS origins; r=nsm
The reason why this test is interesting here is that it tests the code
path added in the part 2 of this bug.

--HG--
extra : rebase_source : 0742186497adfc4bafb5a9073b13736efb14d78e
2015-05-04 10:18:19 -04:00
Ehsan Akhgari 33bf6126a9 Bug 1159378 - Part 3: Refactor the logic of test_periodic_update.html into a helper script; r=nsm
This helper script will allow us to run the same test across both HTTP
and HTTPS origins.  This patch also uses postMessage instead of a direct
function call on the parent window, because in the HTTPS case, that
window will be cross-origin.  It also moves the code to trigger the
update and get the corresponding updatefound event to
wait_for_update.html, since getting the service worker registration
cross-origin is not possible.

--HG--
extra : rebase_source : 4df46df635f6445f286b54a8a3d9b2e3f8b8447a
2015-05-04 10:18:12 -04:00
Ehsan Akhgari d1a47ed982 Bug 1159378 - Part 2: When storing the service worker downloaded after a failed network compare into the cache, store its security info in the cache as well; r=nsm
--HG--
extra : rebase_source : 0c085287c181d7a98f83c659e7aceaaf0c32f2cc
2015-05-04 10:18:01 -04:00
Nikhil Marathe 8464296492 Bug 1154494 - patch 2 - Hold a ref to the sandbox. r=baku
--HG--
extra : rebase_source : d08a068a7f79c95b029b7ef5e0fbdea2674ae10a
2015-05-04 13:02:12 -04:00
Nikhil Marathe cbd6b8b352 Bug 1154494 - Hit network only once. r=baku,bkelly
--HG--
extra : rebase_source : d2720c0bbef92595228658d92db3bbaef051cced
2015-04-13 21:05:28 -07:00
Wes Kocher f15282bf26 Backed out changeset 57f0b16030e9 (bug 1162013) for m-oth and m-dt3 bustage CLOSED TREE 2015-05-07 13:37:27 -07:00
Boris Zbarsky 0c6597b3e0 Bug 1162013. Process the Promise queue between adjacent setTimeout callback invocations when we're going through the callback list without returning to the event loop. r=smaug 2015-05-07 14:49:31 -04:00
Ben Turner 86ad786706 Bug 1162218 - Make worker idle thread timeouts more strict, r=baku.
--HG--
extra : rebase_source : 9a8741c4ad67c782e313bc79a8eb87e4d2749649
2015-05-07 10:35:57 -07:00
Andrea Marchesini 80f0a3700f Bug 1156875 - patch 2 - Unify the registration of blob URIs in WorkerPrivate and nsIGlobalObject, r=bent 2015-05-07 08:06:24 +01:00
Andrea Marchesini 0d81eae126 Bug 1156875 - patch 1 - URL.createObjectURL leaks in JS sandbox, r=bholley 2015-05-07 08:05:43 +01:00
Ehsan Akhgari 7e11bb40f0 Bug 1148818 - Re-enable the Cache part of test_request_context.html on Android now that it passes 2015-05-06 08:15:24 -04:00
Ehsan Akhgari 41012d0662 Clean up after test_workerupdatefoundevent.html, no bug 2015-05-05 21:45:00 -04:00
Ehsan Akhgari 2ff1229507 Revert the debugging patch for bug 1157901 2015-05-05 21:43:53 -04:00
Boris Zbarsky 0472742d0c Bug 1160628. Speed up the URL constructor in the common case of no base URI. r=baku 2015-05-05 13:38:56 -04:00
Boris Zbarsky d05df285e4 Bug 1161036 part 2. Only force-enable dom cache in test_serviceworker_interfaces if we're having to force-enable servicewceworkers too. r=bkelly 2015-05-05 13:38:56 -04:00
Ehsan Akhgari c18dfa5852 Bug 1134325 - Part 2: Correctly reflect the Request's body to the service worker's fetch event; r=jdm 2015-05-05 13:20:54 -04:00
Ehsan Akhgari 6e93a857f0 Bug 1161239 - Emit a warning if the respondWith handler is resolved with a non-Object value; r=baku 2015-05-05 09:56:48 -04:00
Ehsan Akhgari a08aacbfd9 Bug 1159813 - Make sure service worker tests clean up after themselves; r=baku
This makes it possible to run the service workers tests using
--run-until-failure, which will hopefully help with reproducing
intermittent test failures.
2015-05-04 09:21:04 -04:00
Andrew McCreight 023db96fd8 Bug 1152551, part 3 - Fix more mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrea Marchesini 7f54aa583d Bug 1157627 - about:serviceworkers should show new registered ServiceWorkers. r=nsm 2015-04-30 15:32:47 +01:00
Boris Zbarsky 9610791e34 Bug 1160215. Get rid of the now-unused workerTestGetPrefs bits. r=bkelly 2015-05-01 11:42:37 -04:00
Boris Zbarsky 2b6cdc5b73 Bug 1159742. Get rid of the pref annotation from test_interfaces, since it basically corresponds to disabling the test. r=jst 2015-05-01 11:42:37 -04:00
Ben Kelly f15449e4a2 Bug 1134841 Hold ServiceWorker alive during install event's waitUntil(). r=bz 2015-05-01 08:14:42 -07:00
Boris Zbarsky eb10b36db2 Bug 1160190. Remove most of the pref annotations in test_interfaces and test_worker_interfaces. r=jst 2015-04-30 23:08:44 -04:00
Daniel Holbert 37bc14ef82 Bug 1156847 followup: annotate workers helper-class "ScriptLoaderRunnable" OnStartRequest/OnStopRequest as override. rs=ehsan 2015-04-30 11:42:16 -07:00
Phil Ringnalda fee82dca85 Backed out changeset d90e308bfb98 (bug 1159813) for "test_importscript.html | Unregister should return true" failures
CLOSED TREE
2015-04-29 20:15:34 -07:00
Ehsan Akhgari d04c18e961 Bug 1159813 - Make sure service worker tests clean up after themselves; r=baku
This makes it possible to run the service workers tests using
--run-until-failure, which will hopefully help with reproducing
intermittent test failures.
2015-04-29 20:22:32 -04:00
Ehsan Akhgari b1a88291c2 Bug 1156847 - Part 7: Add unit tests for responding to a FetchEvent with a synthesized Response both in the case where the service worker is loaded from the network and from the cache; r=nsm
--HG--
rename : dom/workers/test/serviceworkers/test_https_fetch.html => dom/workers/test/serviceworkers/test_https_synth_fetch_from_cached_sw.html
2015-04-29 20:22:31 -04:00
Ehsan Akhgari a3e0449fce Bug 1156847 - Part 6: When calling FetchEvent.respondWith(), fall back to the security info of the service worker if the Response object that we are responding with doesn't have its own security info; r=nsm
This case will only happen if we're responding with a synthesized Response object.
Response objects obtained through fetch() already have their correct security
info.
2015-04-29 20:22:31 -04:00
Ehsan Akhgari cea01af662 Bug 1156847 - Part 5: When loading a service worker from the cache, set its security info on the WorkerPrivate; r=nsm 2015-04-29 20:22:30 -04:00
Ehsan Akhgari cd281dd5d2 Bug 1156847 - Part 4: When storing a service worker script to the cache, store its security info in the cache as well; r=khuey
Before this patch, we would call Cache.put() before opening the channel,
which means that we have no way of knowing the security info for the
channel in order to set it on the Response object that we synthesize.
This patch adds an nsIRequestObserver to the tee created for piping the
body of the response to the cache, and delays calling Cache.put() until
we receive the nsIRequestObserver::OnStartRequest() notification, at
which point we set the obtained security info on the Response object to
be stored in the cache.
2015-04-29 20:22:29 -04:00
Ehsan Akhgari a2a584db69 Bug 1156847 - Part 3: When loading a service worker from the network, remember the security info of the channel on the WorkerPrivate; r=nsm 2015-04-29 20:22:28 -04:00
Ehsan Akhgari 9d614e4dc8 Bug 1156847 - Part 2: Store the security info for a service worker on its WorkerPrivate; r=bent,khuey 2015-04-29 20:22:27 -04:00
Tooru Fujisawa 0edbeb71c8 Bug 1102219 - Part 5: Replace more `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09:00
ziyunfei e1db0f779e Bug 1102219 - Part 4: Replace `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09:00
Ehsan Akhgari 531d28100a Debugging patch for bug 1157901 2015-04-29 08:31:29 -04:00
Doug Turner 107cf1a962 Bug 1147214 - Allow app: urls to use sw. r=baku 2015-04-25 08:27:50 +02:00
Makoto Kato bc393a738b Bug 866301 - Part 4. Turn on Intl API for B2G. r=fabrice,waldo 2015-04-28 18:59:53 +09:00
David Major ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Boris Zbarsky 34d521e285 Bug 1155984. Improve the performance of the "self" getter in both window and workers. r=peterv,jorendorff 2015-04-27 13:38:12 -04:00
Ehsan Akhgari 8861db851c Bug 1136780 - Re-enable test_fetch_event.html now that bug 1156771 has been fixed; r=nsm 2015-04-27 13:04:24 -04:00
Nathan Froyd ddbb44d13f Bug 1158320 - rename nsThread::mRunningEvent to mNestedEventLoopDepth; r=bsmedberg
The current name reads to me like a boolean variable, even though it's
actually a counter.  Try to make that property more explicit at its uses
by renaming it to something more evocative of counter-ness.
2015-04-24 16:04:50 -04:00
Boris Zbarsky d36060dc11 Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 839141fb74 Bug 1157898 part 3. Fix the remaining consumers of rv.ErrorCode() in NS_ENSURE_* expressions to not do that. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 1540774b0c Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Dragana Damjanovic 984272cb6d Bug 1156397 - some fix for webpush PushServer. r=dougt r=nsm
--HG--
extra : rebase_source : 06425ea3c83db38da11e345ee998a470f9e26570
2015-04-24 14:55:00 +02:00
Andrea Marchesini f2a283777b Bug 1125205 - Display console API messages from shared or service workers to the web console, r=past 2015-04-26 09:37:59 +01:00
L. David Baron b263b5134d Back out bug 1154494 (changeset 94c2f1d254e7 and changeset d1269f811e05) for causing intermittent orange in various service worker tests. 2015-04-25 15:07:54 -07:00
Ehsan Akhgari 9758744721 Bug 1157467 - Work around leaks in test_request_context.html in e10s; r=nsm 2015-04-25 01:12:41 -04:00
Daniel Holbert ea974bd459 Bug 1154494 followup: Annotate ServiceWorker helper-class 'CompareManager' refcounting functions as 'override'. rs=ehsan 2015-04-24 21:26:51 -07:00
Nikhil Marathe 903081acfe Bug 1154494 - Hit network only once. r=baku,bkelly
--HG--
extra : rebase_source : b7683b543875fae592dc21e292d8807d3e90af45
2015-04-13 21:05:28 -07:00
Nikhil Marathe a7b64f26f6 Bug 1157692 - Add dom.caches.enabled pref to test. r=bkelly
--HG--
extra : rebase_source : f4cad347cb1981a0c537e456150d9bd5716aa629
2015-04-23 08:46:03 -07:00
Wes Kocher 94244970a7 Backed out changeset a12f0f05779c (bug 1125205) for dt4 failures CLOSED TREE 2015-04-24 13:06:46 -07:00
Ben Kelly ab4d405a60 Bug 1158218 Follow-up to fix mis-indentation. DONTBUILD, whitespace-only r=me 2015-04-24 11:55:06 -07:00
Ben Kelly bd66f1624a Bug 1158218 Improve ServiceWorkerManager NS_WARNINGS on failure. r=nsm 2015-04-24 11:42:13 -07:00
Andrea Marchesini 2c3fcd702a Bug 1125205 - Display console API messages from Shared or Service Workers to the webconsole, r=past 2015-04-24 19:12:30 +01:00
Ehsan Akhgari 45059ab04f Back out bug 1154494 for test bustage on a CLOSED TREE 2015-04-23 16:59:24 -04:00
Nikhil Marathe c7df8d193b Bug 1154494 - Hit network only once. r=baku,bkelly 2015-04-23 16:00:58 -04:00
Doug Turner 1803c2eea5 Bug 1157108 - onpush EventHandler support. r=ehsan 2015-04-23 20:43:40 +02:00
Daniel Holbert b2bcb0c719 Bug 1131327 followup: Add 'override' annotation to WorkerListener refcounting functions. rs=ehsan 2015-04-23 09:20:08 -07:00
Nikhil Marathe 9ecfa34d9b Bug 1131327 - Patch 10 - Remember to remove the feature. r=baku
--HG--
extra : rebase_source : 3bc133e8e22dce4b65cb0b90db7b806a2ad96eef
2015-04-17 16:44:58 -07:00
Nikhil Marathe de1f3a4bf5 Bug 1131327 - Patch 9 - Fix windows compiler macro error. r=baku
--HG--
extra : rebase_source : d11b7bce9a2a1cc7c3b40262e5cec4aba32886f5
2015-04-16 12:53:14 -07:00
Nikhil Marathe e4c89a3bc6 Bug 1131327 - Patch 8 - Return null on worker attribute access. r=baku
--HG--
extra : rebase_source : 3d959ca15e2d669220882c0611b2235ee3291bf0
2015-04-14 16:12:59 -07:00
Nikhil Marathe a24add821f Bug 1131327 - Patch 7 - Fire updatefound on worker registration. r=baku
--HG--
extra : rebase_source : d87fd98d37ee45fb592a0fba764b099485df7cb3
2015-04-08 15:22:36 -07:00
Nikhil Marathe d7b71e8fbf Bug 1131327 - Patch 6 - SWM holds ServiceWorkerRegistrationListener for updatefound and invalidation notifications. r=baku
Splits up the listener interface to which SWM can hold rawptrs so that registration objects living on the worker thread can use awkward proxies to listen to these events.

--HG--
extra : rebase_source : 7b9753742b3dd6e416057fdee528b0d2067c55a9
2015-04-08 13:13:32 -07:00
Nikhil Marathe e1029f2748 Bug 1131327 - Patch 5 - Implement ServiceWorkerRegistration.unregister() on worker. r=baku
--HG--
extra : rebase_source : f8beb830277b9351673ccfd42b7b0a25516fb4dd
2015-04-07 14:17:02 -07:00
Nikhil Marathe 279301faf2 Bug 1131327 - Patch 4 - Implement ServiceWorkerRegistration.update() on worker. r=baku
ServiceWorkerGlobalScope::Registration() now returns initialized registration.

--HG--
extra : rebase_source : 6c07c86c0ddc4b3d714ebc423ff40282217d7f4c
2015-04-07 11:50:08 -07:00
Nikhil Marathe d9d452e06b Bug 1131327 - Patch 3 - move event listeners to main thread class. r=baku
--HG--
extra : rebase_source : 66145d7dbddd0e0a89164ffa7a3dd2805e3a609b
2015-04-07 13:09:07 -07:00
Nikhil Marathe 5b54bf699f Bug 1131327 - Patch 2 - Expose to workers. r=baku
This patch exposes ServiceWorkerRegistration (and ServiceWorker to satisfy constraints) to workers.

For now, a null registration is returned in the worker.

--HG--
extra : rebase_source : ae1b59d5ee3b3522826ed59fcfcb31e009018ac3
2015-04-03 22:46:07 -07:00
Nikhil Marathe 3f0efb4e4d Bug 1131327 - Patch 1 - Introduce ServiceWorkerRegistration{Base,MainThread,WorkerThread} r=baku
--HG--
extra : rebase_source : 352f05447f45a9dfa651bf683d22659b83508814
2015-04-03 15:18:55 -07:00
Nikhil Marathe e8ed488816 Bug 1131350 - Move update() to ServiceWorkerRegistration. r=baku
--HG--
extra : rebase_source : 0483ec35b9b53c4970afaf76ff3b8a6f92120e34
2015-03-19 18:09:10 -07:00
Jan de Mooij 103a223716 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Ehsan Akhgari 19615bcc2a Bug 1157544 - Fix a typo in the test; r=baku 2015-04-23 08:31:29 -04:00
Andrea Marchesini 8bef21375a Bug 1155546 - Implement WorkerControlRunnable::Cancel(), r=bent 2015-04-22 09:03:52 +02:00
Andrea Marchesini e666f02521 Bug 1156632 - Remove unused forward class declarations - patch 2 - dom/media, dom/indexedDB, dom/svg, r=ehsan 2015-04-22 08:29:17 +02:00
Rahul cc5d6147ae Bug 1152473 - Remove InstallEvent. r=nsm,ehsan
--HG--
extra : rebase_source : f2c7f7069f4b0606d3185d5be9255d1ae20fea1e
2015-04-20 18:47:13 -07:00
Ehsan Akhgari 3b9c04bb47 Bug 1156432 - Part 2: Use different error messages for the hello-after-extracting.gz test; r=nsm
This helps make it eaiser to tell whether this or the hello.gz
test failed by just looking at the logs.
2015-04-21 00:25:15 -04:00
Ehsan Akhgari 97eba20d5d Bug 1156432 - Part 1: Unregister the service worker when we are done with it; r=nsm
This lets us for example use the --run-until-failure mochitest option.
2015-04-21 00:25:08 -04:00
Ehsan Akhgari 20c06b408e Bug 1155989 - Dump the rejection of the promise returned by ServiceWorkerRegistration.unregister() in our tests; r=nsm 2015-04-21 00:24:44 -04:00
Ehsan Akhgari c6e94fa106 Bug 1155988 - Use the ready promise more often in service worker tests; r=nsm 2015-04-21 00:23:22 -04:00
Ehsan Akhgari d84695c24e Bug 1155987 - Unregister the service workers registered in tests; r=nsm
Without this, test_periodic_update.html is going to try to update all
of them which is unnecessary.
2015-04-21 00:21:30 -04:00
Ben Kelly 24a3dd7de7 Bug 1151974 P2 Re-enable serviceworkers/test_periodic_update.html. r=ehsan 2015-04-20 11:14:57 -07:00
Denis Volk 32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Jim Blandy ebd83c9a61 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
--HG--
extra : rebase_source : 8ab7a3628a5b4d94b957f24e23e4c5c7871db97c
2015-04-08 21:23:48 -04:00
Wes Kocher 5e1fa12171 Bug 1154813 - Typo fix that broke builds CLOSED TREE 2015-04-17 16:06:54 -07:00
Nikhil Marathe d400efdfdc Bug 1137287 - Part 0: Test for synthesized redirects. r=jdm 2015-02-26 11:53:51 -05:00
Josh Matthews 3ed5032f57 Bug 1154813 - Enable test_fetch_event.html on linux. r=nsm 2015-04-17 16:11:10 -04:00
Ehsan Akhgari af9d1cc526 Bug 1112469 follow-up: Disable the test everywhere for now since it seems that bug 1151974 hits more than just Windows
Landed on a CLOSED TREE
2015-04-17 15:12:11 -04:00
Ehsan Akhgari aa1876514b Bug 1112469 - Part 5: Actually test the code path that handles the idle-daily message; r=nsm
This is much better than testing just the
nsIServiceWorkerManager::UpdateAllRegistrations API.
2015-04-17 14:06:18 -04:00
Ehsan Akhgari 6cff744014 Bug 1112469 - Part 4: Disable periodic updates of service workers when running tests; r=nsm
This is meant to avoid random issues with Gecko suddenly kicking off the
periodic updates in the middle of our test runs.  This uses a hidden pref
intentionally since nobody should be able to discover this pref by going
to about:config.
2015-04-17 14:06:02 -04:00
Ehsan Akhgari 574ec745b0 Bug 1112469 - Part 3: Add a unit test for ensuring that the nsIServiceWorkerManager.updateAllRegistrations() API works correctly; r=nsm 2015-04-17 14:05:05 -04:00
Ehsan Akhgari 44e6522def Bug 1112469 - Part 2: Update the service workers in the parent and all child processes every day; r=nsm 2015-04-17 14:01:21 -04:00
Ehsan Akhgari 41df4b9686 Bug 1112469 - Part 1: Implement an XPCOM service responsible to trigger daily updates of service workers; r=nsm
--HG--
rename : dom/base/nsDOMCID.h => dom/workers/ServiceWorkerPeriodicUpdater.cpp
rename : dom/base/nsDOMCID.h => dom/workers/ServiceWorkerPeriodicUpdater.h
2015-04-17 13:59:49 -04:00
Ehsan Akhgari dc30989a71 Bug 1148942 - Ensure that the registration of empty service workers succeeds; r=bent 2015-04-16 18:18:20 -04:00
Nathan Froyd d876b3e545 Bug 870891 - move DIST_FILES to moz.build; r=mshal 2015-04-15 16:04:49 -04:00
Valentin Gosu f2c9e3a737 Bug 1149913 - Disable bug 1093611. Set pref dom.url.encode_decode_hash to true r=honzab 2015-04-16 05:25:10 +03:00
Boris Zbarsky 0f4c42d994 Bug 1154878 followup. Fix a test that expects to see navigator.taintEnabled in workers so we can reopen the CLOSED TREE. 2015-04-15 17:37:58 -04:00
Boris Zbarsky 37e96c22d5 Bug 1154812. Fix location.pathname to return the right thing in workers. r=baku 2015-04-15 16:32:53 -04:00
Andrea Marchesini 3faaae83fb Bug 1154721 - Add an "Unregister" button to about:serviceworkers, r=ehsan 2015-04-15 18:11:17 +01:00
Ehsan Akhgari 1d0a36b48b Bug 1154563 - Drop the unused argument of WorkerPrivate::Close(); r=baku 2015-04-15 09:24:22 -04:00
Nikhil Marathe 3927633b56 Bug 1151916 - Set worker principalinfo on cache load. r=bkelly
--HG--
extra : rebase_source : ac5c81a995badf835a9d81f76d674c55c38bd6bb
2015-04-10 14:14:44 -07:00
Ms2ger f1fc41b0e5 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
David Rajchenbach-Teller b08ce98d2a Bug 1083361 - Exposing a PromiseDebugging API to monitor uncaught DOM Promise. r=bz
--HG--
extra : rebase_source : cba2fc37d263d431c3008739a89a4fe47d10b7da
2015-04-10 17:27:57 +02:00
Doug Turner 9c9d8e38df Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm 2015-04-10 20:19:28 -07:00