Commit Graph

76 Commits

Author SHA1 Message Date
Sebastian Hengst
226c2ef8a3 Backed out 3 changesets (bug 1432846) for build bustage on Windows at dom/serviceworkers/ServiceWorkerRegistrationImpl.cpp:301. CLOSED TREE
Backed out changeset 5e3b28d03b34 (bug 1432846)
Backed out changeset a2ae02b5fe72 (bug 1432846)
Backed out changeset a92cc56bbaa4 (bug 1432846)
2018-03-01 21:34:05 +02:00
Catalin Badea
8b92d81fee Bug 1432846 - Clear test state in between multiple runs. a=testonly 2018-03-01 17:21:22 +00:00
Catalin Badea
c2e89ca6b0 Bug 1432846 - Add test for self updating service worker. r=bkelly 2018-03-01 16:35:14 +00:00
Catalin Badea
2443202da8 Bug 1432846 - Delay update runnables from service workers that don't control any clients. r=bkelly 2018-03-01 16:34:48 +00:00
Ben Kelly
acdc46399c Bug 1441133 P2 Verify inherited frames do not trigger service worker storage assertions. r=asuth 2018-03-01 08:13:56 -08:00
Csoregi Natalia
1fd0486e23 Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Sebastian Hengst
6098a3cc4d merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-03-01 12:29:42 +02:00
Sebastian Hengst
3eb3941bc5 Backed out 2 changesets (bug 1441133) for build bustage in beta simulations at dom/clients/manager/ClientSource.cpp:402: unused variable 'wp'. a=backout
Backed out changeset 275855621865 (bug 1441133)
Backed out changeset 7a4546e25adc (bug 1441133)

--HG--
extra : histedit_source : d38746923972091f05ad8f435c39e7fe38e57a18
2018-03-01 11:55:28 +02:00
Ben Kelly
93c381f6bd Bug 1440705 P1 Make SWM clear the reserved client when performing an STS upgrade with child-process interception. r=asuth 2018-02-28 10:32:50 -08:00
Ben Kelly
897d177592 Bug 1441133 P2 Verify inherited frames do not trigger service worker storage assertions. r=asuth 2018-02-28 10:31:29 -08:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Tooru Fujisawa
9a32a77bc1 Bug 1435910 - Part 0.2: Add BrowserTestUtils.{promiseAlertDialogOpen,promiseAlertDialog}. r=Gijs 2018-02-28 10:36:42 +09:00
Olli Pettay
b7726493fb Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis 2017-11-17 11:01:27 +08:00
Ben Kelly
75bf35692e Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor 2018-02-22 14:28:39 -08:00
Ben Kelly
deec3fa995 Bug 1438541 P2 Make nsIGlobalObject::GetOrCreateServiceWorker() use the DOMEventTargetHelper list stored on the global. r=smaug 2018-02-21 10:53:52 -08:00
Ben Kelly
8a855818ec Bug 1437760 P1 Propagate the FetchEvent.request.url fragment to the synthesized Response.url. r=asuth 2018-02-21 07:28:32 -08:00
Ben Kelly
5ff28b6a7f Bug 1439212 Make ServiceWorkerRegistrationWorkerThread::ShowNotification() check for nullptr mWorkerPrivate. r=asuth 2018-02-19 12:07:48 -08:00
Ben Kelly
eb78122ad1 Bug 1439099 P3 Remove ServiceWorker::MatchesDescriptor() in favor of Descriptor().Matches(). r=asuth 2018-02-19 12:06:19 -08:00
Ben Kelly
e67b89fe1c Bug 1439099 P2 Remove ServiceWorkerRegistrationInfo::GetByID(). r=asuth 2018-02-19 12:06:19 -08:00
Ben Kelly
ced996a4df Bug 1439099 P1 Make ServiceWorker::Create() get the ServiceWorkerInfo using a full descriptor match instead of just by ID. r=asuth 2018-02-19 12:06:19 -08:00
Ben Kelly
10ffbe18cd Bug 1434701 P11 Make ServiceWorkerDescriptor use an Inner class with main and worker thread implementations. r=asuth 2018-02-14 14:23:17 -05:00
Ben Kelly
4d62353a57 Bug 1434701 P10 Fix ServiceWorker*Descriptor assinment to not crash when assigning a descriptor to itself. r=asuth 2018-02-14 14:23:17 -05:00
Ben Kelly
656dd52dc5 Bug 1434701 P9 move UpdateViaCache() into ServiceWorkerRegistration. r=asuth 2018-02-14 14:23:16 -05:00
Ben Kelly
b29c22e698 Bug 1434701 P8 Make ServiceWorkerRegistration own the ServiceWorker references itself and handle the descriptor update. r=asuth 2018-02-14 14:23:16 -05:00
Ben Kelly
bed54ad0bb Bug 1434701 P7 Store the registration descriptor in ServiceWorkerRegistration. r=asuth 2018-02-14 14:23:16 -05:00
Ben Kelly
3ebceab018 Bug 1434701 P6 Make ServiceWorkerRegistrationListener updates take a ServiceWorkerRegistrationDescriptor. r=asuth 2018-02-14 14:23:16 -05:00
Ben Kelly
010b72ac08 Bug 1434701 P5 Move main thread and worker implementation code into ServiceWorkerRegistrationImpl.cpp. r=asuth 2018-02-14 14:23:16 -05:00
Ben Kelly
74bf5d1616 Bug 1434701 P4 Move ServiceWorkerRegistrationListener into its own header. r=asuth 2018-02-14 14:23:15 -05:00
Ben Kelly
7506d48306 Bug 1434701 P3 Pass ServiceWorkerRegistrationDescriptor to ServiceWorkerRegistration::CreateForWorker(). r=asuth 2018-02-14 14:23:15 -05:00
Ben Kelly
6086e9a880 Bug 1434701 P2 Don't expose internal IPC headers in ServiceWorkerRegistrationDescriptor.h and other minor fixes. r=asuth 2018-02-14 14:23:15 -05:00
Ben Kelly
de795dbd34 Bug 1434701 P1 Make ServiceWorkerRegistration::CreateForMainThread() take a ServiceWorkerRegistrationDescriptor. r=catalinb r=asuth 2018-02-14 14:23:15 -05:00
Boris Zbarsky
69a93469da Bug 1436508 part 4. Remove some XPOM goop from ExtendableMessageEvent. r=masayuki
MozReview-Commit-ID: Hx9NYaslnCM
2018-02-09 11:17:08 -05:00
Andrew McCreight
b7bb86d0d4 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf

--HG--
extra : rebase_source : 72d949405c18e6d421422e7865182352eee0c407
2018-02-06 15:03:13 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Catalin Badea
fb0b064981 Bug 1434599 - Enable test_workerupdatefoundevent.html. r=bkelly
--HG--
extra : rebase_source : 3e5e40dec9190a3f359c2dd51c0634ab93b9a757
2018-02-02 06:12:00 +02:00
Boris Zbarsky
180fe6930c Bug 1435483 part 17. Remove nsIException::GetMessageMoz. r=qdot
MozReview-Commit-ID: GKzE812BfIF
2018-02-05 16:34:06 -05:00
Boris Zbarsky
12e9f78050 Bug 1435483 part 16. Switch to using dom::Exception, not nsIException, in C++ code. r=qdot
nsIException is builtinclass in idl, so whatever code we had to handle
non-dom::Exception nsIExceptions is dead code.

MozReview-Commit-ID: 6VnqDWt0041
2018-02-05 16:34:05 -05:00
Andrea Marchesini
8cdf705535 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Andrea Marchesini
9294ce8532 Bug 1435197 - Reduce the number of headers included in WorkerCommon.h, r=smaug 2018-02-02 17:35:28 +01:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Boris Zbarsky
478687c2e8 Bug 1434686 part 4. Use IgnoreErrors() in dom/. r=mystor
MozReview-Commit-ID: GwVDrTLPTOb
2018-02-01 14:21:14 -05:00
Noemi Erli
7c3f6909e2 Backed out changeset 87ef5029dd10 (bug 1434599) for failing in dom/serviceworkers/test/test_workerupdatefoundevent.html on a CLOSED TREE 2018-01-31 21:18:05 +02:00
Ben Kelly
db68b5ffd6 Bug 1434342 Follow-up to fix bustage on a CLOSED TREE. r=me 2018-01-31 09:27:21 -08:00
Ben Kelly
af73b55e78 Bug 1434342 P7 Use the global to GetOrCreate the ServiceWorker DOM instance. r=asuth 2018-01-31 09:10:27 -08:00
Ben Kelly
9dfb987159 Bug 1434342 P6 Make ServiceWorker call nsIGlobalObject::AddServiceWorker and RemoveServiceWorker. r=asuth 2018-01-31 09:10:26 -08:00
Ben Kelly
0ff28a0a92 Bug 1434342 P5 Support caching the ServiceWorker DOM instance on the global. r=asuth 2018-01-31 09:10:26 -08:00
Ben Kelly
00f7b788b7 Bug 1434342 P4 Make ServiceWorker operate on an abstract Inner interface that ServiceWorkerInfo implements. r=asuth 2018-01-31 09:10:26 -08:00
Ben Kelly
2508c997c6 Bug 1434342 P3 Make each ServiceWorker DOM object automatically fire its statechange event when appropriate. r=asuth 2018-01-31 09:10:26 -08:00
Ben Kelly
7427e49f90 Bug 1434342 P2 Make ServiceWorker store and use a ServiceWorkerDescriptor internally. r=asuth 2018-01-31 09:10:26 -08:00
Ben Kelly
231fc8a398 Bug 1434342 P1 Add ServiceWorker::Create() factory method. r=asuth 2018-01-31 09:10:25 -08:00