Ms2ger
24bcddcf77
Bug 845374 - Part l: Stop including nsIDocument.h in nsContentUtils.h and fix two nits; r=khuey
2013-03-17 08:55:15 +01:00
Bobby Holley
5bc91d7db4
Bug 658909 - Tests. r=mrbkap
2013-03-16 22:58:17 -07:00
Bobby Holley
d550f0d79d
Bug 658909 - Port tearoff-handling guts of GWNOJO to XPCCallContext and remove GWNOJO. r=mrbkap
2013-03-16 22:58:17 -07:00
Bobby Holley
874f086851
Bug 658909 - Remove GWNOJO from PreserveWrapper. r=mrbkap
2013-03-16 22:58:16 -07:00
Bobby Holley
d8cb9aeca4
Bug 658909 - Remove GWNOJO from AccessCheck. r=mrbkap
2013-03-16 22:58:16 -07:00
Bobby Holley
d0cd3ac168
Bug 658909 - Remove GWNOJO from nsXPConnect. r=mrbkap
2013-03-16 22:58:16 -07:00
Bobby Holley
3d757075f3
Bug 658909 - Remove GWNOJO from XPCVariant. r=mrbkap
...
The old code seems to be deciding whether we have a double-wrapped object by
checking _either_ the rv of GWNOJO _or_ the potential slim wrapper. This is
nonsensical, because double-wrapped objects are never slim wrappers.
Furthermore, that variable here is named 'proto', which further suggests
that this code is nonsensical. So let's just check for WNs.
Also, it seems pretty wack to be innerizing here before storing the jsval,
but I'm going to leave that for now.
2013-03-16 22:58:16 -07:00
Bobby Holley
8e8f39d378
Bug 658909 - Remove GWNOJO from XPCJSID. r=mrbkap
2013-03-16 22:58:15 -07:00
Bobby Holley
a8c785d855
Bug 658909 - Remove GWNOJO from JSValToXPCException. r=mrbkap
2013-03-16 22:58:15 -07:00
Bobby Holley
e2dd3437b4
Bug 658909 - Remove GWNOJO from JSObject2NativeInterface. r=mrbkap
2013-03-16 22:58:15 -07:00
Bobby Holley
5d5d5bcfac
Bug 658909 - Remove GWNOJO for helper stubs. r=mrbkap
2013-03-16 22:58:15 -07:00
Bobby Holley
acebe495da
Bug 658909 - Remove GWNOJO from MarkWrappedNative. r=mrbkap
2013-03-16 22:58:15 -07:00
Bobby Holley
d09761116c
Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap
2013-03-16 22:58:15 -07:00
Bobby Holley
d18489beb3
Bug 658909 - Stop doing all the crazy stuff in GetWrappedNativeOfJSObject. r=mrbkap
2013-03-16 22:58:14 -07:00
Bobby Holley
0517579b24
Bug 658909 - Add a hack to support calling nohelper XPCWN methods without the proper |this|. r=mrbkap
2013-03-16 22:58:14 -07:00
Bobby Holley
6db2f10d4c
Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap
2013-03-16 22:58:14 -07:00
Bobby Holley
0ac4a08fc8
Bug 658909 - Set args at XPCCallContext construct time in XPC_WN_GetterSetter. r=mrbkap
...
It's not clear to me why it's done this way, but it confuses our ability to
determine during wrapper lookup whether we're doing a set or a get. This aligns
the behavior with XPC_WN_CallMethod, including passing JSID_VOID for the name
(which is safe because XPCCallContext explicitly special-cases JSID_VOID and
doesn't call SetName in that case).
2013-03-16 22:58:13 -07:00
Bobby Holley
3e05c5d01b
Bug 658909 - Initialize the same fields in both XPCCallContext constructors. r=mrbkap
...
This is a huge footgun. XPCCallContext is hot, but it's not too hot to be safe
here. Garbage XPCWN and JSObject pointers are bad.
2013-03-16 22:58:13 -07:00
Bobby Holley
7d252db9d9
Bug 658909 - Remove unnecessary ccx param. r=mrbkap
2013-03-16 22:58:13 -07:00
Bobby Holley
98ec54a6bc
Bug 658909 - Make isSafeToUnwrap pseudo-dynamic for SOWs. r=mrbkap
...
This can go away as soon as XBL scopes are no longer behind a pref.
2013-03-16 22:58:13 -07:00
Bobby Holley
b2282e03e7
Bug 658909 - Force |this| computation in SandboxCallableProxyHandler::call when using Xrays. r=bz
...
Comment says it all.
2013-03-16 22:58:12 -07:00
Bill McCloskey
bfa3037d1f
Bug 759585 - Zones (r=jonco,bhackett,njn,dvander,luke,bz,mccr8,bholley)
2013-03-16 20:36:37 -07:00
Benoit Girard
6ed333dbb5
Bug 851611 - Part 3: Rename headers. r=jrmuizel
...
--HG--
rename : tools/profiler/sampler.h => tools/profiler/GeckoProfiler.h
rename : tools/profiler/sps_sampler.h => tools/profiler/GeckoProfilerImpl.h
extra : rebase_source : 6ea7c660764a4390cdd8dd91561fff1d7bad6035
2013-03-18 15:25:50 +01:00
Jan de Mooij
db8e01a145
Merge from mozilla-inbound.
...
--HG--
rename : content/svg/content/src/nsSVGFilters.cpp => content/svg/content/src/SVGFEPointLightElement.cpp
rename : content/svg/content/src/nsSVGFilters.cpp => content/svg/content/src/SVGFEPointLightElement.h
2013-03-14 10:50:28 +01:00
Jan de Mooij
10a8f6f65b
Merge from mozilla-central.
2013-03-13 11:38:41 +01:00
Jan de Mooij
07f2a253be
Merge from mozilla-central.
...
--HG--
rename : content/html/content/src/nsMediaFragmentURIParser.cpp => netwerk/base/src/nsMediaFragmentURIParser.cpp
rename : content/html/content/src/nsMediaFragmentURIParser.h => netwerk/base/src/nsMediaFragmentURIParser.h
2013-03-12 10:09:17 +01:00
Gregory Szorc
94ec89296d
Bug 844654 - Part 3: Remove now empty Makefile.in files; rs=khuey
...
--HG--
extra : rebase_source : 8de9c7f68a953e574dda22f8c14c2b2ca60444f9
2013-03-19 18:49:07 -07:00
Bobby Holley
1e45639054
Bug 849730 - Let objectClassIs through for COWs. r=mrbkap
2013-03-13 14:48:59 -07:00
Mike Shal
ea1d9b8ba7
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Jan de Mooij
1f27eb1ac2
Merge from mozilla-central.
2013-03-11 15:18:12 +01:00
Ms2ger
a75666050c
Bug 847195 - Make NamedNodeMap only deal with Attrs; r=khuey
...
--HG--
rename : dom/interfaces/core/nsIDOMNamedNodeMap.idl => dom/interfaces/core/nsIDOMMozNamedAttrMap.idl
2013-03-10 09:00:33 +01:00
Ms2ger
d805e77871
Bug 825285 - Part b: Move ArchiveReader to Paris bindings, remove XPCOM goop; r=khuey
2013-03-10 08:57:14 +01:00
Jan de Mooij
cd6f3e3973
Merge from mozilla-central.
2013-03-08 09:57:47 +01:00
Ed Morley
47bc17c5f5
Backed out changeset d195190adc48 (bug 851611)
...
--HG--
rename : tools/profiler/GeckoProfiler.h => tools/profiler/sampler.h
rename : tools/profiler/GeckoProfilerImpl.h => tools/profiler/sps_sampler.h
2013-03-18 14:10:30 +00:00
Benoit Girard
90f13c7e56
Bug 851611 - Part 3: Rename headers. r=jrmuizel
...
--HG--
rename : tools/profiler/sampler.h => tools/profiler/GeckoProfiler.h
rename : tools/profiler/sps_sampler.h => tools/profiler/GeckoProfilerImpl.h
extra : rebase_source : 552fe1d3ff61d15b264aaf86f7c8cb4f4eff69d1
2013-03-18 14:41:02 +01:00
Jan de Mooij
49c6009009
Bug 848374 - Have a single allocator per compartment for optimized stubs. r=djvj,njn
2013-03-07 11:42:24 +01:00
Jan de Mooij
20ede1cf45
Merge from mozilla-central.
2013-03-07 10:39:16 +01:00
Peter Van der Beken
a3e531e6f0
Fix for bug 853136 (Prepare some tests for HTMLDocument using a WebIDL binding). r=bholley.
...
--HG--
extra : rebase_source : 0a19404b8d40075488568e179088e3c41ee8c4e4
2013-03-14 14:50:46 +01:00
Boris Zbarsky
b78a02dc00
Bug 855582 part 2. Make the bindings' various spec arrays const, and make the jitinfo structs static. r=khuey
2013-04-02 20:20:38 -04:00
Jan de Mooij
983c973cfe
Merge from mozilla-central.
2013-03-06 16:18:00 +01:00
Jan de Mooij
1e2840405c
Bug 846733 - Add baseline compiler memory reporters. r=djvj
2013-03-05 10:53:54 +01:00
Ryan VanderMeulen
0b368bf371
Backed out changeset e44bc308642a (bug 813901) and changeset 19f154ee6f54 (bug 850000) for bustage on a CLOSED TREE.
2013-03-13 13:22:14 -04:00
Jon Coppeard
6d69a696e4
Bug 853028 - GC: Fix some rooting issues found by static analysis r=terrence
...
--HG--
extra : rebase_source : a1d340a00516ae890c98fa7420497e85526823fc
2013-03-21 12:56:58 +00:00
Daniel Holbert
0d1377f7a3
Bug 849086: Remove unused *_CLASSNAME defines. r=bsmedberg
2013-03-15 10:52:10 -07:00
Bobby Holley
9fa1540293
Bug 854019 - Continue checking the XBL bit if remote XUL disables XBL scopes. r=bz
2013-03-24 09:27:10 -07:00
Bobby Holley
59a14ae12f
Bug 853571 - Tests. r=bz
2013-03-24 09:27:10 -07:00
Bobby Holley
232e0f349e
Bug 853571 - Do special detection for sandboxPrototype to make sure the source gets set up right in postMessage. r=bz
2013-03-24 09:27:10 -07:00
Terrence Cole
992bd33213
Bug 851340 - Make the rooting of scripts in nsXULPrototypeCache more efficient; r=smaug
2013-03-19 10:20:21 -07:00
Terrence Cole
e0dc40c806
Bug 848608 - Make eagerlyTraceWeakMaps an enum; r=billm
...
--HG--
extra : rebase_source : 20558f611dda644f966d4660b88895a0cbc5c7d1
2013-03-07 10:49:30 -08:00
Bobby Holley
5441778924
Bug 813901 - Tests. r=mrbkap
2013-03-13 10:01:36 -07:00
Eddy Bruel
193967352e
Bug 789897 - Implement isExtensible and preventExtensions traps for proxies, including scriptable direct proxies, and in the various wrapper classes. Also move non-static JSObject::preventExtensions to static ObjectImpl::preventExtensions, for handle correctness. Patch is a semi-tag-team effort with jwalden. r=jwalden, r=ejpbruel, r=bholley, r=two-turtle-doves-and-a-partridge-in-a-pear-tree
...
--HG--
extra : rebase_source : 156d2c22499372fceb60d130e363a3685e68b9fc
2013-03-22 19:43:03 -07:00
Kyle Machulis
d2b6e6e01a
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
5663b98bc5
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Ryan VanderMeulen
7e1725db21
Backed out bug 789897 due to regressions.
2013-03-29 14:07:32 -04:00
Terrence Cole
f69194b367
Bug 765432 - Make JS_IsAboutToBeFinalized indirect; r=bholley,billm
2013-03-28 13:27:29 -07:00
Igor Bukanov
1ea05be2db
Bug 743436 - remove XPCJSRuntime::mJSCycleCollectionContext and related code. r=peterv
...
The patch removes no longer used XPCJSRuntime::mJSCycleCollectionContext,
nsXPConnect::mCycleCollectionContext and related code to create/destroy
contexts. As that made nsCycleCollectionJSRuntime::FinishTraverse() empty
in all cases I removed that method as well.
2013-02-27 11:33:12 -08:00
Bobby Holley
d9e8801803
Bug 856257 - Clean up nsXPConnect sandbox API a bit. r=mrbkap
2013-04-02 09:45:01 -07:00
Matt Brubeck
aaac2a55c2
Back out bug 839103 for build errors on a CLOSED TREE
2013-04-02 08:18:27 -07:00
Nathan Froyd
a89c4e1a98
Bug 839103 - part 3 - send StyleSheet{Added,Removed} chrome notifications when stylesheets are added/removed; r=bz
2013-03-27 14:16:50 -04:00
Bobby Holley
72c6ad5e13
Bug 825697 - Check for all wrapper types. r=mrbkap
2013-03-11 10:13:25 -07:00
Neil Deakin
effc6c1616
Bug 407983, add clipboard events constructor, r=smaug
2013-03-11 11:49:56 -04:00
Bill McCloskey
15ccdb3cef
Bug 846890 - Avoid check for native anonymous content when possible (r=bholley)
2013-03-08 18:49:36 -08:00
Gregory Szorc
56a7634c1c
Merge mozilla-central into build-system
2013-03-13 08:20:09 -07:00
Gregory Szorc
3d694a85c0
Merge mozilla-central into build-system
...
dom/interfaces/svg/Makefile.in and dom/media/Makefile.in had merge
conflicts. They were resolved by hand. The former needed 2 IDLs removed.
The latter had a context conflict for EXPORTS_NAMESPACES.
2013-03-12 13:04:55 -07:00
Gregory Szorc
629b5d86c6
Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
...
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Benjamin Peterson
47c4676421
Bug 779233 - Count script filenames as part of script source memory. r=njn
...
--HG--
extra : rebase_source : f8c6e2d0867f172a68bac2242dd401db89c92236
2013-03-12 21:56:57 -05:00
Julian Seward
19b79317be
Bug 779291: Implement SPS stackwalk using the breakpad unwinder. r=bgirard,glandium
2013-03-10 23:00:23 +01:00
Gene Lian
0517e30d1d
Bug 852911 - B2G MMS: fail to expose correct nsIDOMMozMmsMessage.attachments. r=smaug
2013-03-21 14:49:23 +08:00
Boris Zbarsky
615c1738c3
Bug 776536 part 4. Turn on WebIDL bindings for NodeIterator and TreeWalker. r=peterv
...
The behavior here is a bit weird because Document is still not a
WebIDL object, so calling createNodeIterator or createTreeWalker via
an Xray will call the XPCOM versions of those methods. That means
that I can't just disable XPCOM-based wrapping for TreeWalker and
NodeIterator altogether, unfortunately, which means a web page could
try stashing a TreeWalker in something like userdata and then getting
it back and end up wrapping it as an XPCOM object the second time.
I could "fix" that by adding a wrapper cache and whatnot, I guess, if
desired... But the problem will go away once we convert Document in
any case.
2013-02-28 12:56:42 -05:00
Boris Zbarsky
3875ee73e3
Bug 843261. Add support for sequence<DOMString> arguments in WebIDL callbacks. r=peterv
...
This does allow people to accidentally hit the slower path through use
of non-const strings, but I think that's OK now that we're mostly
autogenerating this stuff
2013-02-28 12:56:41 -05:00
Ryan VanderMeulen
238b010bd5
Backed out 7 changesets (bug 832920, bug 776536, bug 843261) for mochitest-a11y assertions on a CLOSED TREE.
...
--HG--
rename : content/base/src/NodeIterator.cpp => content/base/src/nsNodeIterator.cpp
rename : content/base/src/NodeIterator.h => content/base/src/nsNodeIterator.h
rename : content/base/src/TreeWalker.cpp => content/base/src/nsTreeWalker.cpp
rename : content/base/src/TreeWalker.h => content/base/src/nsTreeWalker.h
2013-02-28 14:41:30 -05:00
Olli Pettay
510b79b08c
Bug 845631 - Remove nsXMLHttpProgressEvent, r=sicking
...
--HG--
extra : rebase_source : e5c6e80fbb656782bfe0f530c778cda9d9f97f0f
2013-02-28 20:53:04 +02:00
Boris Zbarsky
24d39ed923
Bug 776536 part 4. Turn on WebIDL bindings for NodeIterator and TreeWalker. r=peterv
...
The behavior here is a bit weird because Document is still not a
WebIDL object, so calling createNodeIterator or createTreeWalker via
an Xray will call the XPCOM versions of those methods. That means
that I can't just disable XPCOM-based wrapping for TreeWalker and
NodeIterator altogether, unfortunately, which means a web page could
try stashing a TreeWalker in something like userdata and then getting
it back and end up wrapping it as an XPCOM object the second time.
I could "fix" that by adding a wrapper cache and whatnot, I guess, if
desired... But the problem will go away once we convert Document in
any case.
2013-02-28 12:56:42 -05:00
Boris Zbarsky
0c8bec67f1
Bug 843261. Add support for sequence<DOMString> arguments in WebIDL callbacks. r=peterv
...
This does allow people to accidentally hit the slower path through use
of non-const strings, but I think that's OK now that we're mostly
autogenerating this stuff
2013-02-28 12:56:41 -05:00
Ms2ger
c6832bb745
Merge m-i to b-s.
2013-02-28 14:46:10 +01:00
Gregory Szorc
803629b9c6
Merge mozilla-central into build-system
...
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Ms2ger
2801c25ab8
Merge m-c to b-s.
2013-02-26 19:09:25 +01:00
Gregory Szorc
16f0413b0c
Merge mozilla-central into build-system
...
Only conflict was configure.in amd was due to context, not
changed lines themselves.
2013-02-25 22:09:18 -08:00
Gregory Szorc
51faf012ef
Bug 784841 - Part 18s: Convert /js; r=glandium
2013-02-25 12:47:22 -08:00
Bobby Holley
71a3669399
Bug 836301 - Hoist some assertions, remove a bunch of no-op trap overrides, and add assertions that we've entered our policy. r=mrbkap
2013-02-25 13:54:18 -08:00
Bobby Holley
c3361bfc99
Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap
2013-02-25 13:54:18 -08:00
Bobby Holley
256ed2c8ba
Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
...
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-25 13:54:18 -08:00
Bobby Holley
22266c42fe
Bug 836301 - Add Special handling to allow us to call enter() for defineProperty on Xrays. r=mrbkap
2013-02-25 13:54:17 -08:00
Bobby Holley
3cd9119770
Bug 836301 - Stop using JSRESOLVE_ASSIGNING to determine GET vs SET. r=mrbkap
...
This is just a heuristic, anyway, and some of the usage is downright broken.
There are two cases here:
1 - Deciding what to do for get{Own,}PropertyDescriptor. In these cases, we can
just enter with GET and rely on the filtering machinery to filter out dangerous
setters for security wrappers.
2 - Custom Xray props. None of these make sense in a |set| context. In fact,
they generally have null setters anyway, so we can just assume GET.
The policy-entering code in XrayWrapper is super haphazard. We'll get rid of it
entirely later in these patches.
2013-02-25 13:54:17 -08:00
L. David Baron
e2654f58c5
Bug 404077: Adjust annotations of expected assertions. CLOSED TREE
2013-02-27 17:58:48 -08:00
Bobby Holley
076b7bfcfa
Bug 843711 - Fix up new |Components| culprits in test suite. r=mccr8
2013-02-25 10:43:03 -08:00
David Zbarsky
f982db0249
Bug 847007: Remove nsIContent includes r=Ms2ger
2013-03-21 20:05:20 -04:00
Jon Coppeard
f85957ecb3
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 35cbf3cc4da4598c2e9e6975028ef397718849db
2013-03-06 16:41:43 +00:00
Ed Morley
0887cddaa0
Backed out changeset 28ef4bdff455 (bug 848395)
2013-03-07 13:03:35 +00:00
Gabor Krizsanits
0a621fd246
Bug 820170 - nsDOMEventTarget holds a global. r=smaug
2013-04-04 11:30:36 +02:00
Gabor Krizsanits
ea8889ecf7
Bug 820170 - JunkScope. r=bholley
2013-04-04 11:27:43 +02:00
Gabor Krizsanits
fd0f98c248
Bug 820170 - GetNativeForGlobal. r=bholley
2013-04-04 11:27:42 +02:00
Gabor Krizsanits
88efe97ceb
Bug 820170 - Weak ref support for globals. r=bholley
2013-04-04 11:27:40 +02:00
Gabor Krizsanits
bfdf5461dd
Bug 820170 - assert in XPCWrappedNativeScope::SetGlobal. r=bholley
2013-04-04 11:27:39 +02:00
Gabor Krizsanits
c28fd8fdb2
Bug 820170 - Turning BackstagePass into non-singleton. r=bholley
2013-04-04 11:27:38 +02:00
Gabor Krizsanits
04057305b5
Bug 820170 - SandboxPrivate. r=bholley
2013-04-04 11:27:36 +02:00
Jon Coppeard
19ed4f05c2
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 866879df05e3ec3f8e93570eb3f6b71103636b41
2013-03-06 16:41:43 +00:00
Masatoshi Kimura
3662ea6b18
Bug 841289 - Remove prefable option from WebIDL codegen. r=bz
2013-03-06 07:09:38 +09:00
Olli Pettay
8f72caeb73
Bug 822399 - Make Event to use Paris bindings, r=peterv
2013-03-09 13:34:29 +02:00
Bill McCloskey
7c63e47dd5
Back out bug 846890 for reftest orange
2013-03-08 21:27:25 -08:00
Bill McCloskey
df7b843a49
Bug 846890 - Avoid check for native anonymous content when possible (r=bholley)
2013-03-08 18:49:36 -08:00
Zack Weinberg
db6d545915
Bug 847181: prune unused printing-related nsresult codes, make printing error codes available in Components.results, and improve English of printing error messages. r=smaug
2013-03-08 21:45:14 -05:00
Tom Schuster
0112f8352e
Bug 828462 - Root Proxy/Wrapper in the browser. r=terrence,bz
2013-03-21 23:23:48 +01:00
Tom Schuster
012c930168
Bug 828462 - Root Proxy/Wrapper delete. r=terrence
2013-03-21 23:23:48 +01:00
Tom Schuster
ccde5567f1
Bug 828462 - Root Proxy/Wrapper getOwnPropertyNames and keys. r=terrence
2013-03-21 23:23:47 +01:00
Tom Schuster
30b86c5cc0
Bug 828462 - Root Proxy/Wrapper defineProperty. r=terrence
2013-03-21 23:23:47 +01:00
Tom Schuster
fcf6a93bf4
Bug 828462 - Root Proxy/Wrapper get(Own)PropertyDescriptor. r=terrence
2013-03-21 23:23:47 +01:00
Bobby Holley
d4b32e491e
Bug 844783 - Disable XBL scopes for XUL-whitelisted domains. r=bz
2013-03-21 09:33:34 -07:00
Bobby Holley
bd2b1b8144
Bug 851895 - Tests. r=mrbkap
2013-03-21 08:20:46 -07:00
Bobby Holley
151e14ccd2
Bug 851895 - Expand the this-fixup hack to include Cu. r=mrbkap
2013-03-21 08:20:46 -07:00
Bobby Holley
90b3cbf144
Bug 851895 - Don't assert against a failure in CanCallNow. r=mrbkap
...
This can definitely happen now if the |this| object is wrong. It's possible
that we should be checking this earlier, but as the code stands this assertion
is incorrect.
2013-03-21 08:20:46 -07:00
Bobby Holley
918afcbf90
Bug 658909 - Tests. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
aa9f2fe81e
Bug 658909 - Port tearoff-handling guts of GWNOJO to XPCCallContext and remove GWNOJO. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
10c3ceca4a
Bug 658909 - Remove GWNOJO from PreserveWrapper. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
643b7ac570
Bug 658909 - Remove GWNOJO from AccessCheck. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
192ef9fe65
Bug 658909 - Remove GWNOJO from nsXPConnect. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
cb8898b884
Bug 658909 - Remove GWNOJO from XPCVariant. r=mrbkap
...
The old code seems to be deciding whether we have a double-wrapped object by
checking _either_ the rv of GWNOJO _or_ the potential slim wrapper. This is
nonsensical, because double-wrapped objects are never slim wrappers.
Furthermore, that variable here is named 'proto', which further suggests
that this code is nonsensical. So let's just check for WNs.
Also, it seems pretty wack to be innerizing here before storing the jsval,
but I'm going to leave that for now.
2013-03-21 08:20:44 -07:00
Bobby Holley
6f7077ab27
Bug 658909 - Remove GWNOJO from XPCJSID. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
d8e3fbb2cc
Bug 658909 - Remove GWNOJO from JSValToXPCException. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
997097c4b3
Bug 658909 - Remove GWNOJO from JSObject2NativeInterface. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
c74ea6642b
Bug 658909 - Remove GWNOJO for helper stubs. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
4483147fa3
Bug 658909 - Remove GWNOJO from MarkWrappedNative. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
1ab135cdf4
Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
a5a70136e6
Bug 658909 - Stop doing all the crazy stuff in GetWrappedNativeOfJSObject. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
96f901c63a
Bug 658909 - Add a hack to support calling nohelper XPCWN methods without the proper |this|. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
7f358d03d2
Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap
2013-03-21 08:20:42 -07:00
Bobby Holley
23505d75ea
Bug 658909 - Set args at XPCCallContext construct time in XPC_WN_GetterSetter. r=mrbkap
...
It's not clear to me why it's done this way, but it confuses our ability to
determine during wrapper lookup whether we're doing a set or a get. This aligns
the behavior with XPC_WN_CallMethod, including passing JSID_VOID for the name
(which is safe because XPCCallContext explicitly special-cases JSID_VOID and
doesn't call SetName in that case).
2013-03-21 08:20:42 -07:00
Bobby Holley
4df5fa5f43
Bug 658909 - Initialize the same fields in both XPCCallContext constructors. r=mrbkap
...
This is a huge footgun. XPCCallContext is hot, but it's not too hot to be safe
here. Garbage XPCWN and JSObject pointers are bad.
2013-03-21 08:20:42 -07:00
Bobby Holley
b25c1dc9f9
Bug 658909 - Remove unnecessary ccx param. r=mrbkap
2013-03-21 08:20:42 -07:00
Bobby Holley
de62f63ad7
Bug 658909 - Make isSafeToUnwrap pseudo-dynamic for SOWs. r=mrbkap
...
This can go away as soon as XBL scopes are no longer behind a pref.
2013-03-21 08:20:41 -07:00
Bobby Holley
adf6253c6e
Bug 658909 - Force |this| computation in SandboxCallableProxyHandler::call when using Xrays. r=bz
...
Comment says it all.
2013-03-21 08:20:41 -07:00
Bobby Holley
d095bf8d04
Bug 853283 - Grab the window directly from the navigator in nsNavigatorSH::NewResolve. r=mrbkap
2013-03-21 08:20:41 -07:00
Ryan VanderMeulen
5a1f305fec
Backed out changeset 55d19e574b86 (bug 853283) for Windows debug bustage on a CLOSED TREE.
2013-03-21 15:25:14 -04:00
Ryan VanderMeulen
0d64a1ef2b
Backed out 22 changesets (bug 658909) for Windows debug bustage.
2013-03-21 15:24:54 -04:00
Ryan VanderMeulen
edebf68dc5
Backed out 3 changesets (bug 851895) for Windows debug bustage.
2013-03-21 15:24:04 -04:00
Ryan VanderMeulen
ec432af374
Backed out changesets 775abfe4876f and 1b75fab8561b (bug 844783) under suspicion of breaking Windows debug builds on a CLOSED TREE.
2013-03-21 14:15:31 -04:00
Mike Shal
f290401a73
Bug 852534 - Remove GRE_MODULE from Makefile.in; r=gps
2013-03-21 08:41:00 -07:00
Bobby Holley
2df1609d2d
Bug 844783 - Disable XBL scopes for XUL-whitelisted domains. r=bz
2013-03-21 09:33:34 -07:00
Bobby Holley
fd364afa79
Bug 851895 - Tests. r=mrbkap
2013-03-21 08:20:46 -07:00
Bobby Holley
938ba8175a
Bug 851895 - Expand the this-fixup hack to include Cu. r=mrbkap
2013-03-21 08:20:46 -07:00
Bobby Holley
f171eeb152
Bug 851895 - Don't assert against a failure in CanCallNow. r=mrbkap
...
This can definitely happen now if the |this| object is wrong. It's possible
that we should be checking this earlier, but as the code stands this assertion
is incorrect.
2013-03-21 08:20:46 -07:00
Bobby Holley
160946d7c4
Bug 658909 - Tests. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
ccc62eefea
Bug 658909 - Port tearoff-handling guts of GWNOJO to XPCCallContext and remove GWNOJO. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
3f5b7f583a
Bug 658909 - Remove GWNOJO from PreserveWrapper. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
472fb50da0
Bug 658909 - Remove GWNOJO from AccessCheck. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
b3797df126
Bug 658909 - Remove GWNOJO from nsXPConnect. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
6142a3fd1c
Bug 658909 - Remove GWNOJO from XPCVariant. r=mrbkap
...
The old code seems to be deciding whether we have a double-wrapped object by
checking _either_ the rv of GWNOJO _or_ the potential slim wrapper. This is
nonsensical, because double-wrapped objects are never slim wrappers.
Furthermore, that variable here is named 'proto', which further suggests
that this code is nonsensical. So let's just check for WNs.
Also, it seems pretty wack to be innerizing here before storing the jsval,
but I'm going to leave that for now.
2013-03-21 08:20:44 -07:00
Bobby Holley
bcac848766
Bug 658909 - Remove GWNOJO from XPCJSID. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
f6df1b589a
Bug 658909 - Remove GWNOJO from JSValToXPCException. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
174fac9ba4
Bug 658909 - Remove GWNOJO from JSObject2NativeInterface. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
606f6b8992
Bug 658909 - Remove GWNOJO for helper stubs. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
e61c5d98a2
Bug 658909 - Remove GWNOJO from MarkWrappedNative. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
97e20a07a5
Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
83c251ef6c
Bug 658909 - Stop doing all the crazy stuff in GetWrappedNativeOfJSObject. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
70e352f480
Bug 658909 - Add a hack to support calling nohelper XPCWN methods without the proper |this|. r=mrbkap
2013-03-21 08:20:43 -07:00
Bobby Holley
c651a918fd
Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap
2013-03-21 08:20:42 -07:00
Bobby Holley
ef68a202d1
Bug 658909 - Set args at XPCCallContext construct time in XPC_WN_GetterSetter. r=mrbkap
...
It's not clear to me why it's done this way, but it confuses our ability to
determine during wrapper lookup whether we're doing a set or a get. This aligns
the behavior with XPC_WN_CallMethod, including passing JSID_VOID for the name
(which is safe because XPCCallContext explicitly special-cases JSID_VOID and
doesn't call SetName in that case).
2013-03-21 08:20:42 -07:00
Bobby Holley
a0f79166c0
Bug 658909 - Initialize the same fields in both XPCCallContext constructors. r=mrbkap
...
This is a huge footgun. XPCCallContext is hot, but it's not too hot to be safe
here. Garbage XPCWN and JSObject pointers are bad.
2013-03-21 08:20:42 -07:00
Bobby Holley
957a69a405
Bug 658909 - Remove unnecessary ccx param. r=mrbkap
2013-03-21 08:20:42 -07:00
Bobby Holley
821b04d2d6
Bug 658909 - Make isSafeToUnwrap pseudo-dynamic for SOWs. r=mrbkap
...
This can go away as soon as XBL scopes are no longer behind a pref.
2013-03-21 08:20:41 -07:00
Bobby Holley
8be761a0f4
Bug 658909 - Force |this| computation in SandboxCallableProxyHandler::call when using Xrays. r=bz
...
Comment says it all.
2013-03-21 08:20:41 -07:00
Bobby Holley
b4904b5e9c
Bug 853283 - Grab the window directly from the navigator in nsNavigatorSH::NewResolve. r=mrbkap
2013-03-21 08:20:41 -07:00
Luke Wagner
26b31ecf0a
Bug 840282 - OdinMonkey (sr=dmandelin)
...
--HG--
extra : rebase_source : 4a3869dca32755abb58bbd3d9a06599e61b397f2
2013-03-15 02:29:02 -07:00
Aryeh Gregor
a5c75c91bc
Bug 801562 - Remove Node.isSupported; r=bz
...
--HG--
rename : content/svg/content/test/test_isSupported.xhtml => content/svg/content/test/test_hasFeature.xhtml
2013-03-15 12:21:52 +02:00
Gene Lian
1aab17284e
Bug 844431 - B2G MMS: provide nsIDOMMobileMessageManager interface (with sendMMS() first) (part 6, dispatch MMS events). r=vicamo,mounir sr=sicking a=leo+
2013-03-09 15:22:42 +08:00
Gene Lian
9fe417700a
Bug 844431 - B2G MMS: provide nsIDOMMobileMessageManager interface (with sendMMS() first) (part 4-2, nsIMmsService.send()). r=vicamo a=leo+
2013-03-09 15:22:25 +08:00
Gene Lian
af36186707
Bug 844431 - B2G MMS: provide nsIDOMMobileMessageManager interface (with sendMMS() first) (part 3-1, s/nsISmsRequest/nsIMobileMessageCallback). r=vicamo a=leo+
...
--HG--
rename : dom/mobilemessage/interfaces/nsISmsRequest.idl => dom/mobilemessage/interfaces/nsIMobileMessageCallback.idl
2013-03-09 15:22:02 +08:00
Gene Lian
3e9ced94a8
Bug 844431 - B2G MMS: provide nsIDOMMobileMessageManager interface (with sendMMS() first) (part 2, nsIDOMMozMmsMessage). r=vicamo,mounir,mrbkap sr=sicking a=leo+
2013-03-09 15:21:55 +08:00
Bobby Holley
876133f6c7
Bug 850517 - Support named window access via Xray. r=mrbkap
2013-03-14 22:38:26 -07:00
Peter Van der Beken
60efffbed9
Fix for bug 844225 (Remove some DOMCI and quickstubs). r=bz.
2013-01-10 10:54:46 +01:00
L. David Baron
05d5d9dfa9
Bug 404077: Use navigator.platform.startsWith rather than navigator.platform.indexOf, at Jesse's suggestion.
2013-02-26 22:23:08 -08:00
Bobby Holley
b51f6208c3
Bug 845201 - Pass mayThrow=true to iterate. r=mrbkap
...
We only want fallback behavior here if the policy decides to fail silently. If
the policy passes *bp == false, we want to just throw.
2013-02-26 16:41:55 -08:00
Bobby Holley
2c5746f6db
Bug 834732 - Assert proper cx stack handling in WrapperFactory::Rewrap. r=mrbkap
2013-02-26 11:04:13 -08:00
Bobby Holley
169d010a55
Bug 834732 - Implement stricter cx handling in xpc_EvalInSandbox. r=mrbkap
2013-02-26 11:04:11 -08:00
Bobby Holley
e83e186c1b
Bug 834732 - Make nsCxPusher.Push(JSContext*) infallible. r=mrbkap
...
We leave the nsIDOMEventTarget* versions fallible for now, but this makes the
common case a lot simpler. Note that this means that pushing a null JSContext,
a bug, is no longer handled at runtime. But I think we should just assert
against it, since there are already callers that don't check the return value.
2013-02-26 11:04:11 -08:00
Bobby Holley
784a476fb8
Bug 834732 - Remove PushBehavior. r=mrbkap
...
Now that we only have ALWAYS_PUSH and ASSERT_SCRIPT_CONTEXT, we have uniform
release-mode behavior everywhere. Remove the crap.
2013-02-26 11:04:11 -08:00
Bobby Holley
e04f8d807d
Bug 834732 - Get rid of footgun bool param for nsCxPusher and use an explicit enum. r=mrbkap
...
The goal here is to get rid of this crap entirely, and make nsCxPusher always
push. But that's a scary change, so we do it in chunks. This patch, in particular,
should have zero behavioral change. This means preserving some very wrong behavior.
For instance, currently SafeAutoJSContext never pushes a damn thing, because the
safe JSContext doesn't have an associated nsIScriptContext. We preserve this
behavior, and in fact convert various similarly-buggy consumers to
SafeAutoJSContext, so that we can hoist the behavioral change into a subsequent
patch.
2013-02-26 11:04:09 -08:00
Bobby Holley
a0de2e2bc9
Bug 812693 - Remove GetJSObjectOfWrapper. r=mrbkap
2013-02-26 08:15:44 -08:00
Richard Newman
9297113e26
Backed out changeset cc45fdc389df (Bug 779291) for breaking Mac Android builds.
2013-03-12 00:14:52 -07:00
Nicholas Nethercote
7dd7050c41
Bug 842438 (part 1) - Remove @line support from SpiderMonkey. r=benjamin.
...
--HG--
extra : rebase_source : 38502ad54c97a0e16e6396f9f39df31b73d0e289
2013-03-11 14:27:34 -07:00
Masatoshi Kimura
7693df618d
Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz
2013-03-12 08:03:47 +09:00
Bobby Holley
1e3e0d2ed9
Bug 809674 - Tests. r=me
2013-03-11 14:45:21 -07:00
Bobby Holley
fed1bff11e
Bug 809652 - Tests. r=jorendorff
2013-03-11 14:45:21 -07:00
Bobby Holley
4f92577540
Bug 806751 - Crashtest. r=me
2013-03-11 14:45:21 -07:00
Bobby Holley
9821938788
Bug 805807 - Tests. r=mrbkap
2013-03-11 14:45:20 -07:00
Bobby Holley
b53bd25034
Bug 786142 - Crashtest. r=me
2013-03-11 14:45:18 -07:00
Bobby Holley
3ab1240740
Bug 854510 - Convert expected assertion into a 0-1 range. r=RyanVM
2013-03-26 09:09:04 -07:00
Bobby Holley
4a0f03b8df
Bug 854558 - Enforce __exposedProps__ for Sandboxes. r=gabor
2013-03-26 09:08:29 -07:00
Jan Varga
71a59dcdc8
Bug 767944 - Implement a manager for centralized quota and storage handling. r=bent
2013-03-26 12:13:17 +01:00
Masatoshi Kimura
58be2f3664
Bug 842372 - Part 2: Hide getUserData and setUserData from content. r=bz
2013-02-23 13:46:06 +09:00
William Chen
929291a8d9
Bug 783129 - Implementation of document.register without shadow DOM support. r=mrbkap
2012-11-01 11:18:08 -07:00
Trevor Saunders
1049ccba35
bug 833164 - consolodate the various makeDepend things in the tree r=ted
2013-02-14 07:06:16 -05:00
L. David Baron
4f4296979b
Bug 404077: Annotate known assertions in mochitests.
2013-02-25 18:39:21 -08:00
Ryan VanderMeulen
fe36f261c6
Backed out 5 changesets (bug 790732) for talos-other hangs/crashes on a CLOSED TREE.
2013-03-05 15:44:15 -05:00
Boris Zbarsky
aeed32709e
Remove no longer used NodeIterator quickstubs. No bug. r=peterv
2013-03-05 13:42:06 -05:00
Bobby Holley
6f783fc8dc
Bug 790732 - Omit Components object for content scopes. r=mrbkap
2013-03-05 10:02:00 -08:00
Bobby Holley
f12628d13f
Bug 790732 - Remove Components warning and Telemetry. r=mrbkap
2013-03-05 10:01:59 -08:00
Bobby Holley
e60cb41952
Bug 790732 - Stop attaching Components in InitClasses. r=mrbkap
...
This method is larely deprecated. The only two consumers are JSD and the setup
for the safe JSContext, neither of which use system principal and thus neither
of which should have |Components|.
2013-03-05 10:01:59 -08:00
Bobby Holley
c1f8743e0b
Bug 790732 - Remove the aTarget parameter from AttachComponentsObject. r=mrbkap
...
I added this when I thought we'd be defining Components on an object on the XBL
scope chain. At this point, it's not necessary anymore.
2013-03-05 10:01:59 -08:00
Blake Kaplan
9ce376052d
Bug 852436 - nsWrapperCache::WrapObject returning false means failure, even if there's no pending exception. r=bz
2013-03-28 15:45:01 -07:00
Terrence Cole
16aae426b8
Bug 855145 - DeMACROize the JS tracing interfaces; r=billm,mccr8
...
--HG--
extra : rebase_source : 915c80052b4412f653033eb5fc4d4f96c5d49bd5
2013-03-26 15:10:34 -07:00
Bill McCloskey
779cef3260
Bug 855136 - Don't use call/construct slots for direct proxies (r=luke)
2013-03-26 17:53:00 -07:00
Eddy Bruel
7b5ad4785e
Bug 789897 - Implement a preventExtensions trap for proxies. Patch is a semi-tag-team effort with jwalden. r=jwalden, r=ejpbruel, r=bholley, r=two-turtle-doves-and-a-partridge-in-a-pear-tree
...
--HG--
extra : rebase_source : 03b1b90c727ecc6a5d9d8cd769423f0a8f6efde4
2013-03-22 19:43:12 -07:00
Eddy Bruel
b81410d5c1
Bug 789897 - Implement an isExtensible trap for proxies. Patch is a semi-tag-team effort with jwalden. r=jwalden, r=ejpbruel, r=bholley, r=two-turtle-doves-and-a-partridge-in-a-pear-tree
...
--HG--
extra : rebase_source : 346645d8dc32ddb76f18e7557e99f41cb66abe9e
2013-03-22 19:43:03 -07:00
Gina Yeh
a14ed7a5d2
Bug 853200 - Remove unused event handlers from idl, r=echou, sr=mrbkap
2013-03-28 18:05:58 +08:00
Bobby Holley
ff8df1d32c
Bug 854139 - Handle all DOM objects, not just ones that unwrap to nsISupports. r=bz
2013-03-27 18:27:27 -07:00
Bobby Holley
6bac24ceed
Bug 790732 - Components shim tests. r=mrbkap
2013-03-27 18:27:27 -07:00
Bobby Holley
939fedeaee
Bug 790732 - Omit Components object for content scopes. r=mrbkap
2013-03-27 18:27:27 -07:00
Bobby Holley
288f852eab
Bug 790732 - Make Components console warning test pref-aware. r=mrbkap
2013-03-27 18:27:26 -07:00
Bobby Holley
0ac464fee7
Bug 790732 - Stop attaching Components in InitClasses. r=mrbkap
...
This method is larely deprecated. The only two consumers are JSD and the setup
for the safe JSContext, neither of which use system principal and thus neither
of which should have |Components|.
2013-03-27 18:27:26 -07:00
Bobby Holley
833b734f38
Bug 790732 - Remove the aTarget parameter from AttachComponentsObject. r=mrbkap
...
I added this when I thought we'd be defining Components on an object on the XBL
scope chain. At this point, it's not necessary anymore.
2013-03-27 18:27:26 -07:00
David Zbarsky
39c225e361
Bug 854629 Part 0: Remove the rest of XPIDL bindings for SVG elements r=Ms2ger
2013-03-27 21:23:10 -04:00
Boris Zbarsky
71fae3fb7c
Bug 792215. Convert quickstubs to using JSNative getters and setters. r=peterv
2012-09-25 14:44:40 -04:00
Kyle Machulis
f5e3aadf0b
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Jesse Ruderman
594ad00ba3
Bug 404077 followup - remove bug mention from a test. DONTBUILD
2013-03-12 12:36:08 -07:00
Julian Seward
e8bbb67556
Bug 779291: Implement SPS stackwalk using the breakpad unwinder. r=bgirard,glandium
...
bug 850089 - fix SPS with disable-crashreporter. Patch by Ted Mielczarek <ted@mielczarek.org>, r=glandium
Bug 850132 - SPS breakpad unwind (bug 779291) breaks Win64 builds with "Unsupported platform". Patch by Makoto Kato <m_kato@ga2.so-net.ne.jp>, r=ted
2013-03-10 23:00:23 +01:00
Phil Ringnalda
3dbc683edc
Back out e0038e628250 and 02b242697afb (bug 850523) for test_memoryReporters.xul crashes
...
CLOSED TREE
2013-03-17 22:15:25 -07:00
Bobby Holley
b3e868d07a
Bug 813901 - Tests. r=mrbkap
2013-03-17 21:44:42 -07:00
Nicholas Nethercote
1aad0e70c2
Bug 850523 (part 1) - Add a "js-main-runtime-temporary-peak" memory reporter. r=wmccloskey,jlebar.
...
--HG--
extra : rebase_source : d183213c48b9d07fb62fce830998bcb8bb044f47
2013-03-06 20:40:36 -08:00
Phil Ringnalda
03a1dc0a38
Back out 4d301b2bcad0:e0632e639097 (bug 836301) for Windows build bustage
...
CLOSED TREE
2013-02-22 08:41:37 -08:00
Bobby Holley
b9a551bd57
Bug 836301 - Hoist some assertions, remove a bunch of no-op trap overrides, and add assertions that we've entered our policy. r=mrbkap
2013-02-22 08:14:34 -08:00
Bobby Holley
a98d6a7dfd
Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap
2013-02-22 08:14:34 -08:00
Bobby Holley
9ea662d5a5
Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
...
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-22 08:14:33 -08:00
Bobby Holley
fa62b333b9
Bug 836301 - Add Special handling to allow us to call enter() for defineProperty on Xrays. r=mrbkap
2013-02-22 08:14:33 -08:00
Bobby Holley
93369747ec
Bug 836301 - Stop using JSRESOLVE_ASSIGNING to determine GET vs SET. r=mrbkap
...
This is just a heuristic, anyway, and some of the usage is downright broken.
There are two cases here:
1 - Deciding what to do for get{Own,}PropertyDescriptor. In these cases, we can
just enter with GET and rely on the filtering machinery to filter out dangerous
setters for security wrappers.
2 - Custom Xray props. None of these make sense in a |set| context. In fact,
they generally have null setters anyway, so we can just assume GET.
The policy-entering code in XrayWrapper is super haphazard. We'll get rid of it
entirely later in these patches.
2013-02-22 08:14:32 -08:00
Bobby Holley
d5c80d07cc
Bug 843231 - Compute whether to use an XBL scope exactly once. r=bz
2013-02-22 07:56:03 -08:00
Bobby Holley
ea51770fa3
Bug 843231 - Remove SetGlobal. r=bz
...
This stuff has all been simplified significantly with CPG, and this is no longer
necessary. We always have a global when we construct a scope, and it never
changes.
2013-02-22 07:56:03 -08:00
Bobby Holley
b1e6cef1c7
Bug 843231 - Move the nulling out of mPrototypeNoHelper from SetGlobal to RemoveWrappedNativeProtos. r=bz
...
The only call-site for both of these is JSD->nsXPConnect::InitClasses, so this
is equivalent. All this will go away soon anyhow when JSD goes away.
2013-02-22 07:56:02 -08:00
Peter Van der Beken
86d3fc6af5
Fix for bug 825628 (Implement NamedConstructor) - add codegen support for NamedConstructor. r=bz.
...
--HG--
extra : rebase_source : 8393995dca6f65cb49512874c1916ee745436638
2013-01-22 11:51:15 +01:00
Chuck Lee
e45fb52048
Bug 835719 - 0003. Rename JSAutoByteString.encode() to encodeLatin1(). r=terrence
2013-02-21 17:48:17 +08:00
Jonathan Kew
e04415fc7f
backout cset 4ede352670cd (bug 759585) on a CLOSED TREE on suspicion of making windows reftests so slow that they timeout and burn
2013-02-22 09:36:41 +00:00
Bill McCloskey
6798be1a0e
Bug 759585 - Change the granularity of collection from compartment to zone (r=jonco,bhackett,njn,dvander,mccr8,bz,luke,bholley)
2013-02-21 18:23:47 -08:00
Masatoshi Kimura
e34e3f60a9
Bug 842730 - Remove nsIJSNativeInitializer from nsXMLHttpRequest. r=sicking
2013-02-20 20:54:19 +09:00
Gavin Sharp
58c2d69de4
Bug 841359 - Always log error originating from windows with chrome principals. r=bz
2013-02-16 17:01:59 -08:00
Andrea Marchesini
d98c0993bb
Bug 839447 - Rename nsHTMLOptionElement to HTMLOptionElement, r=Ms2ger
...
--HG--
rename : content/html/content/src/nsHTMLOptionElement.cpp => content/html/content/src/HTMLOptionElement.cpp
rename : content/html/content/src/nsHTMLOptionElement.h => content/html/content/src/HTMLOptionElement.h
2013-02-18 13:24:58 +01:00
Andrea Marchesini
fe3cb4351c
Bug 838559 - Rename nsHTMLMenuElement to HTMLMenuElement. r=Ms2ger
...
--HG--
rename : content/html/content/src/nsHTMLMenuElement.cpp => content/html/content/src/HTMLMenuElement.cpp
rename : content/html/content/src/nsHTMLMenuElement.h => content/html/content/src/HTMLMenuElement.h
2013-02-18 06:59:08 -05:00
Randy Lin
90902b6a5b
Bug 834165 - Implement BlobEvent. r=smaug
...
--HG--
extra : rebase_source : 5d8f13baa4b2ff00a63300be54edb81ab2555bd9
2013-02-18 14:06:27 +08:00
Boris Zbarsky
213f724948
Bug 822674. Give RTCPeerConnection a sane classinfo. r=jst,jesup. r=peterv pending
2013-02-15 22:41:31 -05:00
Steve Fink
2a42a7a9fb
Bug 838014 - More rooting in Debugger, plus some minor rooting in JSD and xpconnect for some should-be-private JSAPI changes. r=terrence
...
--HG--
extra : rebase_source : 46febe5421f6e1901f0d5ac2707fb3fdde1894db
2013-02-12 12:27:02 -08:00
Bobby Holley
0cff91747e
Bug 834697 - Enable XBL scopes, and disable assertion. r=bz,me
2013-02-14 15:15:59 +01:00
Makoto Kato
8d2aa4329c
Bug 834645 - move -STACK parameter to config.mk. r=ted
2013-02-14 15:22:00 +09:00
Till Schneidereit
22ae6134ff
Bug 679940 - Share bytecode, source notes and atoms of functions in a runtime wherever possible. r=bhackett
...
--HG--
extra : rebase_source : 1518f7830a5640a2216c2d828859b8660d3fff60
2013-02-02 00:02:08 +01:00
Ryan VanderMeulen
0e981ca346
Backed out 12 changesets (bug 834732) for b2g bustage and OSX mochitest-1 crashes on a CLOSED TREE.
2013-02-12 20:54:48 -05:00
Bobby Holley
f946ae9e15
Bug 834732 - Assert proper cx stack handling in WrapperFactory::Rewrap. r=mrbkap
2013-02-13 00:22:27 +01:00
Bobby Holley
9c9b132652
Bug 834732 - Implement stricter cx handling in xpc_EvalInSandbox. r=mrbkap
2013-02-13 00:22:27 +01:00
Bobby Holley
e9d5a91d21
Bug 834732 - Make nsCxPusher.Push(JSContext*) infallible. r=mrbkap
...
We leave the nsIDOMEventTarget* versions fallible for now, but this makes the
common case a lot simpler. Note that this means that pushing a null JSContext,
a bug, is no longer handled at runtime. But I think we should just assert
against it, since there are already callers that don't check the return value.
2013-02-13 00:22:26 +01:00
Bobby Holley
5a1f2c3927
Bug 834732 - Remove PushBehavior. r=mrbkap
...
Now that we only have ALWAYS_PUSH and ASSERT_SCRIPT_CONTEXT, we have uniform
release-mode behavior everywhere. Remove the crap.
2013-02-13 00:22:26 +01:00
Bobby Holley
863479340f
Bug 834732 - Get rid of footgun bool param for nsCxPusher and use an explicit enum. r=mrbkap
...
The goal here is to get rid of this crap entirely, and make nsCxPusher always
push. But that's a scary change, so we do it in chunks. This patch, in particular,
should have zero behavioral change. This means preserving some very wrong behavior.
For instance, currently SafeAutoJSContext never pushes a damn thing, because the
safe JSContext doesn't have an associated nsIScriptContext. We preserve this
behavior, and in fact convert various similarly-buggy consumers to
SafeAutoJSContext, so that we can hoist the behavioral change into a subsequent
patch.
2013-02-13 00:22:26 +01:00
Peter Van der Beken
78dd8c7730
Fix for bug 748669 (Make JS_{Start,Stop}Profiling work with Instruments on Lion). r=sfink/ted.
...
--HG--
extra : rebase_source : 8f7add5256dde39cf165b69b0ab1ebced05d120e
2012-01-21 21:40:37 +01:00
Jon Coppeard
b9652b9f39
Bug 849273 - Investigate splitting the js and JS namespaces r=terrence
...
--HG--
extra : rebase_source : 2b131d0177f02e5f0e89398545481fcacbfde00f
2013-03-19 10:35:41 +00:00