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

362 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini a1f26d6d31 Bug 1502802 - Implement PostMessageOptions for Worker, r=smaug 2018-10-29 16:26:30 +01:00
Andrea Marchesini e4a7eded18 Bug 1500733 - Remove the support for BufferSource in createImageBitmap, r=aosmond 2018-10-23 23:35:43 +02:00
Jason Orendorff aaf539046b Bug 1491939 - Part 3: Centralize configuration of JS realm options from prefs. r=baku
Depends on D6554

Differential Revision: https://phabricator.services.mozilla.com/D6555

--HG--
extra : moz-landing-system : lando
2018-09-25 14:11:13 +00:00
Andrea Marchesini cfe495e70b Bug 1490165 - Workers.setTimeout/setInterval must handle CSP rejections, r=ckerschb 2018-09-17 17:53:10 +02:00
Andrea Marchesini 84efbc6ccd Bug 1489844 - Port DOMPrefs to StaticPrefs - part 1 - canvas_imagebitmap_extensions_enabled, r=ehsan 2018-09-10 20:36:14 +02:00
Andrew Sutherland 812da7fa44 Bug 1472303 - Backed out changeset 8a40d04dfcbb. r=asuth
The logic here to move our check was right, but our check was wrong.
Also, we landed a test that checked for our wrong implementation.

We need to correct our implementation and re-think the test.  The
right test might just be a mochitest, possibly with some Firefox-only
hooks involved.

--HG--
extra : rebase_source : 4d6b9a120adcee835f626098e8547c440a39f595
2018-08-24 10:24:28 -04:00
Blake Kaplan 1f4f71fbc2 Bug 1472303 - Block self-update from top level scripts. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D3221

--HG--
extra : moz-landing-system : lando
2018-08-22 20:00:19 +00:00
Jan de Mooij 01fa47134b Bug 1479363 part 4 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in dom/workers and dom/worklet. r=baku 2018-07-31 08:37:17 +02:00
Blake Kaplan 9581df5661 Bug 1476872 - Inform the microtask arch that we're shutting down. r=asuth
This should hopefully prevent races where we run promise handlers during
worker shutdown, when we're canceling regular events anyway.

Differential Revision: https://phabricator.services.mozilla.com/D2376

--HG--
extra : moz-landing-system : lando
2018-07-30 17:35:42 +00:00
Jan de Mooij 80adc67aba Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Boris Zbarsky 1914ffc8ec Bug 1450167. Stop using atom-or-string for event names in the listener manager. r=smaug
Now that we support atoms off the the main thread, we can just use atoms.
2018-07-24 18:15:19 -04:00
Ben Kelly 083c06c238 Bug 1462772 P1 Add a fallible nsIGlobalObject::GetServiceWorkerRegistration() method. r=mrbkap 2018-07-02 07:44:18 -07:00
Jeff Gilbert 5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Miko Mynttinen 4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
Jan de Mooij 6ac025d047 Bug 1464772 part 1 - Make JS_GetIsSecureContext take a realm instead of compartment and move to JS namespace. r=bz 2018-06-03 12:22:28 +02:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Jan de Mooij 17f3983d0f Bug 1461605 part 1 - Rename CompartmentOptions to RealmOptions. r=luke,bz 2018-05-17 10:59:45 +02:00
Jan de Mooij 80e44e8003 Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke 2018-05-16 10:53:16 +02:00
Andreas Farre 21d26b0afe Bug 1450066 - Fall back to 0 if setInterval interval not supplied. r=bkelly
--HG--
extra : rebase_source : 55bacede7cacd5b18f710a303acf077e777e817b
2018-05-03 06:20:00 +03:00
Ben Kelly 00d42d9d6b Bug 1457157 P2 Clear a worker's ClientSource when it reaches Terminating. r=baku 2018-05-02 06:29:26 -07:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Ben Kelly a2fce061cf Bug 1450274 P3 Make WorkerGlobalScope call DisconnectEventTargetObjects() when the worker reaches the Terminating state. r=baku 2018-04-10 11:00:57 -07:00
Boris Zbarsky 2cdc7450c3 Bug 1449631 part 10. Devirtualize AddEventListener. r=smaug
The CanCallerAccess check in the "webidl" version of
nsGlobalWindowOuter::AddEventListener was pointless, because bindings never
call things on outer windows.

MozReview-Commit-ID: 1CGMJ277bPu
2018-04-05 13:42:42 -04:00
Andrea Marchesini 6f7a4bfd5d Bug 1445199 - Remove JSContext parameter in worker NotifyHolder, r=smaug 2018-03-13 15:25:50 +01:00
Ben Kelly 5706606e9b Bug 1438211 P5 Replace direct window/worker calls with nsIGlobalObject::GetOrCreateServiceWorkerRegistration(). r=asuth
--HG--
extra : rebase_source : 2b0f83a5e5a6e5eeac9e1401168c6653b6250c23
2018-03-02 13:02:50 -08:00
Ben Kelly b7cbf79c03 Bug 1438211 P4 Actually set the worker global on ServiceWorkerRegistration. r=asuth
--HG--
extra : rebase_source : 402ab15468191e61d597a246e1f2d8a05f8ee03a
2018-03-02 13:02:50 -08:00
Ben Kelly 84799ae3d5 Bug 1438211 P3 Implement WorkerGlobalScope::GetOrCreateServiceWorkerRegistration(). r=asuth
--HG--
extra : rebase_source : 3e6d360edafe30f95a355df25705ab4150372c8f
2018-03-02 13:02:49 -08:00
Boris Zbarsky 6e53866b8e Bug 1442313 part 3. Expose, test-only, getJSTestingFunctions() in workers. r=bkelly
MozReview-Commit-ID: LiErRvJ6CTH
2018-03-01 14:24:20 -05:00
Andreea Pavel 14a1838c54 Backed out 4 changesets (bug 1442313) for frequently failing crashtests on android, e.g. libeditor/crashtests/772282.html and layout/generic/crashtests/542136-1.html a=backout
Backed out changeset bfef9139500f (bug 1442313)
Backed out changeset 660332ce1bf0 (bug 1442313)
Backed out changeset 9788a46b8874 (bug 1442313)
Backed out changeset 8fc2c103027b (bug 1442313)
2018-03-02 18:08:23 +02:00
Boris Zbarsky 9a576eb44d Bug 1442313 part 3. Expose, test-only, getJSTestingFunctions() in workers. r=bkelly
MozReview-Commit-ID: LiErRvJ6CTH
2018-03-01 14:24:20 -05:00
Andrea Marchesini 370acd6950 Bug 1439686 - Console API should print logs on stdout when used by chrome code and if browser.dom.window.dump.enabled is true, r=bgrins 2018-02-22 08:49:51 +01:00
Ben Kelly 7506d48306 Bug 1434701 P3 Pass ServiceWorkerRegistrationDescriptor to ServiceWorkerRegistration::CreateForWorker(). r=asuth 2018-02-14 14:23:15 -05:00
Adrian Wielgosik 1438296c97 Bug 1436865 - Remove nsIDOMCrypto. r=bz
MozReview-Commit-ID: 4bQVSF94bbz

--HG--
extra : rebase_source : 6386e08c4a392b75473c47997e6cf01d35be78e2
2018-02-08 13:22:20 +01:00
Andrea Marchesini 8cdf705535 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Andrea Marchesini a5bed23bd8 Bug 1432963 - Fixing workers headers - part 15 - static function in a workers namespace, r=smaug 2018-01-31 08:24:30 +01:00
Andrea Marchesini 2c7c69af24 Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug 2018-01-31 08:24:08 +01:00
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 cfa537d14f Bug 1413112 - Move WorkerLoadInfo into separate files, r=bkelly 2018-01-30 10:12:04 +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 eecacb4a97 Bug 1429486 Expose GetClientInfo() and GetController() on nsIGlobalObject. r=asuth 2018-01-11 20:46:08 -05:00
Andrea Marchesini 9a25904cf8 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 2 - image bitmap, r=asuth 2018-01-08 14:05:03 +01:00
Andrea Marchesini 1a7b13aab4 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 1 - dump enabled, r=asuth 2018-01-08 14:05:03 +01:00
Andrea Marchesini 797ef68515 Bug 1425463 - Expose Console API to JSM, r=smaug 2017-12-20 14:35:34 +01:00
Ben Kelly cfb0e62f7b Bug 1293277 P5 Switch bindings over to new Client and Clients classes. r=baku 2017-12-12 15:44:47 -05:00
Ben Kelly 7fb7be80ac Bug 1293277 P3 Remove the dom.serviceWorkers.openWindow.enabled pref. r=baku 2017-12-12 15:44:47 -05: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
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Ben Kelly db5d0c6b04 Bug 1379243 P4 Make worker EventTargetFor() return a "hybrid" WorkerEventTarget. r=baku 2017-07-21 08:16:24 -07:00