Peter Van der Beken
fc804325a9
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 5: Convert MessageManager globals to WebIDL. r=bz.
...
The change in browser_net_view-source-debugger.js is needed because we now use WebIDL callbacks for MessageListener, and they add async creation stack frames.
--HG--
extra : rebase_source : d7c026d8a77634ef2566feba78168beb8a66a552
2017-07-19 14:59:02 +02:00
Nika Layzell
dfe521f9b8
Bug 1416384 - Part 2c: Get nsGlobalWindowInner.cpp building, r=smaug
...
MozReview-Commit-ID: CmKx5jtvtrT
--HG--
extra : rebase_source : b1c5fe7c140a743d55c462b6d2bcbf8a97950d9c
2017-11-15 11:33:39 -05:00
Nika Layzell
c223b9ff2d
Bug 1414974 - Part 6: Change WebIDL bindings to refer to nsGlobalWindowInner rather than nsGlobalWindow, r=bz
...
MozReview-Commit-ID: KbCpDFoWyTe
2017-11-09 10:44:49 -05:00
Andrew McCreight
528237d25f
Bug 1401710 - Remove unused unsafe code from nsDOMClassInfo. r=bz
...
Also, the XPConnect() method is unused.
MozReview-Commit-ID: JycZIa9TbC8
--HG--
extra : rebase_source : b278e272696c1bf8403eb25cdb70a5ac546a56f4
2017-09-20 13:01:48 -07:00
Boris Zbarsky
9cdb2834a8
Bug 1371259 part 8. Get rid of nsIXPConnect::GetNativeOfWrapper. r=peterv
...
Most of these changes are just replacements of GetNativeOfWrapper with
UnwrapReflectorToISupports, which is all it did under the hood.
The other changes are as follows:
* In nsDOMClassInfo, we really care whether we have a window, so we can just
UNWRAP_OBJECT to the Window interface, since Window is always on Web IDL
bindings now. Also, the weird compartment check hasn't been needed ever since
GetNativeOfWrapper stopped returning things off the passed-in object's
prototype chain (Firefox 22, bug 658909).
* The only use of do_QueryWrapper was to get a Window in nsDocument; again we
can UNWRAP_OBJECT.
* In XPCJSRuntime, we again just want to check for a Window, so UNWRAP_OBJECT.
2017-07-10 16:05:25 -04:00
Peter Van der Beken
9b9495bf79
Bug 1252211 - Remove DOMCI for TreeSelection, XULCommandDispatcher and XULControllers. r=bz.
...
--HG--
extra : rebase_source : 5a24af4928dbd7754850c6e3ceff6646bfe58c93
2017-05-18 09:07:25 +02:00
Carsten "Tomcat" Book
4a5a3d9f30
Backed out changeset 2c51cdd42834 (bug 1252211) for bustage
2017-06-13 12:20:33 +02:00
Peter Van der Beken
9d549d2f23
Bug 1252211 - Remove DOMCI for TreeSelection, XULCommandDispatcher and XULControllers. r=bz.
...
--HG--
extra : rebase_source : db24985f7e8f6d4ca4df13015d565ec0063ba355
extra : source : f361697cb50b47dc4db94a6730b6604ab69217f5
2017-05-18 09:07:25 +02:00
Nicholas Nethercote
649a29a85f
Bug 1324330 (part 5) - Remove nsDOMClassInfo::mName. r=mccr8.
...
It's identical to the mClass.name.
--HG--
extra : rebase_source : 5697a1d7913335b6778de038f060ea51805076a2
2016-12-23 08:30:31 +11:00
Nicholas Nethercote
df925b776c
Bug 1321374 - Simplify js::Class handling relating to nsIXPCScriptable. r=mccr8, sr=bholley.
...
This patch removes XPCNativeScriptableShared and XPCNativeScriptableSharedMap,
which results in a net reduction of ~100 lines of code.
2016-12-14 08:33:46 +11:00
Nicholas Nethercote
f81fa28212
Bug 1322080 (part 3, attempt 2) - Remove nsIXPCScriptable::addProperty. r=peterv.
...
--HG--
extra : rebase_source : af5d98e2d84bd7592b499134e06c98821302f488
2016-12-02 17:37:55 +11:00
Nicholas Nethercote
113f0166f2
Bug 1322080 (part 1, attempt 2) - Remove nsEventTargetSH::doCreate(). r=peterv.
...
--HG--
extra : rebase_source : a00c73e5940053b4a84f850f6f66bad6d285e2e0
2016-12-02 16:37:31 +11:00
Carsten "Tomcat" Book
c80a07613f
Backed out changeset 6d2cb22d85b0 (bug 1322080) for xpcshell failures on 10.10 debug
2016-12-12 12:18:03 +01:00
Carsten "Tomcat" Book
5f2a9e53a6
Backed out changeset 9356d8836ca8 (bug 1322080)
2016-12-12 12:15:49 +01:00
Nicholas Nethercote
d307e2a3a9
Bug 1322080 (part 3) - Remove nsIXPCScriptable::addProperty. r=peterv.
...
The only non-trivial implementation of this method is in nsEventTargetSH, but
it's never called, so no point keeping it around. (Similar methods were removed
in bug 1132184 and bug 1132187.)
2016-12-02 17:37:55 +11:00
Nicholas Nethercote
f00c0d326b
Bug 1322080 (part 1) - Remove nsEventTargetSH::doCreate(). r=peterv.
...
It's unused.
--HG--
extra : rebase_source : 4757d2ccf82194dda566f26ccf432bb869f4edba
2016-12-02 16:37:31 +11:00
Boris Zbarsky
172598b4e2
Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley
...
In general, using an AutoJSAPI inited with an object is NOT the same as using
AutoSafeJSContext (or AutoJSAPI inited without an object) and then entering the
compartment of the object: the former will report exceptions to the global of
the object as it comes off the stack, while the latter will not. This only
really matters if we have an object from a window or worker global and hence
might fire error events, or report internal stuff to the web console.
The changes to initing with an object made in this bug are OK for the following
reasons:
1) dom/base/Console.cpp: Always clears its exception before coming off the stack.
2) dom/base/nsDOMClassInfo.cpp: Inits with a non-web global.
3) dom/base/nsFrameMessageManager.cpp: Inits with a non-web global.
4) dom/media/MediaPermissionGonk.cpp: We probably want the caller to notice if
anything here throws.
5) dom/xbl/nsXBLPrototypeBinding.cpp: Inits with a non-web global.
6) dom/xul/nsXULElement.cpp: Inits with a non-web global.
7) extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp: Inits with a non-web global.
8) ipc/testshell/XPCShellEnvironment.cpp: Inits with a non-web global.
2016-03-18 10:48:38 -04:00
Peter Van der Beken
946ac27409
Bug 1251655
- Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz.
...
--HG--
extra : rebase_source : 88c93e93905e20d2f6755d67d86902fdfc923eb4
2016-02-14 15:59:48 +01:00
Tom Schuster
4d6aaf2f25
Bug 1242214 - Rename JSPropertyDescriptor JS::PropertyDescriptor everywhere else. r=smaug
2016-01-28 11:28:04 +01:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Andrea Marchesini
5c1e2ee932
Bug 1156632 - Remove unused forward class declarations - patch 1 - dom/base, r=ehsan
2015-04-22 08:29:15 +02:00
Tom Schuster
ac250f9d73
Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv
2015-03-28 14:47:02 +01:00
Phil Ringnalda
70731646e2
Backed out changeset d72144153749 (bug 1147005) for being on top of a patch on top of a patch being backed out
...
CLOSED TREE
2015-03-28 10:39:09 -07:00
Tom Schuster
8a5dbf7c06
Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv
2015-03-28 14:47:02 +01: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
695383a67d
Bug 1139964 part 2. Add classinfo helpers for the various message manager stuff to install WebIDL Exposed=System things on those globals. r=smaug
2015-03-06 01:08:06 -05:00
Ehsan Akhgari
961f45f728
Bug 1117264 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/base code; r=baku
2015-01-06 11:52:45 -05:00
Tom Schuster
bc28949aec
Bug 993026 - Change XPIDLScriptable NewResolve to simpler Resolve. r=bholley
2014-11-08 01:07:12 +01:00
Boris Zbarsky
170752efc2
Bug 1019191 part 14. Remove the now-unused HasBitInInterfacesBitmap and all the interfaces bitmap machinery that ends up unused as a result. r=peterv
2014-10-22 11:40:49 -04:00
Bobby Holley
3090e7865a
Bug 1060521 - Remove infrastructure for Xrayed NewResolve, GetProperty, and SetProperty on XPCWrappedNatives. r=peterv
2014-09-15 14:13:02 +02:00
Boris Zbarsky
4532962c88
Bug 1017424 part 5. Remove classinfo for Window. r=peterv
2014-09-05 14:28:45 -04:00
Peter Van der Beken
2a4b38bbe9
Bug 1036186 - Reset Migration wizard no longer skips the first step to choose a browser. r=smaug.
...
--HG--
extra : rebase_source : 5fd0eed62b999eabf4a7a46300f4d74a6888b1f8
2014-08-08 15:03:29 +02:00
Ryan VanderMeulen
73c19b3d60
Backed out changeset 05e4c47f1e98 (bug 1036186) for Mulet mochitest bustage.
...
CLOSED TREE
2014-08-08 13:29:28 -04:00
Ehsan Akhgari
444cd1c72e
Bug 1050611 - Fix more bad implicit constructors in dom and docshell; r=smaug
2014-08-08 09:49:39 -04:00
Peter Van der Beken
ead2955f33
Bug 1036186 - Reset Migration wizard no longer skips the first step to choose a browser. r=smaug.
...
--HG--
extra : rebase_source : ba21f0355293c08c8b97eec9082c1a77a90f5c30
2014-08-08 15:03:29 +02:00
David Zbarsky
21dba40d04
Bug 1044305: Remove Location classinfo r=bz
2014-07-26 13:28:48 -04:00
Andrea Marchesini
3d909148b5
Bug 660237 - implement nsIDOMStorage with a proxy, r=bzbarsky, r=mayhemer
2014-07-23 01:07:12 -04:00
Benoit Jacob
ec742680c8
Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan
2014-06-23 15:56:07 -04:00
Ms2ger
76d7abad65
Bug 1017752 - Remove nsDOMClassInfo::GetArrayIndexFromId; r=jst
2014-06-06 10:06:26 +02:00
Ms2ger
7d5dc0457f
Bug 874212 - Move document.all to WebIDL; r=bz
...
The static jsids in nsDOMClassInfo are newly unused, except for sEnumerate_id,
which was unused before.
This also removes the test_nondomexception.html test, which relied on an
obscure detail of the exception being thrown from document.all; I haven't
found another API which does something equally silly.
2014-05-20 21:52:21 +02:00
Ms2ger
18857c4acb
Bug 995664 - Move CSSRuleList to WebIDL; r=bz
...
As CSSRuleList is the last consumer of nsArraySH and nsGenericArraySH, this
also removes those classes.
2014-05-03 09:32:54 +02:00
Jason Orendorff
4740c9dea6
Bug 547140, part 4 - Remove flags argument from resolve hooks. r=Waldo.
2014-04-25 16:11:02 -05:00
Ms2ger
f63e8cd248
Bug 738196 - Part b: move StyleSheetList to WebIDL; r=bz
2014-04-12 10:18:54 +02:00
Ed Morley
18e2a8f432
Backed out changeset 02d0214c5e37 (bug 738196)
2014-04-10 15:47:57 +01:00
Ms2ger
165fd8f857
Bug 738196 - Part b: move StyleSheetList to WebIDL; r=bz
2014-04-10 13:24:26 +02:00
Peter Van der Beken
a5a294c6c5
Bug 993710 - Don't return names when enumerating Navigator/Window if they wouldn't be resolved. r=bz.
...
--HG--
extra : rebase_source : e7fe3b2da1c2e1a00c02828d220545c83dedd554
2014-02-15 22:12:34 +01:00
Peter Van der Beken
9bbd30a4ac
Bug 990158 - Make inner windows use their wrapper cache. r=bz.
...
--HG--
extra : rebase_source : bc040c75280bb45ae7ab0ed302130ff5d7178153
2013-11-09 11:20:22 +01:00
Peter Van der Beken
04632f8c63
Bug 803106 part 2. Convert DOMStringList to WebIDL bindings - add WebIDL API and switch. r=bzbarsky
2013-07-09 13:54:21 -04:00
Ms2ger
1da7d7fb7c
Bug 968766 - Part a: Move the custom HTMLAllCollection code from nsDOMClassInfo.cpp to HTMLAllCollection.cpp; r=jst
2014-02-09 09:02:45 +01:00
Jon Coppeard
4df3aa4450
Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz
2014-01-31 09:55:20 +00:00