Commit Graph

355 Commits

Author SHA1 Message Date
Andrea Marchesini
abd6b28844 Bug 1359017 - onmessageerror for Workers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Sebastian Hengst
264522f53d Backed out changeset 9248962260f9 (bug 1359017) 2017-09-13 08:56:18 +02:00
Andrea Marchesini
977186322a Bug 1359017 - onmessageerror for Workers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Sebastian Hengst
e313ec3dd9 Backed out changeset 65146cc073d4 (bug 1359017) 2017-09-12 14:16:37 +02:00
Andrea Marchesini
c9ef43bdda Bug 1359017 - onmessageerror for Workers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Ben Kelly
e266f48ec0 Bug 1379243 P5 Remove WorkerPrivate::GetEventTarget(). r=baku 2017-07-21 08:16:24 -07:00
Ben Kelly
db5d0c6b04 Bug 1379243 P4 Make worker EventTargetFor() return a "hybrid" WorkerEventTarget. r=baku 2017-07-21 08:16:24 -07:00
Ben Kelly
4bbd23623d Bug 1379243 P3 Rename WorkerControlEventTarget and make it support a "hybrid" dispatch mode. r=baku 2017-07-21 08:16:23 -07:00
Ben Kelly
5fe4521ee0 Bug 1379243 P1 Make WorkerControlEventTarget implement nsISerialEventTarget. r=baku 2017-07-21 08:16:23 -07:00
Bill McCloskey
595e5d79c8 Bug 1361164 - Add nsISerialEventTarget (r=froydnj)
MozReview-Commit-ID: 8y1GdEGCPSB
2017-06-12 20:20:08 -07:00
Bill McCloskey
5ddda3bb77 Bug 1361164 - Add infallible IsOnCurrentThread to nsIEventTarget (r=froydnj)
MozReview-Commit-ID: 12bk9hQ7Wnv
2017-06-12 20:20:08 -07:00
Sylvestre Ledru
d525178ff0 Bug 1368106 - Use the new MOZ_DIAGNOSTIC_ASSERT_ENABLED instead of several defines r=glandium
MozReview-Commit-ID: KOM35SQnoRh

--HG--
extra : rebase_source : 6ece3e3e7c287ef1bfc133470a8cd451f8e3971e
2017-05-26 18:53:35 +02:00
Andrea Marchesini
b203932e2d Bug 1364297 - Use nsString instead nsCString for Worker names, r=smaug 2017-05-17 16:49:34 +02:00
Andrea Marchesini
7453988cd7 Bug 1364297 - Worker and SharedWorker constructors have an optional WorkerOptions parameter, r=smaug 2017-05-17 16:48:54 +02:00
Ben Kelly
93100c8123 Bug 1362444 P1 Allow idle worker shutdown to begin for an opt-in WorkerHolder mode. r=baku 2017-05-10 09:27:10 -07:00
Thomas Nguyen
afaba58d52 Bug 1339004 - Do DocGroup labeling in dom/security. r=ckerschb,smaug
MozReview-Commit-ID: 3QoH8P4J85I

--HG--
extra : rebase_source : 6f62454001fc02380f8aea99a56eff38de0e9fb6
2017-03-29 10:20:32 +08:00
Ben Kelly
a68b3b11fd Bug 1350433 Expose WorkerPrivate::ServiceWorkerScope() instead of using WorkerName() all over the place. r=asuth 2017-03-24 19:56:48 -04:00
Ben Kelly
e070aa7b47 Bug 1340654 P1 Set referrer policy in service workers. r=baku 2017-02-23 10:54:42 -05:00
Ben Kelly
8fc68b959d Bug 1340652 P1 Assert principal URL matches final worker script URL. r=baku 2017-02-23 10:54:41 -05:00
Tooru Fujisawa
a33056dda7 Bug 1283712 - Part 8: Add WorkerErrorBase, WorkerErrorNote, and WorkerErrorReport. r=bholley 2017-02-15 23:53:07 +09:00
Ben Kelly
adfc2e425e Bug 1337522 P1 Add diagnostic assertions that worker principal is valid before compilation. r=baku 2017-02-14 10:06:39 -05:00
Ben Kelly
6e8c6089aa Bug 1337543 P3 Factor out code to set WorkerPrivate CSP from headers. r=baku 2017-02-14 10:06:38 -05:00
Boris Zbarsky
e1822e6a63 Bug 1306170 part 6. Implement WindowOrWorkerGlobalScope.origin. r=bkelly 2017-02-13 16:06:47 -05:00
Sebastian Hengst
6d0a01350d Backed out changeset c0157164852c (bug 1337543) 2017-02-13 18:59:57 +01:00
Ben Kelly
30ce58b092 Bug 1337543 P3 Factor out code to set WorkerPrivate CSP from headers. r=baku 2017-02-13 12:15:58 -05:00
Ben Kelly
9c8728e4a8 Bug 1338523 Make worker SetPrincipalOnMainThread fallible. r=baku 2017-02-10 13:34:38 -05:00
Ben Kelly
774823dcf7 Backout 959dce51f8cb (bug 1338523) for incorrect bug number in commit message. r=me 2017-02-10 13:33:28 -05:00
Ben Kelly
58ba9ead8c Bug 1338532 Make worker SetPrincipalOnMainThread fallible. r=baku 2017-02-10 13:30:47 -05:00
Ben Kelly
fa883b7bc2 Bug 1333573 P9 Refactor worker proxy release of main thread objects to reduce duplicate code. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly
2c1712e58b Bug 1333573 P5 Validate that final channel load principal does not change. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly
aa461bc68f Bug 1333573 P3 Move logic to set principal from channel into WorkerLoadInfo. r=baku 2017-02-07 10:28:39 -05:00
Andrea Marchesini
1fd70e0029 Bug 1336020 - transferables should be arrays of objects, r=smaug 2017-02-03 11:00:38 +01:00
Andrea Marchesini
270f257d6b Bug 1336020 - postMessages should have transferable as [] by default, r=smaug 2017-02-03 11:00:37 +01:00
Andrea Marchesini
e14c51cdfd Bug 1288768 - Better error reporting for network errors in workers, r=bz 2017-01-28 15:39:24 +01:00
Ben Kelly
3f5c467b20 Bug 1319278 P5 Removed unused TimerThreadEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
aec8848418 Bug 1319278 P4 Make ServiceWorkerPrivate use new WorkerControlEventTarget instead of TimeThreadEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
e3e5175758 Bug 1319278 P2 Make the WorkerPrivate create a WorkerControlEventTarget. r=baku 2017-01-26 08:01:32 -08:00
Ben Kelly
9dfba8baab Bug 1319278 P1 Add a WorkerControlEventTarget that executes runnables as WorkerControlRunnables. r=baku 2017-01-26 08:01:32 -08:00
Andrea Marchesini
359ae91eac Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Ho-Pang Hsu
e1372ee18c Bug 1290944 - Part 3.3: Propagate load flags to ScriptLoader when loading scripts. r=bkelly
--HG--
extra : rebase_source : 6cb8155fc3bee7ce33dc2c102b1da8c6f78b5d2a
extra : histedit_source : 162fc4393380cb44ec9a8ac4dd2b75847ecc33a4
2017-01-04 17:09:00 +08:00
Andrea Marchesini
94547f20bb Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status, r=bkelly 2017-01-05 10:05:32 +01:00
Catalin Badea
82cfe6ab4d Bug 1181127 - Don't run service workers for fetch events if no fetch handlers were added during script's evaluation. r=bkelly
Display a warning when event listeners are added after the script's evaluation.
2016-12-19 04:38:53 +02:00
Andrea Marchesini
4f830c36c0 Bug 1322292 - Some fixes for the Performance API in workers - part 3 - TimeStampToDOMHighRes() in workerPrivate, r=bz 2016-12-16 09:08:05 +01:00
Andrea Marchesini
64b687fb1c Bug 1322292 - Some fixes for the Performance API in workers - part 2 - Get rid of NowBaseTimeStamp(), r=bz 2016-12-16 09:07:39 +01:00
Catalin Badea
4d1930cd13 Bug 1263304 - Move Service Worker MessageEvent dispatching code to ServiceWorkerPrivate. r=bkelly
This refactoring makes it easier to modify the behaviour of lifetime
extensions by having a single call path for all extendable events.
2016-11-21 02:14:53 +00:00
Carsten "Tomcat" Book
dc9b560f7d Backed out changeset f03cd54afbc1 (bug 1263304) for causing frequent timeouts in test_has_permissions.html 2016-11-11 10:48:20 +01:00
Catalin Badea
18617f0ce0 Bug 1263304 - Move Service Worker MessageEvent dispatching code to ServiceWorkerPrivate. r=bkelly
This refactoring makes it easier to modify the behaviour of lifetime
extensions by having a single call path for all extendable events.
2016-11-11 00:07:15 +02:00
Ben Kelly
d48deb5760 Bug 1300659 P4 Use ThrottledEventQueue in workers. r=baku 2016-11-07 12:30:17 -08:00
Jon Coppeard
11dbca2419 Bug 1309929 - Use an async memory report for workers r=erahm r=bkelly 2016-10-28 10:50:16 +01:00
Ben Kelly
2cebe4f62c Bug 1311523 Allow multiple windows to be paused for SharedWorkers. r=baku 2016-10-25 06:26:04 -07:00