Nikhil Marathe
85363ecf25
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.
2015-06-25 18:50:24 -07:00
Nikhil Marathe
e7b5f54992
Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku
2015-06-25 18:50:24 -07:00
Birunthan Mohanathas
a29151dc87
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
ca46507311
Bug 916893 - Patch 3 - Walk up worker chain to find correct window for WorkerNotificationObserver. r=khuey
...
In case of child workers.
2015-06-25 18:53:02 -07:00
Nikhil Marathe
48b8e5bbdf
Bug 916893 - Patch 2 - Deal with onclose. Some grammar fixes. r=wchen
2015-06-25 18:53:02 -07:00
Nikhil Marathe
cd760dad5b
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.
2015-06-25 18:53:02 -07:00
Ryan VanderMeulen
965e1e9b30
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
62718df3bb
Bug 1114554 - Patch 7 - Call BindToOwner on all threads. r=wchen
2015-05-22 14:55:40 -07:00
Nikhil Marathe
2f092bdd2a
Bug 1114554 - Patch 5 - getNotifications() on worker thread. r=wchen
2015-05-04 09:04:25 -04:00
Nikhil Marathe
88b7462150
Bug 1114554 - Patch 4 - ServiceWorkerRegistration.getNotifications() on main thread. r=wchen
2015-04-27 14:18:54 -07:00
Nikhil Marathe
242fe36854
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
2015-06-25 15:01:01 -07:00
Nikhil Marathe
1188d9bccc
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.
2015-05-06 13:52:41 -07:00
Nikhil Marathe
04147da9fa
Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku
2015-03-10 18:57:09 -07:00
Nikhil Marathe
c19491537a
Bug 916893 - Patch 3 - Walk up worker chain to find correct window for WorkerNotificationObserver. r=khuey
...
In case of child workers.
2015-04-28 13:15:51 -07:00
Nikhil Marathe
deae8fef1d
Bug 916893 - Patch 2 - Deal with onclose. Some grammar fixes. r=wchen
2015-04-27 11:54:48 -07:00
Nikhil Marathe
02f8317c80
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.
2015-06-25 11:36:53 -07:00
Terrence Cole
3ffd505617
Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink
2015-05-13 14:07:34 -07:00
Alexandre Lissy
3dfd4152df
Bug 960762 - Fix intermittence of Notification mochitests. r=mhenretty
2015-05-18 09:49:00 +02:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Andrew McCreight
c2319a1e13
Bug 1152551, part 1 - Remove leading tabs in dom/. r=baku
...
Also, remove trailing whitespace in nsXMLContentSink.cpp
2015-05-03 15:32:33 -04:00
Boris Zbarsky
789a3bf96e
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Boris Zbarsky
b2c93fc96e
Bug 1154366. Pass in a JSContext to StructuredCloneContainer::InitFromJSVal so it will throw its exceptions somewhere where people might see them. r=bholley
2015-04-16 13:22:15 -04:00
Kershaw Chang
d516b6b845
Bug 1020179 - Let PContent manage PContentPermissionRequest. r=fabrice, r=khuey
2015-04-13 21:08:00 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Kyle Huey
3f5b8810c4
Bug 1121673: Use move references in IPDL. r=bent
2015-01-16 11:58:52 -08:00
Ehsan Akhgari
1fcde464ff
Bug 1118803 - Mark virtual overridden functions as MOZ_OVERRIDE in misc DOM code; r=baku
2015-01-08 08:49:54 -05:00
Ehsan Akhgari
02d309afa1
Bug 1106116 - Load images for notifications triggered from private browsing windows as private; r=jdm
2014-11-28 14:08:29 -05:00
Olli Pettay
7ca90b0609
Bug 874050, Make Nofification's click event cancelable, r=wchen
2014-10-15 17:48:04 +03:00
Robert Bindar
9df7783250
Bug 980567 - Fix wrong icon URL resolving. r=mhenretty
2014-09-18 10:59:00 -04:00
Robert Bindar
d4adf00299
Bug 912645 - Add notification behavior dict support. r=baku, sr=sicking
2014-09-16 17:12:00 -04:00
Robert Bindar
27d7ceee0d
Bug 1054415 - delete notification from the database when observing alertfinished. r=mhenretty
2014-09-12 16:50:00 +02:00
Ehsan Akhgari
99fed18e00
Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
2014-09-01 18:26:43 -04:00
Birunthan Mohanathas
3c65b54ef2
Bug 1058101 - Move dom/src/notification/ into dom/. r=mccr8
2014-08-30 21:43:46 -07:00