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

66 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book 71e22d0c44 merge mozilla-inbound to mozilla-central a=merge 2015-10-06 12:01:35 +02:00
Kit Cambridge 74ef03c1a6 Bug 1192458, Part 1 - Consolidate push and desktop notification permissions. r=nsm,wchen,MattN
--HG--
extra : commitid : 1veevVaOOYv
2015-10-05 16:39:34 -07:00
Matthew Noorenberghe 9736cd824c Bug 1208295 - Dispatch notifications-open-settings upon receiving alertsettingscallback so UI can open notification settings. r=nsm
alertsettingscallback only goes to the single observer whereas notifications-open-settings goes through the global observer service.

--HG--
extra : commitid : chMffpyqlT
extra : rebase_source : 35ff4a94fbf14899002a6f2395063bbdc124ff48
2015-09-25 13:18:29 -07:00
Wes Kocher 11e1d57e15 Backed out 3 changesets (bug 1208295) for build bustage CLOSED TREE
Backed out changeset ba930740225e (bug 1208295)
Backed out changeset 54f38580e0b8 (bug 1208295)
Backed out changeset a5907e5982a8 (bug 1208295)

--HG--
rename : browser/base/content/test/alerts/browser_notification_tab_switching.js => browser/base/content/test/general/browser_notification_tab_switching.js
rename : browser/base/content/test/alerts/file_dom_notifications.html => browser/base/content/test/general/file_dom_notifications.html
2015-10-05 12:20:47 -07:00
Matthew Noorenberghe e1c5e4bbbf Bug 1208295 - Dispatch notifications-open-settings upon receiving alertsettingscallback so UI can open notification settings. r=nsm
alertsettingscallback only goes to the single observer whereas notifications-open-settings goes through the global observer service.

--HG--
extra : commitid : BC7Pj6kNtNN
extra : rebase_source : 95170c48ae4fa852d1a87c82fc486e70a945fc7a
2015-09-25 13:18:29 -07:00
Andrew McCreight 5171450b27 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-05 09:38:14 -07:00
Wes Kocher f0d829220d Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE 2015-10-02 16:17:05 -07:00
Andrew McCreight 35cd15b8de Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 15:09:02 -07:00
Andrew McCreight 7a2c6267d4 Backed out changeset 6fa9cdf4002b for breaking the build. 2015-10-02 10:49:28 -07:00
Andrew McCreight 404740a102 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 10:42:08 -07:00
Wes Kocher 4ce68a706d Backed out 3 changesets (bug 1208295) for browser_offlineQuotaNotification.js bustage CLOSED TREE
Backed out changeset 1c16e9f4aa2f (bug 1208295)
Backed out changeset 3242ff9a86bb (bug 1208295)
Backed out changeset 04f2a2c320a3 (bug 1208295)
2015-09-25 18:20:35 -07:00
Matthew Noorenberghe 1db1a07bb8 Bug 1208295 - Dispatch notifications-open-settings upon receiving alertsettingscallback so UI can open notification settings. r=nsm
alertsettingscallback only goes to the single observer whereas notifications-open-settings goes through the global observer service.

--HG--
extra : commitid : 2akA3IUQCkx
extra : rebase_source : 40d5758f465fdf1b3e911584c4d9403c572f4a88
2015-09-25 13:18:29 -07:00
Matthew Noorenberghe 239d8c634b Bug 1205399 - Backend for disabling of notifications for a site from the UI. r=nsm
--HG--
extra : commitid : CuTe9Va08j0
extra : rebase_source : 0ec25adf7373df2726c1595a722e5ff82ec329b4
2015-09-25 13:18:28 -07:00
Nikhil Marathe 6d235278db Bug 1203324 - disable notifications on serviceworkers. r=ehsan,wchen
Per the product discussion, the Notification API should be disabled in
ServiceWorker in release builds for 42 since the UX isn't great [1].

The aim is to release in 44.

Apologies for the code duplication for pref checking in Notification and
ServiceWorkerRegistration. There isn't a easy way to get
ServiceWorkerRegistration's generated binding to include Notification.h without
having an attribute/method that uses Notification.

[1]: https://mana.mozilla.org/wiki/x/TgAJAw

--HG--
extra : commitid : 5dtc2E63kuM
extra : rebase_source : 4265dcd154462aa4f3b915e9e898fe7b82bf9afc
2015-09-15 12:58:32 -07:00
Nikhil Marathe d5c8bfc780 Bug 1197012 - Fix ThrowTypeError in Notification. r=mccr8
--HG--
extra : commitid : EfR8HuHT7WA
extra : rebase_source : 9d713b3293a1b0e08f2be6015a81a179e4aa1c0e
2015-08-20 22:18:49 -07:00
Nikhil Marathe 548809dc68 Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb
Get rid of having users dispatch control runnables. It was error prone and
required too much reasoning. It was also possible to end up in a state where
callers would dispatch a WorkerRunnable, which would succeed, so they would not
dispatch a WorkerControlRunnable. Then the worker would stop Running,
canceling and releasing the runnable leading to releasing the proxy in an
unclean state. Instead, we AddRef() and add the feature and remove the feature
and Release() on Notify(). If callers successfully run a WorkerRunnable they
clean the proxy. If not, the proxy stays alive until the worker switches to
Canceling state.

--HG--
extra : commitid : BnnijSibVYe
extra : rebase_source : 15f6810dfbd0c88a983196de401c55e782b1d1d8
2015-09-02 10:07:26 -07:00
Nikhil Marathe 0e5ea9a1e5 Bug 1199901 - Bustage fix due to rebase. a=bustage
Based on patch here https://reviewboard.mozilla.org/r/17787/diff/1/
CLOSED TREE

--HG--
extra : commitid : 6G7NhTioaaP
2015-09-02 09:07:14 -07:00
Nikhil Marathe 7bcbe18938 Bug 1199901 - GetOrigin() fails cleanly instead of asserting principal. r=wchen
When we use the XUL based alerts and the main firefox window is closed, the XUL
window still keeps the process running, but as the window closes it calls
DisconnectFromOwner() on the Notification. Later, when the XUL alert closes
(either due to timeout or due to script) attempts to get the principal can
fail. This patch allows that to happen and will just skip deleting the
Notification from persistent storage.

--HG--
extra : commitid : 9VuWbVu7mVk
extra : rebase_source : bfa6deecf217a3a20ceef524e4d2efd361de8e98
2015-09-01 12:08:36 -07:00
Nikhil Marathe ec602ad350 Bug 1199901 - Clear mObserver when WorkerNotificationObserver is destroyed. r=wchen
--HG--
extra : commitid : DJoltMlkzs3
extra : rebase_source : a488599dd4addd1baa73d2f706886c5c587a15e4
2015-08-31 13:17:13 -07:00
Nikhil Marathe 3fd16e37a0 Bug 1196079 - Always try to release Notification via normal WorkerRunnable first. r=wchen
--HG--
extra : commitid : 9vxblA1WA3i
extra : rebase_source : 86f5c81d20d55a41f7e6bb47fe5dc7df8e8504b1
2015-08-24 15:40:57 -07:00
Aryeh Gregor 5aeef0231d Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Nikhil Marathe 603eac64be Bug 1187018 - Ensure feature is nulled out if it does not get added. r=khuey
--HG--
extra : commitid : FdAv5R3QwMy
extra : rebase_source : 2bf4d65ceabf60d506b3120776d19c31e3726965
2015-07-24 10:25:00 -07:00
Aryeh Gregor 2311382621 Bug 1191305 - Alphabetize some includes; r=froydnj 2015-08-06 15:45:21 +03:00
Aryeh Gregor 80ea0a3e53 Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj
--HG--
rename : dom/bindings/OwningNonNull.h => xpcom/base/OwningNonNull.h
2015-08-05 15:28:27 +03:00
Olli Pettay a2c1faa15b Bug 1183954, Don't leak nsStructuredCloneContainer (use of 'auto' is error prone), r=leak 2015-08-02 12:34:26 +03:00
Nikhil Marathe 839a3bc3fb Bug 1183954 - Fix Notification.data structured cloning on workers. r=robertbindar,mccr8
Rather than store a non-thread-safe refcounted nsIStructuredCloneContainer, store the base64 representation.
Caches a jsval the first time an attempt to access data is made from content script.

--HG--
extra : commitid : Ijd82LTJaYo
extra : rebase_source : f82e837842037ea02efae3a0fc9b2b35c2a0d7d0
2015-07-30 12:44:14 -07:00
Ehsan Akhgari f138803ae9 Bug 1189090 - Rework the nsISupports implementation in the ScopeCheckingGetCallback and its subclasses; r=nsm 2015-07-30 01:05:04 -04:00
Robert Bindar 25dfda5b20 Bug 1114554 - Patch 9 - Fixed crash in b2g-desktop tests. r=nsm
--HG--
extra : rebase_source : 1b59acf04bcc9a8311bc7c6fe163b99c84eabe35
2015-07-13 13:45:17 -07:00
Nikhil Marathe 63f067319a Bug 1114554 - Patch 7 - Call BindToOwner on all threads. r=wchen
--HG--
extra : rebase_source : 044b40f169c8408b669cd8e5f01ae7de989ac310
2015-06-25 18:50:25 -07:00
Nikhil Marathe c8a46b6965 Bug 1114554 - Patch 5 - getNotifications() on worker thread. r=wchen
--HG--
extra : rebase_source : 7d42bf40e9228d3729e0a269d66fa427db3eb38f
2015-06-25 18:50:25 -07:00
Nikhil Marathe 0dcce8d9fe Bug 1114554 - Patch 4 - ServiceWorkerRegistration.getNotifications() on main thread. r=wchen
--HG--
extra : rebase_source : 094fa1eca4e3a9e303202ecaad4edf6cd816c065
2015-06-25 18:50:25 -07:00
Nikhil Marathe f35ee7d850 Bug 1114554 - Patch 3 - Fire notificationclick event on ServiceWorkerGlobalScope. r=wchen,baku
Bug 1114554 - Patch 3.1 - ServiceWorker principal fixes. r=baku

Bug 1162088 introduced origin attributes that ServiceWorkerManager callers have to use. This patch updates notificationclick events to work.

Folded:
Hide NotificationEvent behind pref

--HG--
extra : rebase_source : e892411834525b4c9b31d96d56ddf42634414040
2015-06-25 18:50:25 -07:00
Nikhil Marathe b3f34da652 Bug 1114554 - Patch 2 - ServiceWorkerRegistration.showNotification(). r=wchen,baku
Refactor creation and show dispatch so Notification constructor and showNotification can use it.
Move persistence to ShowInternal.
NotificationStorage calls callback async even when fetching from cache, simply to have similar semantics.
Calls to Notification::Get() are performed async since persistence is now async after being moved to ShowInternal().
Both are in accordance with the spec where the "append to list of notifications" operation is performed in the "show steps" which are performed in parallel from API invocations.

--HG--
extra : rebase_source : 52d3864fb39aa892d2f70dc2b71f09fb0d2ba533
2015-06-25 18:50:24 -07:00
Nikhil Marathe 0b129137a7 Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku
--HG--
extra : rebase_source : e033641ae9d271d1681c424f533db63671b3e735
2015-06-25 18:50:24 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Nikhil Marathe b2e80f822b Bug 916893 - Patch 3 - Walk up worker chain to find correct window for WorkerNotificationObserver. r=khuey
In case of child workers.

--HG--
extra : transplant_source : %29Y%8B%3C%F0%14%E6%95D%0B%FDa%9AeD%EB%82%C3F%FE
2015-06-25 18:53:02 -07:00
Nikhil Marathe 95c8d0e8a4 Bug 916893 - Patch 2 - Deal with onclose. Some grammar fixes. r=wchen
--HG--
extra : transplant_source : %07%BDN%A1%12%C9zM7%A4%EE%23%92g%C7%17%0C%12%89P
2015-06-25 18:53:02 -07:00
Nikhil Marathe 091eef6ff6 Bug 916893 - Patch 1 - Notification on workers. r=khuey,wchen
Does not implement the Service Worker API - https://notifications.spec.whatwg.org/#service-worker-api
***
Folded:
Bug 916893 - Better ownership model. r=khuey
Fix for bug found by ASan where we were touching the NotificationFeature after releasing it.

--HG--
extra : transplant_source : %3C%09F%99%CASF%1A%25%89X%D9%8C%0B%FAu%9D%27%E8w
2015-06-25 18:53:02 -07:00
Ryan VanderMeulen 84d140a54b Backed out 11 changesets (bug 916893, bug 1114554) for various mochitest and Gij failures.
Backed out changeset 247ca4bf258e (bug 1114554)
Backed out changeset 5578d5c280a6 (bug 1114554)
Backed out changeset 404830c1ecf7 (bug 1114554)
Backed out changeset 15bdf9c78e6e (bug 1114554)
Backed out changeset f92abe5ec784 (bug 1114554)
Backed out changeset 75324b6862a8 (bug 1114554)
Backed out changeset ce8a768782f2 (bug 1114554)
Backed out changeset 0d860fd12534 (bug 1114554)
Backed out changeset 7dc2448065a9 (bug 916893)
Backed out changeset c3b07f0d1a60 (bug 916893)
Backed out changeset 61c3f24cc908 (bug 916893)

CLOSED TREE
2015-06-25 19:52:40 -04:00
Nikhil Marathe 2c2eaf8dcd Bug 1114554 - Patch 7 - Call BindToOwner on all threads. r=wchen
--HG--
extra : rebase_source : 74a6e8080228fc556c5a298a2fe0dcfc9d2b7623
2015-05-22 14:55:40 -07:00
Nikhil Marathe 811edc788a Bug 1114554 - Patch 5 - getNotifications() on worker thread. r=wchen
--HG--
extra : rebase_source : b3f68e725be5cbfedc2995c9b20450e4bcaa1aae
2015-05-04 09:04:25 -04:00
Nikhil Marathe 54e0ea7180 Bug 1114554 - Patch 4 - ServiceWorkerRegistration.getNotifications() on main thread. r=wchen
--HG--
extra : rebase_source : 7963829964347156d091c2c8f492c546a9e5fdc0
extra : amend_source : a1bcbf20f5e4ab65b4214bc97d64deba9732b952
2015-04-27 14:18:54 -07:00
Nikhil Marathe 1abb9e59d8 Bug 1114554 - Patch 3 - Fire notificationclick event on ServiceWorkerGlobalScope. r=wchen,baku
Bug 1114554 - Patch 3.1 - ServiceWorker principal fixes. r=baku

Bug 1162088 introduced origin attributes that ServiceWorkerManager callers have to use. This patch updates notificationclick events to work.

Folded:
Hide NotificationEvent behind pref

--HG--
extra : rebase_source : b536cc6a6e0ba212f225a3638cf4140635628047
2015-06-25 15:01:01 -07:00
Nikhil Marathe 7df5ce7b58 Bug 1114554 - Patch 2 - ServiceWorkerRegistration.showNotification(). r=wchen,baku
Refactor creation and show dispatch so Notification constructor and showNotification can use it.
Move persistence to ShowInternal.
NotificationStorage calls callback async even when fetching from cache, simply to have similar semantics.
Calls to Notification::Get() are performed async since persistence is now async after being moved to ShowInternal().
Both are in accordance with the spec where the "append to list of notifications" operation is performed in the "show steps" which are performed in parallel from API invocations.

--HG--
extra : rebase_source : 1becb5055dc29166dc6445227bab4b9daed213cf
2015-05-06 13:52:41 -07:00
Nikhil Marathe 914907fc27 Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku
--HG--
extra : rebase_source : 10558f76070842454f22356d35b4f6639f990e29
2015-03-10 18:57:09 -07:00
Nikhil Marathe aa9aede669 Bug 916893 - Patch 3 - Walk up worker chain to find correct window for WorkerNotificationObserver. r=khuey
In case of child workers.

--HG--
extra : rebase_source : ff6df66fed60ea0daf4e0e580e783156db905232
2015-04-28 13:15:51 -07:00
Nikhil Marathe dd041eaaa0 Bug 916893 - Patch 2 - Deal with onclose. Some grammar fixes. r=wchen
--HG--
extra : rebase_source : 99ff5cfa3682a10394aca5b70712df444a03c140
2015-04-27 11:54:48 -07:00
Nikhil Marathe 6ecdd193cc Bug 916893 - Patch 1 - Notification on workers. r=khuey,wchen
Does not implement the Service Worker API - https://notifications.spec.whatwg.org/#service-worker-api
***
Folded:
Bug 916893 - Better ownership model. r=khuey
Fix for bug found by ASan where we were touching the NotificationFeature after releasing it.

--HG--
extra : rebase_source : 7522a4a51fda41726e7cf26b61fbf535c260fab3
2015-06-25 11:36:53 -07:00
Terrence Cole 161a4c26ba Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
Alexandre Lissy 888402fd1c Bug 960762 - Fix intermittence of Notification mochitests. r=mhenretty
--HG--
extra : rebase_source : b3fb515bef11781333661d96cdae024a27dcaa7b
2015-05-18 09:49:00 +02:00