Jeff Gilbert
5b753da289
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Boris Zbarsky
2cdc7450c3
Bug 1449631 part 10. Devirtualize AddEventListener. r=smaug
...
The CanCallerAccess check in the "webidl" version of
nsGlobalWindowOuter::AddEventListener was pointless, because bindings never
call things on outer windows.
MozReview-Commit-ID: 1CGMJ277bPu
2018-04-05 13:42:42 -04:00
Boris Zbarsky
88937275cc
Bug 1449631 part 9. Remove nsIDOMEventTarget::AddEventListener. r=smaug
...
Also switch the XPCOM-y version of EventTarget::AddEventListner to a
Nullable<bool> for aWantsUntrusted.
The three-arg overload of AddEventListener in ContentFrameMessageManager was
never called, so all the AddEventListener overloads there are not needed.
MozReview-Commit-ID: 4IhqHmPVWzE
2018-04-05 13:42:42 -04:00
Ben Kelly
75bf35692e
Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor
2018-02-22 14:28:39 -08:00
Chris Peterson
d09123f248
Bug 1436263 - Part 1: Replace final override
virtual function specifiers with just final
. r=froydnj
...
MozReview-Commit-ID: DE5HkIhsZ6D
--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Chris Peterson
37efe4d0e6
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Chung-Sheng Fu
672a1df7f9
Bug 1372073 - Suppress devicechange event. r=arthuredelstein,mchiang
...
MozReview-Commit-ID: JxxFbOMBQvY
--HG--
extra : rebase_source : 2e125657d05718e1dda387df306a9ac356c88bde
2017-09-19 09:56:48 +08:00
Chung-Sheng Fu
03debed820
Bug 1372073 - Spoof navigator.mediaDevices.enumerateDevices. r=arthuredelstein,jib,smaug
...
MozReview-Commit-ID: HubfB6M4UM0
--HG--
extra : rebase_source : 050065e484bdae32bf6cfcd730a6bfb626ad0508
2017-09-18 09:52:06 +08:00
Kris Maglione
60d080b412
Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
...
MozReview-Commit-ID: 8Oei6TuXNbu
--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Eric Rahm
9732475fe0
Bug 1389598 - Part 3: Remove gonk references from dom/ r=bkelly
...
--HG--
extra : rebase_source : 94a2b34b21cfde0c0ebda1045e9d30c6b88a1557
2017-08-11 17:42:11 -07:00
Bevis Tseng
95b18d794e
Bug 1382172
- Name nsITimerCallback instances in native implementation. r=billm
...
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Boris Zbarsky
6e7bd78dc6
Bug 1335368 part 16. Remove the use of IsCallerChrome in GetUserMedia. r=jib
2017-02-01 15:43:38 -05:00
Munro Mengjue Chiang
fc47b05585
Bug 1330350 - add holding mechanism to fix faulty device counter; r=jib
...
MozReview-Commit-ID: CIUucjaglK1
--HG--
extra : rebase_source : 128dbc5001a1211faa79cf3821c4a9ed00f01622
2017-01-27 00:08:06 +08:00
Munro Mengjue Chiang
890849be64
Bug 1317670 - call MediaManager::RemoveDeviceChangeCallback() in MediaDevices dtor; r=jib
...
MozReview-Commit-ID: 1G3tA2xWajZ
2016-11-21 14:59:51 +08:00
Munro Mengjue Chiang
4eb2d3e90d
Bug 1286429 - implement mediaDevices.ondevicechange for Mac OSX; r=jib,smaug
...
MozReview-Commit-ID: D1Jr6I4qPyr
--HG--
extra : rebase_source : 0f4a97da80d25923c9b6f6550b94039aefa88de5
2016-08-12 01:04:49 +08:00
Andreas Pehrson
2b29e6e205
Bug 1208371 - Do not require DOMLocalMediaStream for gUM (audioCapture). r=jib
...
MozReview-Commit-ID: K5rMQSZ11HF
--HG--
extra : rebase_source : 98191bbe2b912afa7ab2a14c481ece7b607558fd
2016-01-05 10:16:31 +08:00
Gerald Squelart
cb8bb9067d
Bug 1248308 - Fix dom/media non-unified build errors - r=jya
2016-02-17 08:55:33 +11:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08: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
Jan-Ivar Bruaroey
c76b35c716
Bug 1186209 - Check for VTYPE_EMPTY_ARRAY in enumerateDevices + test. r=jesup
...
--HG--
extra : transplant_source : %A7%B5%7D%3FM%A1%0A%5C7%853%A1%F4%DB%220cU7%C7
2015-07-22 13:04:12 -04:00
Jan-Ivar Bruaroey
88f4606bfa
Bug 1181428 - Move code to reuse test for active gum or persistent permission. r=mt
...
--HG--
extra : transplant_source : %1B%98O0t%95d%D5Y%C4%5C%8DMt%DC%94%03%A7%15%03
2015-07-09 23:07:42 -04:00
Jan-Ivar Bruaroey
7c38e6d825
Bug 1152381 - implement mediaDevices.getSupportedConstraints. r=smaug, r=jesup
2015-07-02 14:21:49 -04:00
Mike Hommey
924c9eb636
Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
...
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Denis Volk
32e981896d
Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj
2015-04-15 12:47:03 -04:00
Jan-Ivar Bruaroey
8af3083f44
Bug 1046245 - enumerateDevices session-persisted hmac id. r=jesup
2015-02-23 11:50:48 -05:00
Jan-Ivar Bruaroey
7538e95524
Bug 1046245 - enumerateDevices returns label for pages w/active gUM or persistent permissions. r=jesup
2015-03-03 09:51:05 -05:00
Jan-Ivar Bruaroey
b711b1abcf
Bug 1046245 - enumerateDevices (harmless interface version) r=smaug, r=jesup
2015-03-03 09:51:05 -05:00
Randell Jesup
2b3486247c
Backed out 6 changesets (bug 1046245) on a CLOSED TREE
2015-03-29 01:42:32 -04:00
Jan-Ivar Bruaroey
34c27979df
Bug 1046245 - enumerateDevices session-persisted hmac id. r=jesup
2015-02-23 11:50:48 -05:00
Jan-Ivar Bruaroey
2c6d1d99bc
Bug 1046245 - enumerateDevices returns label for pages w/active gUM or persistent permissions. r=jesup
2015-03-03 09:51:05 -05:00
Jan-Ivar Bruaroey
a0143ecf52
Bug 1046245 - enumerateDevices (harmless interface version). r=smaug, r=jesup
2015-03-03 09:51:05 -05:00
Phil Ringnalda
24b4f38005
Back out 6 changesets (bug 1046245) for thinking that MSVC would have anything to do with a __PRETTY_FUNCTION__
...
CLOSED TREE
Backed out changeset 9e3ecca831d8 (bug 1046245)
Backed out changeset 87dc145f4da8 (bug 1046245)
Backed out changeset 01606cf19a77 (bug 1046245)
Backed out changeset 2ed2b15fe940 (bug 1046245)
Backed out changeset 2b99b193828a (bug 1046245)
Backed out changeset d1ac67faccbb (bug 1046245)
2015-03-28 19:57:17 -07:00
Jan-Ivar Bruaroey
7d79ddc696
Bug 1046245 - enumerateDevices session-persisted hmac id. r=jesup
2015-02-23 11:50:48 -05:00
Jan-Ivar Bruaroey
6bea0d068b
Bug 1046245 - enumerateDevices returns label for pages w/active gUM or persistent permissions. r=jesup
2015-03-03 09:51:05 -05:00
Jan-Ivar Bruaroey
08e703b65e
Bug 1046245 - enumerateDevices (harmless interface version). r=smaug, r=jesup
2015-03-03 09:51:05 -05:00
Ryan VanderMeulen
003e8f5278
Backed out 6 changesets (bug 1046245) for bustage on a CLOSED TREE.
...
Backed out changeset 222c2f9e3bc9 (bug 1046245)
Backed out changeset 4251eef464a2 (bug 1046245)
Backed out changeset 592f4cc23197 (bug 1046245)
Backed out changeset 5bfb9a1c0550 (bug 1046245)
Backed out changeset e966a5df87b6 (bug 1046245)
Backed out changeset 609f3ca64004 (bug 1046245)
2015-03-28 16:24:25 -04:00
Jan-Ivar Bruaroey
600361d553
Bug 1046245 - enumerateDevices session-persisted hmac id. r=jesup
2015-02-23 11:50:48 -05:00
Jan-Ivar Bruaroey
4a058ae74a
Bug 1046245 - enumerateDevices returns label for pages w/active gUM or persistent permissions. r=jesup
2015-03-03 09:51:05 -05:00
Jan-Ivar Bruaroey
f33f50277c
Bug 1046245 - enumerateDevices (harmless interface version). r=smaug, r=jesup
2015-03-03 09:51:05 -05:00
Ehsan Akhgari
883849ee32
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
dc24477d79
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
Wes Kocher
126b4f108e
Backed out changeset bf25101e66cf (bug 1095098) for build bustage
2014-12-08 16:27:12 -08:00
Denis Volk
0f94bddfc8
Bug 1095098: move do_QueryObject templates into their own header r=froydnj
2014-11-20 12:20:10 +01:00
Jan-Ivar Bruaroey
9a214e3d2f
Bug 1033885 - add mediaDevices.getUserMedia with promises. r=bz, r=jesup
2014-09-20 02:20:41 -04:00