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

36 Коммитов

Автор SHA1 Сообщение Дата
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
Ben Kelly 4405c076b5 Bug 1471929 P3 Remove the old updatefound infrastructure in favor of always updating the registration state and auto-dispatch. r=mrbkap 2018-07-05 13:13:48 -04:00
Ben Kelly 1ab4221865 Bug 1471912 Set ServiceWorker objects to redundant state when RegistrationRemoved() is called. r=mrbkap 2018-07-05 13:13:47 -04:00
Ben Kelly 8dacbc94b9 Bug 1471706 P2 Maintain a version list of ServiceWorkerRegistrationInfo state changes. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly 241115d614 Bug 1471631 Move ServiceWorkerManager::AddRegistrationEventListener() code to ServiceWorkerRegistrationInfo. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly aa573bca77 Bug 1462772 P4 Route ServiceWorker state changes through the ServiceWorkerRegistration. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly cf73683dcf Bug 1466681 P6 Make ServiceWorkerRegistration::Inner::Unregister() use callbacks instead of MozPromise. r=asuth 2018-06-15 12:21:33 -07:00
Ben Kelly d9f9837869 Bug 1466681 P5 Make ServiceWorkerRegistration::Inner::Update() use callbacks instead of MozPromise. r=asuth 2018-06-15 12:21:33 -07:00
Ben Kelly 4f4a0da820 Bug 1465670 P8 Convert WorkerPrivate::LoadScriptAsPartOfLoadingServiceWorkerScript() to simply IsLoadWorkerScript(). r=asuth 2018-06-05 10:49:13 -07: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
Ben Kelly 2e65d96a69 Bug 1458953 Remove a verbose warning from ServiceWorkerRegistrationImpl. r=baku 2018-05-04 06:34:41 -07:00
Ben Kelly ebb0ae9748 Bug 1455695 P5 Remove unused ErrorResult argument from ServiceWorkerRegistration::Inner::Update(). r=baku 2018-04-30 07:55:02 -07:00
Ben Kelly 08c921af9d Bug 1455695 P4 Remove ServiceWorkerRegistration::Inner::GetNotifications(). r=baku 2018-04-30 07:55:01 -07:00
Ben Kelly 5ff559131c Bug 1455695 P3 Remove ServiceWorkerRegistration::Inner::ShowNotification(). r=baku 2018-04-30 07:55:01 -07:00
Ben Kelly 788509ed4f Bug 1455695 P2 Remove ServiceWorkerRegistration::Inner::GetPushManager(). r=baku 2018-04-30 07:55:01 -07:00
Ben Kelly 01ca898a1d Bug 1455695 P1 Make ServiceWorkerRegistration::Inner::Unregister() use MozPromise. r=baku 2018-04-30 07:55:01 -07:00
Ben Kelly 5da710f4ea Bug 1456466 P5 Make ServiceWorkerRegistration::Update() use DOMMozPromiseRequestHolder. r=baku 2018-04-26 13:52:30 -07:00
Ben Kelly c4abfe7ba3 Bug 1456466 P4 Make service worker MozPromise types reject with CopyableErrorResult. r=baku 2018-04-26 13:52:30 -07:00
Ben Kelly 9368ba6249 Bug 1456466 P2 Make ServiceWorkerRegistration::Inner::Update() use MozPromise and IPC-safe types. r=baku 2018-04-26 13:52:28 -07:00
Ben Kelly 4d9ff997d3 Bug 1450274 P2 Make ServiceWorkerRegistration use DETH::KeepAliveIfHasListenersFor(). r=asuth 2018-04-10 11:00:56 -07:00
Ben Kelly 020b7a4a64 Bug 1445475 - Make service worker self-update fallibly store its timer on the private and cleanup if that fails. r=catalinb 2018-03-22 07:45:00 -04:00
Andrea Marchesini 330807a747 Bug 1445554 - Remove the raw pointer WorkerPrivate from ServiceWorkerRegistrationImpl, r=catalinb 2018-03-15 08:57:05 +01:00
Andrea Marchesini 0f2dc46935 Bug 1445554 - Use of WorkerRef in ServiceWorkerRegistrationImpl, r=catalinb 2018-03-15 08:57:05 +01:00
Ben Kelly 5cf84a8b75 Bug 1438211 P9 Remove nsPIDOMWindowInner::GetServiceWorkerRegistration() and InvalidateServiceWorkerRegistration(). r=asuth
--HG--
extra : rebase_source : a02d0490415c01f7c3330de17f9040344b4b96d4
2018-03-02 13:02:50 -08:00
Ben Kelly cfe642ab1a Bug 1438211 P8 Hold the ServiceWorkerRegistration alive until the global is detached or the backing ServiceWorkerRegistrationInfo is removed. r=asuth
--HG--
extra : rebase_source : 476e6d6a55d5e2fdff41d87d86ce9d0818361a39
2018-03-08 13:43:33 -05:00
Catalin Badea d116fe517c Bug 1432846 - Delay update runnables from service workers that don't control any clients. r=bkelly 2018-03-02 11:40:53 +00:00
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 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 75bf35692e Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor 2018-02-22 14:28:39 -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 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 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