Commit Graph

60 Commits

Author SHA1 Message Date
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
Ben Kelly
50b08d7ef3 Bug 1433545 P2 Remove mScriptSpec from ServiceWorkerInfo and use mDescriptor.ScriptURL() instead. r=asuth 2018-01-31 08:29:50 -08:00
Ben Kelly
e2e2e36fd3 Bug 1433545 P1 Add scriptURL to ServiceWorkerDescriptor. r=asuth 2018-01-31 08:29:49 -08:00
Ben Kelly
0d6f124415 Bug 1433505 P3 Make ServiceWorkerRegistrationInfo use ServiceWorkerRegistrationDescriptor internally. r=asuth 2018-01-31 08:29:49 -08:00
Ben Kelly
84065537b6 Bug 1433505 P2 Make various class members on ServiceWorkerRegistrationInfo private. r=asuth 2018-01-31 08:29:49 -08:00
Ben Kelly
fcf562611d Bug 1433505 P1 Add the ServiceWorkerRegistrationDescriptor and backing IPC type. r=asuth 2018-01-31 08:29:49 -08:00
Catalin Badea
78f34395e1 Bug 1434599 - Enable test_workerupdatefoundevent.html. r=bkelly 2018-01-31 15:49:05 +00:00
Andrea Marchesini
26352bfee1 Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug 2018-01-31 08:25:30 +01:00
Andrea Marchesini
7e52540256 Bug 1432963 - Fixing workers headers - part 16 - JSSettings in a workerinternals namespace, r=smaug 2018-01-31 08:24:59 +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
063723a1f0 Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug 2018-01-31 08:23:44 +01:00
Andrea Marchesini
c4b257cdc6 Bug 1432963 - Fixing workers headers - part 12 - WorkerRunnable without workers namespace, r=smaug 2018-01-31 08:22:56 +01:00
Andrea Marchesini
2e874fc833 Bug 1432963 - Fixing workers headers - part 6 - Get rid of WorkerInlines.h, r=smaug 2018-01-31 08:20:42 +01:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Andrea Marchesini
9774cec092 Bug 1413112 - Fixing includes in dom/workers, r=bkelly 2018-01-30 10:14:00 +01:00
Andrea Marchesini
900cbdf1e3 Bug 1413112 - Separate files for WorkerDebugger, r=bkelly 2018-01-30 10:12:26 +01:00
Andrea Marchesini
3513d1c407 Bug 1413112 - Renaming Workers.h to WorkerCommon.h, r=bkelly
--HG--
rename : dom/workers/Workers.h => dom/workers/WorkerCommon.h
2018-01-30 10:10:04 +01:00