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