Andrea Marchesini
6757fa2f75
Bug 1432963 - Fixing workers headers - part 10 - ScriptLoader into a workerinternals namespace, r=smaug
2018-01-31 08:22:03 +01:00
Andrea Marchesini
8582d79ad5
Bug 1432963 - Fixing workers headers - part 5 - WorkerEventTarget in a separate file, r=smaug
2018-01-31 08:20:25 +01:00
Andrea Marchesini
78d3172d73
Bug 1432963 - Fixing workers headers - part 3 - WorkerError and WorkerPrincipal without workers namespace, r=smaug
2018-01-31 08:19:51 +01:00
Andrea Marchesini
1127e83395
Bug 1432963 - Fixing workers headers - part 2 - Get rid of WorkerCrossThreadDispatcher and WorkerTask, r=smaug
2018-01-31 08:19:29 +01:00
Andrea Marchesini
9774cec092
Bug 1413112 - Fixing includes in dom/workers, r=bkelly
2018-01-30 10:14:00 +01:00
Andrea Marchesini
1be2954fe1
Bug 1413112 - WorkerError in separate files, r=bkelly
2018-01-30 10:12:50 +01:00
Andrea Marchesini
900cbdf1e3
Bug 1413112 - Separate files for WorkerDebugger, r=bkelly
2018-01-30 10:12:26 +01:00
Andrea Marchesini
cfa537d14f
Bug 1413112 - Move WorkerLoadInfo into separate files, r=bkelly
2018-01-30 10:12:04 +01:00
Andrea Marchesini
5a1fc27bfc
Bug 1413112 - Moving MessageEventRunnable out of WorkerPrivate.cpp, r=bkelly
2018-01-30 10:10:25 +01:00
Ben Kelly
e71d8db226
Bug 1430139 P3 Remove workers namespace from service worker code. r=asuth
2018-01-26 13:08:59 -08:00
Ben Kelly
0325169284
Bug 1430139 P2 Make the tree compile again after moving the code to dom/serviceworkers. r=asuth
2018-01-26 13:08:58 -08:00
Ben Kelly
4a88dfb69d
Bug 1433044 P1 Make workers keep the same null principal even if GetChannelResultPrincipal() returns different null principals. r=baku
2018-01-25 12:52:50 -08:00
Andrea Marchesini
0356adb210
Bug 1425458 - Resource timing entries Workers - part 3 - PerformanceStorageWorker, r=smaug
2018-01-24 17:17:32 +01:00
Andrea Marchesini
c6da271117
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
...
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Brindusan Cristian
368c3d5b6b
Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
...
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Andrea Marchesini
662a5542a3
Bug 1425458 - Resource timing entries Workers - part 3 - PerformanceStorageWorker, r=smaug
2018-01-24 17:17:32 +01:00
Andrea Marchesini
6480b95ba3
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Ben Kelly
e95b043f8b
Bug 1231211 P18 Make blob URL worker scripts inherit the parent's controller. r=asuth
2018-01-23 10:38:54 -05:00
Ben Kelly
40376986e1
Bug 1231211 P13 Make worker ScriptLoader pass ClientInfo and ServiceWorkerDescriptor to NS_NewChannel() where appropriate. r=asuth
2018-01-23 10:38:54 -05:00
Chris Peterson
37efe4d0e6
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Ben Kelly
eecacb4a97
Bug 1429486 Expose GetClientInfo() and GetController() on nsIGlobalObject. r=asuth
2018-01-11 20:46:08 -05:00
Andrea Marchesini
112a861fb6
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 21 - Get rid of WorkerPrefs.h, r=asuth
2018-01-08 14:05:07 +01:00
Ben Kelly
64ef60ebaa
Bug 1428447 Set a loading principal on ServiceWorker WorkerPrivate objects. r=asuth
2018-01-05 19:50:09 -05:00
Ben Kelly
8b1b458cac
Bug 1428077 Make FinalChannelPrincipalIsValid always defined instead of only for MOZ_DIAGNOSTIC_ASSERT. r=baku
2018-01-04 17:35:41 -05:00
Ben Kelly
c19591bc97
Bug 1424336 Convert mLoadingPrincipal assertion into a runtime check. r=baku
2017-12-18 10:35:45 -05:00
Ben Kelly
65e9628fa6
Bug 1423913 P2 Make callers expect infallble CreateSource() and CreateHandle(). r=baku
2017-12-08 11:52:07 -05:00
Andrea Marchesini
65b913c5f4
Bug 1423507 - Data URL Shared Workers must be shared when the parent origins match, r=bkelly
2017-12-07 12:29:05 +01:00
Ben Kelly
fb38b7b228
Bug 1423412 P1 Actually mark window/worker ClientSource objects controlled when loaded with a controlling service worker. r=baku r=jld
2017-12-05 20:45:22 -05:00
Cosmin Sabou
5c4663243d
Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
...
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Andrea Marchesini
d841e8c395
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 22 - Get rid of WorkerPrefs.h, r=asuth
2017-11-30 18:16:47 +01:00
Ben Kelly
3472ec54e0
Bug 1420221 Make workers handle the case when the ClientSource cannot be created during shutdown. r=baku
2017-11-27 14:48:17 -05:00
Nika Layzell
f1ac9bf744
Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug
...
MozReview-Commit-ID: DAAm6tLubhJ
2017-11-23 13:12:13 -05:00
Ben Kelly
9af975dbfd
Bug 1419536 P4 Allow ClientSource objects to be frozen while in bfcache. r=baku
2017-11-21 15:13:05 -05:00
Ben Kelly
c223495e4f
Bug 1419536 P2 Create a ClientSource for the WorkerPrivate and mark it execution ready after the script loads. r=baku
2017-11-21 15:13:04 -05:00
Andrea Marchesini
73712f7d05
Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth
2017-11-15 07:58:38 +01:00
Andrea Marchesini
cae6951635
Bug 1405290 - Improve logging of workers when shutting down - part 2 - Implement RuntimeService::CrashIfHanging(), r=asuth
2017-11-15 07:58:38 +01:00
Ben Kelly
6a16081c69
Bug 1412858 P3 Use the ServiceWorkerDescriptor in existing WorkerPrivate and ServiceWorkerInfo code. r=baku
2017-10-30 13:35:07 -04:00
Andrea Marchesini
9f542cae15
Bug 1412293 - Get rid of GetWorkerCrossThreadDispatcher, r=qdot
2017-10-27 22:14:02 +02:00
Kris Maglione
60d080b412
Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
...
MozReview-Commit-ID: 8Oei6TuXNbu
--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Alexandre Poirot
8558f8dcb0
Bug 1392540 - Keep running debugger Promise while debugging workers. r=baku
...
MozReview-Commit-ID: JsA0Y943egB
--HG--
extra : rebase_source : 1087aa8a1b56330bdb1b5ed32ebeeb3b2bb1defb
2017-08-10 13:27:07 +02:00
Chris Peterson
98b2f2fcd6
Bug 870698 - Part 7: Replace Insert(NS_LITERAL_CSTRING("")) with InsertLiteral(""). r=erahm
...
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.
MozReview-Commit-ID: DbTW5Bhd9E1
--HG--
extra : rebase_source : b27f666e5ca832d814fb6846208474e1ec66e5f4
extra : source : 9ff4e11402a9a43ed90298a9c354b0164cf9414f
2017-09-07 18:15:42 -07:00
Nicholas Nethercote
e3c9cbb969
Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
...
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.
--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
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
Andrew McCreight
78807d8776
Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
...
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.
MozReview-Commit-ID: 5agRGFyUry1
--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Bill McCloskey
9edd615af7
Bug 1382922 - Refactor event queue to allow multiple implementations (r=erahm)
...
This patch refactors the nsThread event queue to clean it up and to make it easier to restructure. The fundamental concepts are as follows:
Each nsThread will have a pointer to a refcounted SynchronizedEventQueue. A SynchronizedEQ takes care of doing the locking and condition variable work when posting and popping events. For the actual storage of events, it delegates to an AbstractEventQueue data structure. It keeps a UniquePtr to the AbstractEventQueue that it uses for storage.
Both SynchronizedEQ and AbstractEventQueue are abstract classes. There is only one concrete implementation of SynchronizedEQ in this patch, which is called ThreadEventQueue. ThreadEventQueue uses locks and condition variables to post and pop events the same way nsThread does. It also encapsulates the functionality that DOM workers need to implement their special event loops (PushEventQueue and PopEventQueue). In later Quantum DOM work, I plan to have another SynchronizedEQ implementation for the main thread, called SchedulerEventQueue. It will have special code for the cooperatively scheduling threads in Quantum DOM.
There are two concrete implementations of AbstractEventQueue in this patch: EventQueue and PrioritizedEventQueue. EventQueue replaces the old nsEventQueue. The other AbstractEventQueue implementation is PrioritizedEventQueue, which uses multiple queues for different event priorities.
The final major piece here is ThreadEventTarget, which splits some of the code for posting events out of nsThread. Eventually, my plan is for multiple cooperatively scheduled nsThreads to be able to share a ThreadEventTarget. In this patch, though, each nsThread has its own ThreadEventTarget. The class's purpose is just to collect some related code together.
One final note: I tried to avoid virtual dispatch overhead as much as possible. Calls to SynchronizedEQ methods do use virtual dispatch, since I plan to use different implementations for different threads with Quantum DOM. But all the calls to EventQueue methods should be non-virtual. Although the methods are declared virtual, all the classes used are final and the concrete classes involved should all be known through templatization.
MozReview-Commit-ID: 9Evtr9oIJvx
2017-08-16 20:55:43 -07:00
Masatoshi Kimura
dec070e4cf
Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
...
MozReview-Commit-ID: E88DZK5sfwx
--HG--
extra : rebase_source : 64e1a47c9366a970f20ec459dde9b379a207e802
2017-08-07 02:28:52 +09:00
Ben Kelly
4364d9066e
Bug 1389184 Avoid crashing in worker MemoryReporter if the GlobalScope is nullptr. r=asuth
2017-08-10 18:00:05 -07:00
Ben Kelly
e7bce488ed
Bug 1387211 Avoid potential deadlock during worker shutdown. r=billm
2017-08-07 09:24:22 -07:00
Carsten "Tomcat" Book
3b7b01d32d
Merge mozilla-central to inbound
2017-07-27 11:27:45 +02:00
Carsten "Tomcat" Book
d360d49d2a
merge mozilla-inbound to mozilla-central a=merge
2017-07-27 10:57:25 +02:00
Andrea Marchesini
d06ba4ca6f
Bug 1382768 - Performance API must be a memory reporter, r=bz
2017-07-27 09:05:51 +02:00
Andrea Marchesini
6f4d5069c8
Bug 1159003 - setResourceTimingBufferSize shouldn't affect user timing, but we should clean user markers if we have memory pressure, r=bz
2017-07-20 12:57:08 +02:00
Bevis Tseng
95b18d794e
Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
...
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Bevis Tseng
d935b29e72
Bug 1378930 - Part 1: Remove nsINamed::SetName(). r=billm
...
MozReview-Commit-ID: 7aM1yJRsfPH
--HG--
extra : rebase_source : f207a37be835ac4e6c431af56737cebacf5c566d
2017-07-21 11:50:43 +08:00
Kartikaya Gupta
ba4b3b9101
Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
...
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.
MozReview-Commit-ID: 6s78RvPFMzv
--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Ryan VanderMeulen
3e946fc60d
Backed out changesets f4378a5e6c7f and b7d81fea0b33 (bug 1159003) for causing bug 1383553.
2017-07-25 21:50:06 -04:00
Sylvestre Ledru
7c0ae251cd
Bug 1381253 - Remove redundant control flow declarations rs=ehsan
...
MozReview-Commit-ID: FFxP4aMCbOL
--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Ben Kelly
1677104487
Bug 1379243 P6 Override Pre/Post dispatch methods in ExternalRunnableWrapper so it can be used off main thread. r=baku
2017-07-21 08:16:24 -07: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
460403c359
Bug 1379243 P2 Fix some spurious warnings in WorkerPrivate. 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
Andrea Marchesini
b02308d651
Bug 1159003 - setResourceTimingBufferSize shouldn't affect user timing, but we should clean user markers if we have memory pressure, r=bz
2017-07-20 12:57:08 +02:00
Andrea Marchesini
50f9ea47a3
Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm
2017-07-14 08:49:22 +02:00
Boris Zbarsky
5c76874a46
Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv
...
I did audit all UNWRAP_OBJECT callers to make sure that the lifetimes of all the
temporary Rooted or the RefPtrs they unwrap into are long enough.
2017-07-10 16:05:24 -04:00
Ben Kelly
227c73cd89
Bug 1366089 Make EventTargetFor() support worker threads. r=baku
2017-06-29 11:28:56 -07:00
Bill McCloskey
f115503a0b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Chris Peterson
6471ec4b4d
Bug 1373525 - dom/workers: Remove unused classes and member functions. r=baku
...
dom/workers/ScriptLoader.cpp:246:3 [-Wunused-member-function] unused member function 'ReadyToExecute'
dom/workers/ServiceWorkerScriptCache.cpp:200:19 [-Wunused-member-function] unused member function 'URL'
dom/workers/WorkerPrivate.cpp:1553:3 [-Wunused-member-function] unused member function 'DummyRunnable'
MozReview-Commit-ID: DLjD10iZJJV
--HG--
extra : source : db094b81fb77993c48e2884ffef700e34302c03e
extra : intermediate-source : fd1c6bd2b6882efb9e6ac3aeabe18968826297e4
extra : histedit_source : 8faac0927d4d97062fd74395dc2980cde57785b9
2017-06-15 00:40:59 -07:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c
Backed out changeset 9846de3bd954 (bug 1372405)
...
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng
d1637b9c5a
Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
...
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Bill McCloskey
1158c7c282
Bug 1372733 - EventTargetFor should return an nsISerialEventTarget (r=bkelly)
...
MozReview-Commit-ID: Kchg4kqBERt
2017-06-15 20:16:25 -07:00
Bill McCloskey
aefa2aa5da
Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
...
For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.
MozReview-Commit-ID: 5FgvpKadUA2
2017-06-12 20:20:08 -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
Jon Coppeard
0924a2d29c
Bug 1369748 - Parallelise the start of GC marking r=sfink r=smaug
2017-06-09 11:44:15 +01:00
Sylvestre Ledru
aa1c00fb9f
Bug 1370369 - Use the new MOZ_DIAGNOSTIC_ASSERT_ENABLED instead of several defines - follow up patch r=froydnj
...
MozReview-Commit-ID: I4ffmvKClc6
--HG--
extra : rebase_source : 0039cd09dfb199f77a1cbdca3bfdbcab21cc0049
2017-06-05 23:43:34 +02:00
Andrea Marchesini
8cfd4ae66c
Bug 1349266 - Using a workerHolder to keep alive a parent worker when a child worker is created, r=kbelly
2017-05-25 09:04:25 +02:00
Bill McCloskey
226f6b9185
Bug 1366869 - Make DISPATCH_NORMAL be the default flags argument for nsIEventTarget::Dispatch (r=froydnj)
...
MozReview-Commit-ID: 5DVcIaMHH95
2017-05-23 12:05:43 -07: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
4a9335fcd3
Bug 1361823 Fail the worker script load instead of crashing if the load group is torn down. r=baku
2017-05-15 06:52:00 -07: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
Ben Kelly
6564cff0b5
Bug 1361166 Update mParentStatus synchronously when closing worker thread. r=baku
2017-05-03 07:42:43 -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
Paul Bignier
9103ac60ef
Bug 1352808 - Typo fixes for 'browser' in comments. r=MattN
...
MozReview-Commit-ID: IA42yQO5Sb8
--HG--
extra : rebase_source : b5426724c5b740639f71e5d058742b01868085e2
2017-04-03 15:26:11 -07: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
Valentin Gosu
1c5fbd8c6e
Bug 1342438 - Remove url .hash encoding/decoding prefs r=bagder
...
These prefs have been added close to two years ago:
dom.url.encode_decode_hash and dom.url.getters_decode_hash
The main reason for their existence was in case we encounter any web-compat issues. At this point the extra code is mostly useless, and flipping the pref may lead to crashes.
MozReview-Commit-ID: LhAHkYmv0TR
--HG--
extra : rebase_source : 8f2d50d5633496cf165b3925d952bb6475bce3e0
2017-03-08 22:19:34 +01: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
Tom Tromey
5f8f360823
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07: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
9c913de880
Bug 1337522 P2 Set ServiceWorker principal earlier. r=baku
2017-02-14 10:06:39 -05: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
3e2defe12c
Bug 1333573 P7 Release WorkerLoadInfo data on main thread if we fail nested worker creation. r=baku
2017-02-07 10:28:39 -05:00
Ben Kelly
0096e443be
Bug 1333573 P6 Move ForgetMainThreadObjects() into WorkerLoadInfo. 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
8625a63853
Bug 1333573 P4 Set WorkerLoadInfo principal as soon as we get the channel. 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
Ben Kelly
99c380fb94
Bug 1333573 P2 Make nested worker pass WorkerLoadInfo to main thread when getting channel. r=baku
2017-02-07 10:28:38 -05:00
Ben Kelly
50e8b39d0c
Bug 1333573 P1 Move WorkerPrivate::SetPrincipal() logic into a WorkerLoadInfo method. r=baku
2017-02-07 10:28:38 -05:00
Tom Tung
e185f7bc4c
Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly.
2017-02-06 09:19:34 +08: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
Boris Zbarsky
6540e985fc
Bug 1335368 part 18. Get rid of IsCallerChrome in workers. r=bholley
2017-02-01 15:43:38 -05: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
67f0e950f9
Bug 1319278 P3 Make worker GC use new WorkerControlEventTarget. 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
Bill McCloskey
cf9eef1ea4
Bug 1331804 - Give runnable names to some generic dispatch sites (r=ehsan)
...
MozReview-Commit-ID: 83IL5zcor1W
2017-01-24 16:34:37 -08:00
Wes Kocher
f7ccafcb58
Backed out 8 changesets (bug 1331804, bug 1332100) for windows vm debug dt5 failures a=backout
...
Backed out changeset 8bf7f0e27c6c (bug 1331804)
Backed out changeset 600c0b9026c2 (bug 1331804)
Backed out changeset 3a5b5b9ecace (bug 1331804)
Backed out changeset c76432c9954e (bug 1331804)
Backed out changeset 46a9096745e7 (bug 1332100)
Backed out changeset 8b751230fa23 (bug 1331804)
Backed out changeset 2810212347fd (bug 1331804)
Backed out changeset be72b7763910 (bug 1331804)
MozReview-Commit-ID: Ywdsr4GZ4a
2017-01-24 15:12:21 -08:00
Bill McCloskey
5e4b276c5d
Bug 1331804 - Give runnable names to some generic dispatch sites (r=ehsan)
...
MozReview-Commit-ID: 83IL5zcor1W
2017-01-24 10:04:55 -08:00
Kris Maglione
729b7a2019
Bug 1273251: Part 3 - Allow CallbackObject to contain a null callable. r=peterv
...
MozReview-Commit-ID: FCXVHouhG3I
--HG--
extra : rebase_source : f3e9325559d40bcb4017ec2505f435275d4fea7f
2016-11-14 21:25:37 -08:00
Ben Kelly
43bcf0875f
Bug 1330747 Always nullptr check return value from ServiceWorkerManager::GetInstance(). r=asuth
2017-01-12 14:00:36 -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
Thomas Nguyen
d1229b6f90
Bug 1304623 - Create a pref to control the default referrer policy - part 1. r=bkelly
...
MozReview-Commit-ID: 6R7kLB6jvhP
2017-01-05 11:30:07 +08:00
Bill McCloskey
8a53959bbe
Bug 1320753 - Make TabGroup event target be a ThrottledEventQueue for timers, workers (r=bkelly)
...
MozReview-Commit-ID: FCfYz02r8yI
2016-12-23 11:48:13 -08: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
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
Andrea Marchesini
65ae873c8a
Bug 1313007 - Remove ExtendableMessageEvent::SetSource, r=qdot
2016-10-26 22:02:54 +02:00
Andrea Marchesini
92035ed242
Bug 1313004 - ServiceWorkerMessageEvent can be generated code, r=qdot
2016-10-26 22:00:17 +02:00
Ben Kelly
0983850a63
Bug 1303167 P6 Rename new suspend and freeze methods to final names. r=smaug
2016-10-26 10:20:16 -07:00
Ben Kelly
bf0ca72f77
Bug 1303167 P2 Use new window suspend and freeze methods. r=smaug
...
* * *
Bug 1303167 P2 interdiff 0001 Review feedback
2016-10-26 10:20:15 -07:00
Andrea Marchesini
909b97a385
Bug 1312705 - Update ExtendableMessageEvent to the latest version of the spec, r=smaug
2016-10-25 18:23:06 +02:00
Ben Kelly
2cebe4f62c
Bug 1311523 Allow multiple windows to be paused for SharedWorkers. r=baku
2016-10-25 06:26:04 -07:00
Lars T Hansen
9f439ac1de
Bug 1302036 - DOM changes to conform to new JS engine API for cloning. r=baku
...
--HG--
extra : rebase_source : bc9bda42eb0769f2fe76d702a41278e01bb497d7
2016-10-24 15:14:45 +02:00
Andrea Marchesini
c11a158627
Bug 1310967 - Update MessageEvent to the latest spec, r=smaug
2016-10-25 07:48:05 +02:00
Sebastian Hengst
1d68ef32e7
Backed out changeset 1fc115bbc7be (bug 1310967) for failing test_messageEvent_init.html. r=backout
2016-10-24 19:14:38 +02:00
Andrea Marchesini
1a3cb83d92
Bug 1310967 - Update MessageEvent to the latest spec, r=smaug
2016-10-24 17:10:46 +02:00
Tooru Fujisawa
6f9d4ca127
Bug 1283710 - Part 5: Rename message to toStringResult if it is the result of toString. r=bholley,jwalden,froydnj
2016-08-14 20:39:31 +09:00
Tooru Fujisawa
fa2f08828a
Bug 1283710 - Part 4: Do not duplicate message in ExpandErrorArgumentsVA, and remove message parameter from WarningReporter. r=jwalden
2016-08-14 20:39:31 +09:00
Wes Kocher
71f24926ed
Backed out 10 changesets (bug 1283710) for osx xpcshell failures a=backout
...
Backed out changeset eb95a12e5d86 (bug 1283710)
Backed out changeset f727edc4be48 (bug 1283710)
Backed out changeset fed60fbf645d (bug 1283710)
Backed out changeset 98339fa564f1 (bug 1283710)
Backed out changeset 51b8d69edca0 (bug 1283710)
Backed out changeset d72527b7d3c0 (bug 1283710)
Backed out changeset ee5215f1a38e (bug 1283710)
Backed out changeset dcedbaefe399 (bug 1283710)
Backed out changeset 61f8250cbe0b (bug 1283710)
Backed out changeset 239382846137 (bug 1283710)
2016-10-18 17:27:58 -07:00
Wes Kocher
8f8236ba1e
Backed out 2 changesets (bug 1310967) for failures in messageEvent tests a=backou
...
Backed out changeset dac69b2b8d26 (bug 1310967)
Backed out changeset 133feae49330 (bug 1310967)
2016-10-18 10:53:44 -07:00
Tooru Fujisawa
8d69b4f507
Bug 1283710 - Part 5: Rename message to toStringResult if it is the result of toString. r=bholley,jwalden,froydnj
2016-08-14 20:39:31 +09:00
Tooru Fujisawa
84473915d8
Bug 1283710 - Part 4: Do not duplicate message in ExpandErrorArgumentsVA, and remove message parameter from WarningReporter. r=jwalden
2016-08-14 20:39:31 +09:00
Andrea Marchesini
8349366911
Bug 1310967 - Update MessageEvent to the latest spec, r=smaug
2016-10-18 18:19:59 +02:00
Valentin Gosu
08a83ff913
Bug 1307491 - (Part 2) Remove support for per-app-offline in dom/ [nukeb2g] r=baku
...
MozReview-Commit-ID: DV58awPq98
--HG--
extra : rebase_source : 5372e7095fc5cefe2ccacfca4a3e23be76ff24fd
2016-10-17 03:58:54 +02:00
Andrea Marchesini
b88af2e644
Bug 1308956 - Get rid of MessagePortList - part 1 - MessagePortList removed from events, r=smaug
2016-10-13 15:19:24 +02:00
Wes Kocher
2337995bb0
Merge m-c to autoland, a=merge
2016-10-12 14:44:21 -07:00
Andrea Marchesini
19a783cce8
Bug 1308667 - WorkerPrivate::QueueRunnable can be used by any parent thread; assertion fixed, r=bkelly
2016-10-12 15:15:04 +02:00
Andi-Bogdan Postelnicu
5b2a91df8c
Bug 1309150 - prevent dead code in WorkerPrivateParent<Derived>::Freeze when looking for frozen shared workers. r=mrbkap
...
MozReview-Commit-ID: 5iPQwosRAxW
--HG--
extra : rebase_source : e59689490eab0f0b2153fad2db29badec3909640
2016-10-11 11:33:31 +03:00
Boris Zbarsky
0b7535dfdc
Bug 1269052 part 3. Implement isSecureContext for worker scopes. r=bkelly
2016-10-10 15:09:00 -04:00
Andrea Marchesini
ba090ed697
Bug 1304489 - part 2 - Better naming for suspend/resume: parentWindowPaused/parentWindowResumed, r=ejpbruel
2016-10-04 12:14:07 +02:00
Andrea Marchesini
fbb338bc11
Bug 1304489 - part 1 - Sub-workers must be frozen/thawed, r=bkelly
2016-10-04 12:13:33 +02:00
Tooru Fujisawa
26cadb42f0
Bug 1290337 - Part 16: Replace Value parameter to const Value& in dom. r=smaug
2016-09-11 18:15:24 +09:00
Tooru Fujisawa
6d493d48ec
Bug 1289050 - Part 1: Use ASCII variant of JS_ReportError in simple case. r=jwalden
2016-08-14 20:39:28 +09:00
Arthur Edelstein
dfebfaa34a
Bug 1268726 - isolate shared worker by first party domain. r=baku
...
Tor 15564: Isolate SharedWorker by first party domain
uplift/refactor by Dave Huseby <dhuseby@mozilla.com>
review tweaks
2016-09-19 21:13:00 -04:00
Jan de Mooij
919372cf5c
Bug 1302448 part 3 - Rename WorkerJSRuntime to WorkerJSContext. r=baku
...
--HG--
extra : rebase_source : a1df9ae95f0c80f67ce21bc494bb92a20cbc5784
2016-09-14 15:48:42 +02:00
Jan de Mooij
a53986bf29
Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
...
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Ben Kelly
e5c5dd65ac
Bug 1300658 P2 Make WorkerRunnable's destined for main thread use the MainThreadTaskQueue. r=baku
2016-09-13 20:14:02 -07:00
Ben Kelly
f7c726cbfd
Bug 1300658 P1 Expose a main thread TaskQueue WorkerPrivate. r=baku
2016-09-13 20:14:02 -07:00
Wes Kocher
17b9381e0b
Backed out 6 changesets (bug 1300658) for frequent Windows VM Xpcshell failures a=backout
...
Backed out changeset 6cf3a60640cf (bug 1300658)
Backed out changeset c74062a27462 (bug 1300658)
Backed out changeset 39fbc61739ef (bug 1300658)
Backed out changeset 0b9d70b040a2 (bug 1300658)
Backed out changeset 4e921d61f036 (bug 1300658)
Backed out changeset 56496fad6494 (bug 1300658)
2016-09-12 16:34:08 -07:00
Ben Kelly
a10ca84838
Bug 1300658 P2 Make WorkerRunnable's destined for main thread use the MainThreadTaskQueue. r=baku
2016-09-12 12:32:21 -07:00
Ben Kelly
6a05598770
Bug 1300658 P1 Expose a main thread TaskQueue WorkerPrivate. r=baku
2016-09-12 12:32:21 -07:00
Ben Kelly
a8a4ae3c4f
Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me
2016-09-12 12:29:17 -07:00
Ben Kelly
7bb3320bdd
Bug 1300658 P2 Make WorkerRunnable's destined for main thread use the MainThreadTaskQueue. r=baku
2016-09-12 11:21:01 -07:00
Ben Kelly
e60f286936
Bug 1300658 P1 Expose a main thread TaskQueue WorkerPrivate. r=baku
2016-09-12 11:21:01 -07:00
Tom Tung
c34ee7095c
Bug 1187335 - P1 - Add a way to report error to all clients for ServiceWorker and SharedWorker. r=bkelly.
2016-05-23 14:56:46 +08:00
Michael Layzell
c47fca1cd7
Bug 1018486 - Part 1: Changes in dom/, r=baku
...
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Nicholas Nethercote
34dcc7b852
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Andrea Marchesini
1738225353
Bug 1297472 - Improve nsIScriptTimeoutHandler::GetHandlerText(), r=bz
2016-09-05 21:25:13 +02:00
Nicholas Nethercote
b71747b2ac
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Nicholas Nethercote
819433bae0
Bug 1299389 - Replace some raw pointers in nsThreadManager. r=froydnj.
...
nsThreadManager::get() can return a reference. This lets us remove some
redundant assertions.
nsThreadArray elements can be NotNull<>s.
--HG--
extra : rebase_source : fd49010167101bc15f7f6d01bf95fd63b81d60fb
2016-06-10 16:04:49 +10:00
Andrea Marchesini
e8d47ac312
Bug 790919 - Don't dispatch close event in Workers, r=bkelly
2016-08-31 21:33:05 -07:00
Boris Zbarsky
29cf04bde6
Bug 986459. The error event in a worker (firing at the worker's global) should have the original exception value in its .error property. r=baku
2016-08-29 12:30:51 -04:00
Nicholas Nethercote
c2306345d5
Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
...
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.
The patch also does some associated clean-up.
- Replaces some uses of nsIMemoryReporterCallback with the preferred
nsIHandleReportCallback typedef.
- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
parameter names, for consistency.
- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.
- Uses the MOZ_COLLECT_REPORT macro in all suitable places.
Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Andrea Marchesini
db26797edf
Bug 1296586 - Fixing some comments in WorkerPrivate, r=smaug
2016-08-21 08:41:34 +02:00
Ben Kelly
3b1186e9b0
Bug 1293690 P1 Allow WorkerHolder::HoldWorker() callers to specify the status value they consider to be a failure. r=baku
2016-08-18 07:11:04 -07:00
Phil Ringnalda
4083fafafc
Backed out 10 changesets (bug 1290116, bug 1293690) for build bustage
...
CLOSED TREE
Backed out changeset bbc14d107fca (bug 1290116)
Backed out changeset a81b6ce5c25f (bug 1290116)
Backed out changeset e0b9c25b6125 (bug 1290116)
Backed out changeset 8e9a9ba04ce5 (bug 1290116)
Backed out changeset 2d5ad5e9ed20 (bug 1290116)
Backed out changeset eb7da0dbfc72 (bug 1290116)
Backed out changeset 6a4e8c92faae (bug 1290116)
Backed out changeset 0342d98afa10 (bug 1293690)
Backed out changeset d84b0768f0ce (bug 1293690)
Backed out changeset f9f62ade9508 (bug 1293690)
2016-08-17 21:16:43 -07:00
Ben Kelly
5f493ecd47
Bug 1293690 P1 Allow WorkerHolder::HoldWorker() callers to specify the status value they consider to be a failure. r=baku
2016-08-17 20:01:35 -07:00
Andrea Marchesini
a183983968
Bug 1264053 - MessagePort should support transferable objects in multi-e10s, r=sfink, r=smaug, r=jorendorff, r=janv
2016-07-21 15:29:42 +02:00
Andrea Marchesini
01bf6ba4a1
Bug 1288770 - Switch worker timeouts to using nsJSTimeoutHandler, r=smaug
2016-08-16 08:10:30 +02:00
Arthur Edelstein
215601494b
Bug 1174386 - Make workers inherit the default Intl locale from the main thread, rather than using a bogus fallback value. r=jwalden, r=baku
...
--HG--
extra : rebase_source : 09f66db9914cdf865388669082f3efaca37ce558
2016-08-08 13:33:39 -07:00
Sebastian Hengst
167156e726
Backed out changeset 2d5975fd02bd (bug 1288770) for asserting in ErrorResult.h when test test_errorPropagation.html runs. r=backout
2016-08-16 17:11:22 +02:00
Andrea Marchesini
780f93ea66
Bug 1288770 - Switch worker timeouts to using nsJSTimeoutHandler, r=smaug
2016-08-16 08:10:30 +02:00
Boris Zbarsky
3d925f861d
Bug 1291364. Make sure workers unmark things gray before passing them to JS_CallFunctionValue when running timeouts. r=terrence
2016-08-02 11:31:02 -07:00