Phil Ringnalda
9af3731499
Back out 7 changesets (bug 1227015) for serviceworker bustage
...
CLOSED TREE
Backed out changeset a267542e8cb7 (bug 1227015)
Backed out changeset 03c28b711e1f (bug 1227015)
Backed out changeset 5fc6fca28ddf (bug 1227015)
Backed out changeset 7fb0c56916d2 (bug 1227015)
Backed out changeset 4bef51e9c8ae (bug 1227015)
Backed out changeset c46b5abddec5 (bug 1227015)
Backed out changeset fb4554bd3bde (bug 1227015)
2015-12-08 20:37:16 -08:00
Ben Kelly
9227b3237b
Bug 1227015 P7 Supress unused ErrorResult exception if the worker runnable failed to dispatch. r=catalinb
2015-12-08 17:52:16 -05:00
Ben Kelly
0698a4728b
Back out rev 4faa4cf68052 (bug 1227015 P7) for bustage
2015-12-08 17:49:05 -05:00
Ben Kelly
ac0381ca84
Bug 1227015 P7 Suppress unused ErrorResult exception if the worker runnable failed to dispatch. r=catalinb
2015-12-08 17:15:55 -05:00
Ben Kelly
4db1035d1b
Bug 1227015 P6 Abort updates if the script spec has changed. r=ehsan
2015-12-08 11:58:45 -05:00
Ben Kelly
58de757508
Bug 1227015 P5 Remove ServiceWorkerRegistrationInfo mScriptSpec. r=ehsan
2015-12-08 11:58:45 -05:00
Ben Kelly
d40ef59cb0
Bug 1227015 P4 Make register job always require an explicit script spec. r=ehsan
2015-12-08 11:58:45 -05:00
Ben Kelly
00c0e624e5
Bug 1227015 P3 Require a script spec on install jobs. r=ehsan
2015-12-08 11:58:45 -05:00
Ben Kelly
3e15fcaa7d
Bug 1227015 P2 Move mScriptSpec from registration job into script job base. r=ehsan
2015-12-08 11:58:45 -05:00
Ben Kelly
48d0ba6249
Bug 1227015 P1 Create ServiceWorkerScriptJobBase as parent class to register and install jobs. r=ehsan
2015-12-08 11:58:44 -05:00
Sebastian Hengst
114ca318d6
Backed out 2 changesets (bug 1221992) for almost permafailing M-e10s(2) on Linux debug. r=backout
...
Backed out changeset ad20808dd3c4 (bug 1221992)
Backed out changeset 7cdcda3e65fb (bug 1221992)
2015-12-05 21:13:41 +01:00
Ben Kelly
b21a412c95
Bug 1230341 Hold a strong ref in service worker NS_NewRunnableMethodWithArg uses. r=ehsan a=abillings
2015-12-04 18:03:47 -08:00
Ben Kelly
47a437e6d5
Bug 1230164 P2 Only activate service workers in the activating state. r=ehsan
2015-12-04 13:32:37 -08:00
Catalin Badea
b675b2325d
Bug 1221992 - Prevent ServiceWorkerClients.OpenWindow from opening tabs in private mode windows. r=smaug
2015-12-04 19:14:44 +02:00
Wes Kocher
bfbadfd96d
Backed out 2 changesets (bug 1221992) for windows debug assertions in browser_perf-categories-js-calltree.js
...
Backed out changeset bcd90e591038 (bug 1221992)
Backed out changeset 6affaa386b9b (bug 1221992)
--HG--
extra : commitid : 4w08gUrbqQr
2015-12-03 15:56:59 -08:00
Catalin Badea
889982d7af
Bug 1221992 - Prevent ServiceWorkerClients.OpenWindow from opening tabs in private mode windows. r=smaug
2015-12-03 23:19:29 +02:00
Ehsan Akhgari
6c4573cf9e
Bug 1229056 - Implement ClientQueryOptions.includeUncontrolled; r=jdm
2015-12-02 20:37:03 -05:00
Ehsan Akhgari
5ac100af7e
Bug 1222464 - Part 3: Implement Clients.get(); r=jdm
2015-12-02 20:37:01 -05:00
Ehsan Akhgari
d8cef2d841
Bug 1222464 - Part 2: Implement FetchEvent.clientId; r=jdm
2015-12-02 20:36:59 -05:00
Ehsan Akhgari
f9035eb119
Bug 1222464 - Part 1: Save a client ID for top-level navigations on the docshell and assign it as the document ID when we start loading the document; r=jdm
...
For top-level navigations, we need to compute the client ID when we decide to
intercept the document load, and we need to make sure the document that will
be created later will end up using that same ID.
2015-12-02 20:36:56 -05:00
Lars T Hansen
b62493634b
Bug 1176214 - Part 11: Changes to DOM, except for WebGL. r=bz, r=clb
...
--HG--
extra : rebase_source : 9c9d3f493822d68be20597d9974292ed5ec4ab70
2015-11-25 19:04:50 +01:00
Andrea Marchesini
bae9fd5f6c
Bug 1229071 - importScripts should throw the correct error result in case the loading of one of scripts fails, r=bz
2015-12-02 13:02:58 +00:00
Mike Hommey
3a7b31cfb5
Bug 1228444 - Rename DIST_FILES to FINAL_TARGET_PP_FILES. r=gps
...
This makes it clearer that really it's the same thing as FINAL_TARGET,
with preprocessing.
We still keep DIST_FILES in backend.mk because it's shorter and doesn't
really matter.
2015-12-01 08:25:22 +09:00
Mike Hommey
655579a1fa
Bug 1228444 - Don't silence "no preprocessor directives found" warnings for DIST_FILES. r=gps
...
and move files without preprocessor directives to FINAL_TARGET_FILES.
2015-12-01 08:25:22 +09:00
Ehsan Akhgari
194a4067e6
Bug 1226686 - Enable service workers on release builds for desktop and Android; r=baku
2015-11-30 09:46:42 -05:00
Catalin Badea
3c2fed5544
Bug 1228427 - Fix test_serviceworkerinfo.xul: wait for the worker to become active. r=ehsan
2015-11-26 22:37:14 +02:00
Ehsan Akhgari
8ec3d68db3
Bug 1201127 - Return the same ServiceWorkerRegistration object from service worker APIs dealing with the same underlying registration object; r=jdm
2015-11-26 15:13:33 -05:00
Catalin Badea
f363c7dd2d
Bug 1189659 - Part 5 - Fix race in skip-waiting.https.html and add some logging for SkipWaitingFlag in ServiceWorkerManager. r=ehsan
2015-11-26 19:03:10 +02:00
Catalin Badea
92374ffd71
Bug 1189659 - Part 4 - Fix race in test_install_event.html. r=bkelly
2015-11-26 19:03:10 +02:00
Catalin Badea
8497aa95e5
Bug 1189659 - Part 3 - Use separate synchronization queues for service worker register jobs and install jobs. r=bkelly
2015-11-26 19:03:10 +02:00
Catalin Badea
0094835ad9
Bug 1189659 - Part 2 - Remove set of scopes being updated from ServiceWorkerManager. r=bkelly
2015-11-26 19:03:10 +02:00
Catalin Badea
0a612e9983
Bug 1189659 - Part 1 - Continue service worker job queue when life cycle events expire. r=bkelly
2015-11-26 19:03:10 +02:00
Catalin Badea
e91f080be7
Bug 1227932 - Fix Service Workers SoftUpdate and registration.update code paths. r=ehsan
...
This patch splits the code paths for registration.update and soft update
since they have different behaviour. Next, it changes ServiceWorkerRegisterJob
to use just one callback and just prevents soft update from queuing a new
task if another one is pending.
2015-11-26 19:03:10 +02:00
Eddy Bruel
b35ef7b768
Bug 1219255 - We should be able to attach to a service worker;r=amarchesini
2015-11-26 12:18:56 +01:00
Yoshi Huang
4b500464f5
Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking.
2015-11-03 09:50:54 +08:00
Ben Kelly
9aa47b7280
Bug 1226441 - Part 2: Delay functional event dispatch until service worker is activated; r=catalinb
2015-11-24 10:49:00 -05:00
Boris Zbarsky
a4e1fa37a6
Bug 1224596 part 17. Remove the old WorkerMainThreadRunnable::Dispatch signature. r=khuey
2015-11-24 00:04:21 -05:00
Boris Zbarsky
58f083c12c
Bug 1224596 part 14. Switch URL to using the new WorkerMainThreadRunnable::Dispatch signature. r=baku
2015-11-24 00:04:21 -05:00
Boris Zbarsky
dd86a620e3
Bug 1224596 part 12. Switch ServiceWorkerRegistration to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey
2015-11-24 00:04:21 -05:00
Boris Zbarsky
fbb3dec310
Bug 1224596 part 11. Switch WorkerNavigator to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey
2015-11-24 00:04:21 -05:00
Boris Zbarsky
c47a933f93
Bug 1224596 part 10. Switch DataStoreCursor to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey
2015-11-24 00:04:21 -05:00
Boris Zbarsky
9db75e5551
Bug 1224596 part 9. Switch DataStore to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey
2015-11-24 00:04:20 -05:00
Boris Zbarsky
c30d4923b5
Bug 1224596 part 1. Add a version of WorkerMainThreadRunnable::Dispatch that takes an ErrorResult to report failure to dispatch on. r=khuey
2015-11-24 00:04:20 -05:00
Andrea Marchesini
9dc9655c9e
Bug 1213815 - dom/webidl/HTMLHyperlinkElementUtils and URL don't need to throw exceptions as we did before, r=bz
2015-11-23 20:05:26 +00:00
Andrea Marchesini
ef9b1a937a
Bug 1227113 - Fix some indentation issues in ServiceWorkerManager, r=janv
2015-11-23 13:47:53 +00:00
Ehsan Akhgari
6fc6fe1c47
Bug 1204269 - Part 2: Add unit tests; r=smaug
2015-11-20 16:32:52 -05:00
Boris Zbarsky
1fec018fcb
Bug 1224007 part 4. Fix some cases in which ErrorResult instances are destroyed without doing anything useful with exceptions on them. r=peterv
2015-11-20 16:29:41 -05:00
Boris Zbarsky
df75080cc3
Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8
2015-11-20 13:36:46 -05:00
Ehsan Akhgari
a7568f6847
Bug 1198078 - Part 2: Add tests for mixed content blocking of scripts in workers; r=ckerschb
2015-11-20 10:56:57 -05:00
dimi
251af3768d
Bug 1217367 - Service workers update algorithm optimization. r=bkelly
2015-11-20 16:43:07 +08:00
Ben Kelly
f1ab7986b2
Bug 1186856 ServiceWorker .register() should always stop current registration from uninstalling. r=jdm
2015-11-19 17:42:09 -08:00
Ben Kelly
60dc9e2371
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
Andrea Marchesini
5855a7439f
Bug 1226147 - WorkerPrivate->CreationTime() and CreationTimeStamp(), r=bz
2015-11-19 20:32:49 +00:00
Andrea Marchesini
5e1f614532
Bug 1169068 - Performance.translateTime(), r=bz
2015-11-19 14:04:47 +00:00
Kyle Huey
7e1d1b1868
Bug 1224436: Remove enumerator usage in ServiceWorkerManager.cpp. r=njn
2015-11-19 16:03:29 +08:00
Andrea Marchesini
61abf8e5dc
Bug 1218474 - Improve the referrer checks in worker mochitests, r=bkelly
2015-11-18 22:13:28 +00:00
Phil Ringnalda
568d5025ba
Back out bf4205bd5198 (bug 1216175) for Android hangs in test_fetch_cors.html
2015-11-17 19:45:43 -08:00
Andrea Marchesini
ea64674637
Bug 1221852 - SharedWorker.port should be always not null, r=smaug
2015-11-17 23:38:39 +00:00
Andrea Marchesini
94a269ab52
Bug 1224659 - Worker DataStore code should not use ErrorResult cross threads, r=bz
2015-11-17 22:55:51 +00:00
Olli Pettay
8b883f3ed3
Bug 1216175, ensure we GC/CC often enough on workers, r=baku
...
--HG--
extra : rebase_source : 04d97418c729087cbad157a35c6f57fa2f2edc60
2015-11-18 00:03:01 +02:00
Andrea Marchesini
fe6be4c172
Bug 1218433 - Use AsyncOpen2 in dom/workers/ScriptLoader.cpp - part 1, r=sicking
2015-11-16 22:41:03 +00:00
Wes Kocher
9d1f194cbb
Backed out 2 changesets (bug 1218433) for wpt failures CLOSED TREE
...
Backed out changeset 1cc8cc0444c0 (bug 1218433)
Backed out changeset 5418ca0e0378 (bug 1218433)
--HG--
extra : commitid : H1h8VHrzxx8
2015-11-16 11:13:43 -08:00
Andrea Marchesini
d35be12a6d
Bug 1218433 - Use AsyncOpen2 in dom/workers/ScriptLoader.cpp - part 1, r=sicking
2015-11-16 16:57:29 +00:00
Ben Kelly
513538cf2c
Bug 1224941 Don't crash during ServiceWorker life cycle event dispatch if window is gone. r=baku
2015-11-16 08:41:57 -08:00
Ben Kelly
3c283a5f6c
Bug 1223116 P1 Expose nsIServiceWorkerManager.shouldReportToWindow(). r=catalinb
2015-11-16 08:04:11 -08:00
Ben Kelly
443a543aac
Bug 1217909 P11 Only report errors to documents that are active and not in the bfcache. r=catalinb
2015-11-16 08:04:11 -08:00
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
bf2b04c9bf
Bug 1217909 P7 Fix mochitest to expect TypeError when serviceWorker.register() rejects. 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
6e82b3775e
Back out 2 changesets (bug 1221852, bug 1224825) for Android hangs and desktop RunWatchdog crashes in test_upgrade_insecure_reporting.html
...
CLOSED TREE
Backed out changeset 6ad589dcf3c1 (bug 1221852)
Backed out changeset e7aadf89146b (bug 1224825)
2015-11-15 09:56:06 -08:00
Andrea Marchesini
1f993cf905
Bug 1221852 - SharedWorker.port should be always not null, r=smaug
2015-11-15 11:47:57 +00:00
Sebastian Hengst
c1f04d5b8c
Backed out 2 changesets (a19876ac309e, 3a1c0923b0d9) (bug 1221852, bug 1224825) for M(3) failures. r=backout on a CLOSED TREE
...
Backed out changeset 3a1c0923b0d9 (bug 1221852)
Backed out changeset a19876ac309e (bug 1224825)
2015-11-15 15:59:24 +01:00
Sebastian Hengst
a0cf7d50ad
Backed out 2 changesets (22360424ed15, 325a67608df0) (bug 1218433) for W(1,2) failures. r=backout on a CLOSED TREE
...
Backed out changeset 22360424ed15 (bug 1218433)
Backed out changeset 325a67608df0 (bug 1218433)
2015-11-15 15:56:45 +01:00
Andrea Marchesini
9137d7e47b
Bug 1218433 - Use AsyncOpen2 in dom/workers/ScriptLoader.cpp - part 1, r=sicking
2015-11-15 11:57:06 +00:00
Andrea Marchesini
0ee249dfa5
Bug 1221852 - SharedWorker.port should be always not null, r=smaug
2015-11-15 11:47:57 +00: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
4a16f7fb9d
Bug 1214305 - Part 8: Enable secure upgrade service worker tests on e10s; r=jdm
2015-11-02 11:28:00 -05:00
Ehsan Akhgari
cd0dd2fe66
Bug 1214305 - Part 5: Use the secure upgraded channel URI in FetchEventRunnable::Init; r=jdm
...
This ensures that FetchEvent.request.url will have the correct value
for secure upgraded channels.
2015-11-02 11:27:00 -05: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
Eddy Bruel
cb30e9f8bf
Bug 1224237 - Remove the !baseURL check from ServiceWorkerContainer::Register;r=bkelly
2015-11-13 10:48:49 +01:00
Jonas Sicking
27c89ea082
Bug 1223647: CSP erroneously inherited into dedicated workers. r=ckerschb
...
--HG--
rename : dom/workers/test/serviceworkers/test_eval_not_allowed.html^headers^ => dom/workers/test/serviceworkers/test_eval_allowed.html^headers^
2015-11-10 21:16:12 -08:00
Kyle Huey
de8387d5fd
Bug 1224061 followup to fix bustage. r=me on a CLOSED TREE IGNORE IDL
2015-11-13 09:23:59 +08:00
Nathan Froyd
2d8bae8e40
Bug 1217571 - fix the imagelib cache to work in e10s; r=seth
...
nsICachingChannel isn't available in the child process; we have to use
nsICacheInfoChannel instead.
2015-11-12 15:09:52 -05:00
Kyle Huey
bdbb2ec50a
Bug 1224061: Make Event::InitEvent infallible. r=smaug
2015-11-13 08:09:42 +08:00
Sebastian Hengst
c7cc4bc5c8
Backed out changesets 5a3092c456c0,8dcbfd14f1e5 (bug 1218433) for M3, W3 failures and M10 failure on Android. r=backout
...
* * *
Backed out changeset 8dcbfd14f1e5 (bug 1218433)
462 INFO TEST-UNEXPECTED-FAIL | dom/security/test/csp/test_child-src_worker-redirect.html | CSP child-src worker test other-src-worker_redir-same - got "Error: Failed to load script (nsresult = 0x805e0006)", expected "blocked"
479 INFO TEST-UNEXPECTED-FAIL | dom/security/test/csp/test_child-src_worker.html | Test timed out.
486 INFO TEST-UNEXPECTED-FAIL | dom/security/test/csp/test_child-src_worker_data.html | Test timed out.
2015-11-12 18:44:51 +01:00
Andrew McCreight
0d0da460ed
Bug 1222495
- Get dom/workers/test/test_suspend.html working with e10s and B2G. r=khuey
2015-11-12 08:08:47 -08:00
Andrea Marchesini
f55a08e614
Bug 1218433 - Use AsyncOpen2 in dom/workers/ScriptLoader.cpp - part 1, r=sicking
2015-11-12 14:51:17 +00:00
Wes Kocher
2e6d1e7dfb
Backed out changeset d12f758f5f36 (bug 1223647) for android csp test failures
...
--HG--
extra : commitid : GRTvvKDy9Ki
2015-11-11 14:27:52 -08:00
Jonas Sicking
ea6cf63b0f
Bug 1223647: CSP erroneously inherited into dedicated workers. r=ckerschb
2015-11-10 21:16:12 -08:00
Wes Kocher
9e8bd5977f
Backed out 2 changesets (bug 1218433) for android CSP test failures in m(10) CLOSED TREE
...
Backed out changeset 50af9a9ba6d9 (bug 1218433)
Backed out changeset 5d8b8744419f (bug 1218433)
--HG--
extra : commitid : 625lyUcSwAk
2015-11-11 10:22:08 -08:00
Andrea Marchesini
934e4c3ba4
Bug 1218433 - Use AsyncOpen2 in dom/workers/ScriptLoader.cpp - part 1, r=sicking
2015-11-11 16:59:46 +00: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
Phil Ringnalda
b98d58e46d
Back out changeset 4d6d9c1e52e4 (bug 1223647) for failures in test_csp.html, csp/test_redirects.html and csp/test_worker_redirect.html
...
--HG--
extra : rebase_source : a4a53053968cfa19e6544dd3e59e36ef23fcf353
2015-11-10 23:10:04 -08:00
Jonas Sicking
426e42e7f9
Bug 1223647: CSP erroneously inherited into dedicated workers. r=ckerschb
2015-11-10 21:16:12 -08:00