Commit Graph

184 Commits

Author SHA1 Message Date
Kit Cambridge
e74c4e5540 Bug 1265828 - Remove persistent notifications from storage. r=wchen
MozReview-Commit-ID: DmegHA1YVsB

--HG--
extra : rebase_source : dfe052327a29b7b28d76f9c1993e6cff181471c9
2016-04-20 17:13:21 -07:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Ben Kelly
379983f49b Bug 1267357 Cycle collect NotificationPermissionRequest::mCallback. r=mccr8 2016-04-25 14:29:58 -07:00
Kit Cambridge
c8ec72b8aa Bug 1259148 - Test that dismissing the notification permission doorhanger resolves the promise with default. r=wchen
MozReview-Commit-ID: ASFqCCrKCQ9

--HG--
extra : rebase_source : a462bb624345f8278c54d627caff8d3546885783
2016-04-20 13:48:36 -07:00
Kit Cambridge
1aaa1d4598 Bug 1259148 - Notify content when the notification permission pop-up is dismissed by the user. r=past,wchen
MozReview-Commit-ID: 8CcgQcJDeie

--HG--
extra : rebase_source : 13c2dcc05030208e8f2ac7bc7746d09282d86843
2016-03-30 16:54:37 -07:00
Ben Kelly
a9a4f7363c Bug 1263307 P2 Make ServiceWorkerRegistrationInfo worker members private. r=jdm 2016-04-17 04:29:53 -07:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Kyle Huey
fe5f7b4105 Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz 2016-03-28 10:28:14 -07:00
Boris Zbarsky
5a9c81f6df Bug 1255298. Just pass through the JSContext when passing through the NotificationOptions in notification code. r=wchen 2016-03-10 18:07:28 -05:00
Michelangelo De Simone
3eb888db23 Bug 1250109 - Change DOMEventTargetHelper subclasses to not assume that GetOwner() is non-null, since it can be nulled out by navigation. r=bzbarsky
MozReview-Commit-ID: 8EGB58FWLi2

--HG--
extra : rebase_source : f8d190021ad92f707cfce554ced5c525cc528f4d
2016-03-04 13:37:50 -08:00
Boris Zbarsky
cd4aa08f02 Bug 1252130. Remove unnecessary JSContext argument from NotificationWorkerRunnable::WorkerRunInternal. r=khuey 2016-02-29 14:52:43 -05:00
Boris Zbarsky
f47268eca8 Bug 1252127. Remove unnecessary JSContext argument from PromiseWorkerProxy::CleanUp. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky
663b9bd562 Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky
72ba4a690b Bug 1251045 part 8. Remove the JSContext argument from some nsINotificationStorageCallback methods. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky
7345c5edb1 Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky
878fd26e89 Bug 1251045 part 3. Remove the JSContext argument of WorkerRunnable::PostDispatch and its overrides. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky
d0b2f4eeda Bug 1251045 part 2. Remove the JSContext argument of ModifyBusyCountFromWorker. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky
cc6606ed0d Bug 1250975. Stop passing a JSContext argument to WorkerRunnable::PreDispatch and its overrides. r=khuey 2016-02-25 16:05:39 -05:00
Wes Kocher
d66f0ad3fc Backed out changeset bb404647f14c (bug 1250975) for build bustage CLOSED TREE
--HG--
extra : commitid : KyFNIQ1ugVq
2016-02-25 13:41:09 -08:00
Boris Zbarsky
683b099eb9 Bug 1250975. Stop passing a JSContext argument to WorkerRunnable::PreDispatch and its overrides. r=khuey 2016-02-25 16:05:39 -05:00
Boris Zbarsky
27b59f54f7 Bug 1250291 part 1. Stop pretending to report exceptions in MainThreadStopSyncLoopRunnable::PostDispatch. r=khuey 2016-02-23 15:02:41 -05:00
Boris Zbarsky
015f8c141f Bug 1250185 part 2. Remove some JSContext stuff that's no longer needed in Notification code. r=khuey 2016-02-23 15:02:35 -05:00
Boris Zbarsky
e715be26bd Bug 1250185 part 1. nsIStructuredCloneContainer.initFromBase64 doesn't need a JSContext argument. r=khuey 2016-02-23 15:02:32 -05:00
Andrew McCreight
b80e656e9e Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08:00
Boris Zbarsky
13359b10de Bug 1249102. Make overrides of WorkerRunnable::PostRun a bit more consistent. r=khuey
Specifically we make the following changes:

1)  Remove WorkerSameThreadRunnable::PostRun, because it does exactly the same
things as WorkerRunnable::PostRun.

2)  Always treat ModifyBusyCountFromWorker as infallible in terms of throwing
JS exceptions.

3)  Change ExtendableFunctionalEventWorkerRunnable::PostRun to properly call
its superclass PostRun so we will correctly decrement the busy count our
PreDispatch incremented.

4)  Document why some overrides of PreDispatch/PostDispatch are needed and
don't call into the superclass
2016-02-18 18:02:51 -05:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Kit Cambridge
165b9138a5 Bug 1241278 - Record telemetry for notification permission callback usage. r=vladan
--HG--
extra : commitid : DyfF5zD7oBq
extra : rebase_source : 041591969af8c79c7da6b4e8c2f63941396b761f
2016-01-21 09:37:53 -08:00
Kit Cambridge
74ec586e11 Bug 1241278 - Change Notification.requestPermission() to return a promise. r=baku
--HG--
extra : commitid : Kl0YRQWwLkN
extra : rebase_source : ab9d18bad5b288f1c38ee2e1c7592d41f4dbaf7b
2016-01-20 14:23:04 -08:00
Kit Cambridge
426ea78303 Bug 1224771 - Close all web notifications when the originating tab is closed. r=wchen
--HG--
extra : commitid : 4AtjO7xJVTM
extra : rebase_source : 9841344b83f54eae0afc84cd2a7a95d38863e062
2015-12-29 15:06:28 -07:00
Nicholas Nethercote
ec89bbf7f2 Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Kit Cambridge
cc75f797d3 Bug 1227300, Part 6 - Use showAlert to display web notifications. r=wchen
--HG--
extra : commitid : 5nONFewHMrl
extra : rebase_source : 229904177cc611137572b8a6056025aeffe3ddca
2015-12-03 08:27:25 -08:00
Carsten "Tomcat" Book
537c84d51c Merge mozilla-central to mozilla-inbound 2015-12-21 11:54:26 +01:00
Bogdan Postelnicu
d3582953d6 Bug 1233714 - check the return value of Init() in order to prevent null pointer dereference on cx if it fails. r=smaug 2015-12-21 00:35:00 +01:00
Kit Cambridge
f9c7a31d28 Bug 1219030 - Collect notification management telemetry. r=wchen,MattN; p=ally
--HG--
extra : commitid : JvHyMCNBrk9
extra : amend_source : 72c46fbd3ead7ed3f101dd98114cb435a691c706
2015-11-13 21:22:59 -08:00
Kit Cambridge
d1e4feb4e5 Bug 1189998, Part 1 - Consolidate Push client interfaces. r=mt,dragana
--HG--
extra : commitid : GZtcmH86Wg4
extra : rebase_source : b1f7410370991819a29c9142d6dee11261f09905
2015-12-08 15:41:41 -05:00
Boris Zbarsky
0ad0a0ccb7 Bug 1230700. Make Notification::ShowInternal explicitly suppress the exception from GetPermissionInternal. r=smaug 2015-12-07 18:41:59 -05:00
Matthew Noorenberghe
6d5a7ae738 Bug 1225336 - Add telemetry about web notification display/messages. r=wchen,kitcambridge p=vladan
--HG--
extra : commitid : 7uiWZY4QGqE
2015-12-01 22:40:17 -08:00
Boris Zbarsky
d0184c54fe Bug 1224596 part 8. Switch Notification to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:20 -05:00
Boris Zbarsky
df75080cc3 Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8 2015-11-20 13:36:46 -05:00
William Chen
cfff602824 Bug 1210211 - Part 2: Notify Push service of visible notifications. r=baku
--HG--
extra : commitid : JIe7odI4Fgo
extra : rebase_source : f71dc1cf94def6ad72db773c1ba77473149f8359
2015-11-16 21:33:17 -08:00
Phil Ringnalda
6edbd4d1af Back out 3 changesets (bug 1210211) for b2g build bustage
CLOSED TREE

Backed out changeset 204a1746f421 (bug 1210211)
Backed out changeset e5d16111e809 (bug 1210211)
Backed out changeset b78d00c9af42 (bug 1210211)
2015-11-16 19:34:14 -08:00
William Chen
1677aaeb9a Bug 1210211 - Part 2: Notify Push service of visible notifications. r=baku
--HG--
extra : commitid : 7lTQ80hfQU6
extra : rebase_source : f31c7dd4c3dc9f9d4bb492791fd59c413268d22d
2015-11-16 13:20:15 -08:00
Kyle Huey
bdbb2ec50a Bug 1224061: Make Event::InitEvent infallible. r=smaug 2015-11-13 08:09:42 +08:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Kit Cambridge
a801ab1747 Bug 1212149 - e10s support for opening notification settings. r=wchen
--HG--
extra : commitid : 8SX4FBldeTR
extra : rebase_source : 6af638808188d36ac6e8ed97154b1bd0b138568d
extra : amend_source : 5dc80cecadd6ffae17f5e4ef0fd0960b71bad7fb
2015-10-22 15:20:51 -06:00
Kit Cambridge
ec05a62f84 Bug 1212129 - e10s support for disabling site notifications. r=wchen
--HG--
extra : commitid : DPxANWhtVhu
extra : rebase_source : ba1b2c4cc9a93f7acbc4b68936b808dfc3552294
2015-10-22 15:10:14 -06:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
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
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Nikhil Marathe
eeae6f0647 Bug 1114554 - Disable NotificationStorage debug logging. r=dholbert 2015-09-14 16:08:38 -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
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -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