Commit Graph

296363 Commits

Author SHA1 Message Date
Bobby Holley
9fce3b092f Bug 824864 - Pass EvaluateString out-param as a pointer, not a reference. r=bz 2013-01-16 18:50:27 -08:00
Bobby Holley
2659d8fc54 Bug 824864 - Move responsibility for checking for JSVERSION_UNKNOWN to the one caller of EvaluateString that might pass it. r=bz 2013-01-16 18:50:26 -08:00
Bobby Holley
a26c078c60 Bug 824864 - Use an nsCxPusher in EvaluateString, and pull the principal off the target object. r=bz
This simplifies a lot of code, and makes the function scope-agnostic.
2013-01-16 18:50:26 -08:00
Bobby Holley
5515799556 Bug 824864 - Rename EvaluateStringWithValue to EvaluateString. r=bz
Now that there's only one of them, we can get rid of the silly suffix. \o/
2013-01-16 18:50:26 -08:00
Bobby Holley
746d5bebee Bug 824864 - Remove unused optional arguments from nsIScriptContext::ExecuteScript. r=bz
This lets us get rid of a bunch of junk.
2013-01-16 18:50:26 -08:00
Bobby Holley
d3d15aa3fe Bug 824864 - Remove nsIScriptContext::EvaluateString. r=bz 2013-01-16 18:50:26 -08:00
Bobby Holley
1f2a4747c6 Bug 824864 - Move existing consumers of EvaluateString over to EvaluateStringWithValue. r=bz 2013-01-16 18:50:26 -08:00
Bobby Holley
a14609b21a Bug 824864 - Improve the API for EvaluateStringWithValue. r=bz
There are a few changes we make here:
1 - Having callers pass JS::CompileOptions directly.
2 - Removing aUndefined, which makes no sense and is unused by consumers.
3 - Making aScopeObject and aRetValue non-optional, via references.
3 - Adding an argument to optionally coerce the return value to a string.

Coercing jsvals to strings is the reason we currently have two nearly-identical
functions, EvaluateString and EvaluateStringWithValue, since the coercion can
trigger arbitrary script and thus needs to be bracketed by all the junk that
nsJSContext does. However, if callers can be guaranteed that the return value
will be a bonafide string, then they can easily extract the string themselves
if they so desire. This will allow us to combine the two functions.
2013-01-16 18:50:26 -08:00
Bobby Holley
5a19a07bef Bug 824864 - Move consumers of CompileFunction to the nsJSUtils version, and kill the nsJSContext version. r=bz
Note that the three consumers were all XBL, and were all passing aShared = true,
which had the effect of passing null for the target object. So we actually want
to pass JS::NullPtr() (the HandleObject version of nullptr) instead of
aClassObject in order to maintain the old behavior (whatever that is).
2013-01-16 18:50:25 -08:00
Bobby Holley
baf74b5ce0 Bug 824864 - Hoist the guts of CompileFunction into nsJSUtils. r=bz 2013-01-16 18:50:25 -08:00
Bobby Holley
d668366180 Bug 824864 - Implement nsContentUtils::GetObjectPrincipal. r=bz
The SSM interface is super awkward.
2013-01-16 18:50:25 -08:00
Bobby Holley
5ecdee02e9 Bug 825395 - Add debug checking for interleaved nsCxPusher and JSAutoEnterCompartment. r=bz,luke 2013-01-16 18:50:25 -08:00
Christian Holler
320a60cced Bug 829598 - Make js/src/jit-test/tests/gc/bug-820186.js a slow test. r=jandem, DONTBUILD 2013-01-16 16:14:08 +01:00
Jonathan Griffin
de4b6b4a10 Bug 828558 - Don't attach to jsconsole window, r=mdas 2013-01-15 17:41:36 -08:00
Rafael Ávila de Espíndola
f4b478e911 Bug 831133 - Record only the basename. r=vladan. 2013-01-16 21:02:32 -05:00
Rafael Ávila de Espíndola
57e8f549f6 Bug 831100 - use std::string. r=vladan. 2013-01-16 20:38:22 -05:00
David Zbarsky
71e0a5342d Bug 821955 r=longsonr
--HG--
rename : content/svg/content/src/DOMSVGPoint.cpp => content/svg/content/nsISVGPoint.cpp
rename : content/svg/content/src/DOMSVGPoint.cpp => content/svg/content/src/nsISVGPoint.cpp
2013-01-16 20:35:24 -05:00
Jon Coppeard
b9ec9d66ed Bug 831205 - Fix GCC warning "comma at end of enumerator list". r=billm DONTBUILD 2013-01-16 17:24:28 -08:00
Jeff Walden
2f40d20918 Bug 719659 - Add -std=gnu99 to CFLAGS so that gcc and friends permit use of C99 constructs without warnings. This doesn't mean that everything in C99 is permitted now -- only the stuff supported by all the compilers we care about, including MSVC. r=espindola
--HG--
extra : rebase_source : 5fdfd130f529e1dfbc9ec48ecc9e83186c844c39
2013-01-16 17:01:52 -08:00
Jeff Walden
d112a662b6 Add a JSObject::addDataProperty overload that takes Handle<PropertyName*>, to preserve the name/element distinction further when possible, anticipating future property-splitting work. No bug, r=sparky
--HG--
extra : rebase_source : 2fe4e9819bf8ab23b163889411b5d1fa74d59597
2012-12-27 11:20:22 -06:00
Jeff Walden
7abb572d67 Bug 830871 - Remove JS_FRIEND_API from js_GetClassPrototype as it isn't (and shouldn't be) used outside SpiderMonkey. r=jorendorff
--HG--
extra : rebase_source : aefa8e56c479bec12b9237e1479c34bbf2c88d19
2013-01-11 11:59:50 -08:00
David Zbarsky
3dd3961208 Bug 830181: SVGSymbolElement should QI to SVGTests r=me 2013-01-16 20:02:59 -05:00
Fabrice Desré
d18fc8aa4a Bug 830294 - Can't launch an app after canceling its update r=ferjm 2013-01-16 16:55:50 -08:00
Daniel Holbert
ca8d20175e Followup to Bug 821292: Remove unneeded semicolon after NS_INLINE_DECL_THREADSAFE_REFCOUNTING(), to fix build warning. 2013-01-16 16:54:15 -08:00
Jeff Hammel
58a102b2fc Bug 831081 - kill VirtualenvManager._check_output() now that we require python 2.7;r=gps 2013-01-16 16:52:21 -08:00
Chris Peterson
1ab50d1c73 Bug 831188 - Don't list inactive plugins (blocklisted or disabled) on about:plugins. r=bsmedberg
--HG--
extra : rebase_source : c4e71815533220fd7d356b13c6d5e8bc647d059a
2013-01-16 11:06:35 -08:00
Masatoshi Kimura
37bb78077f Bug 827824 - Use uint8_t for mTxInlineFrame. r=mcmanus 2013-01-17 08:25:03 +09:00
Trevor Saunders
83bcbe0d6b bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Marco Bonardo
f572427091 Bug 825786 - crash in nsAutoCompleteController::HandleDelete.
r=Enn
2013-01-17 00:12:43 +01:00
Ed Morley
078c32133c Backout 780c48afccc1 (bug 831354) for Android reftest failures on a CLOSED TREE 2013-01-16 23:08:07 +00:00
David Rajchenbach-Teller
af90769b8b Bug 828228 - Measure nsSearchService init with Telemetry. r=gavin 2013-01-16 18:03:05 -05:00
Jonathan Watt
673b92d3ee Bug 462197 - Part 2: The "Remove All Reports" button in about:crashes should remove old InstallTime files. r=ted 2013-01-16 18:03:05 -05:00
Jonathan Watt
4cbf1615c8 Bug 462197 - Part 1: Use the variable name submittedDir instead of the misleading name reportsDir. r=ted 2013-01-16 18:03:04 -05:00
Matt Woodrow
c4cfe33e02 Bug 820839 - Draw OSX titlebar content into a retained buffer during the ThebesLayer painting phase, before we clear invalidation state. r=roc 2013-01-17 11:59:23 +13:00
Josh Matthews
6e702dcb08 Bug 824472 - Traverse containing frames when looking for scrollable content for browser elements. r=schien 2013-01-14 18:03:32 +01:00
Trevor Saunders
eee088d0e7 bug 828141 - windows shouldn't hold onto events r=surkov 2013-01-08 19:41:58 -05:00
Andrew McCreight
159d0e97d9 Bug 829430 - Use the right check for if we're GCing. r=billm 2013-01-15 09:10:36 -08:00
Andrew McCreight
eadd687c13 Bug 829798 - Add dummy PreserveWrapper to JS shell. r=billm 2013-01-15 10:14:12 -08:00
Ehsan Akhgari
92dae8e55e Merge mozilla-central into mozilla-inbound 2013-01-16 17:32:13 -05:00
Jonathan Griffin
e6e412ecfc Bug 827531 - Add a pip requirements.txt file for running B2G unit tests, r=aki 2013-01-16 14:14:10 -08:00
Ed Morley
9569e68638 Bug 828946 - leakstats should output TBPL-parsable error messages; r=ted 2013-01-16 21:53:45 +00:00
Gary Kwong
521929f375 Bug 831472 - Add another null check to nsGlobalWindow::GetInnerScreenRect(). r=smaug 2013-01-16 13:44:26 -08:00
Brian Hackett
dd87d27fc1 Bug 830042 - Tolerate objects/strings with a null payload when marking VM stack, r=billm. 2013-01-16 14:48:10 -07:00
Gregory Szorc
40f0509fd3 Merge mozilla-central into build-system 2013-01-16 12:38:18 -08:00
Gregory Szorc
ef2ff3557a Merge mozilla-central into build-system 2013-01-16 12:37:21 -08:00
Gary Kwong
952afe6ef1 Add another suppression for bug 812423. DONTBUILD 2013-01-16 12:35:49 -08:00
Ed Morley
84b7b29fbf Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2013-01-16 20:22:54 +00:00
Ed Morley
d6376004d6 Backout b3a8618f901c (bug 829042), 34a9ef8f929d (bug 822933), 4c1215cefbab (bug 826349), 70bb7f775178 (bug 825325), e9c8447fb197 (bug 828713), eb6ebf01eafe (bug 828901), f1f3ef647920 (bug 825329), f9d7b5722d4f (bug 825329), 5add564d4546 (bug 819377), 55e93d1fa972 (bug 804875), f14639a3461e (bug 804875), 23456fc21052 (bug 814308) for Windows pgo-only mochitest-1 media test timeouts on a CLOSED TREE 2013-01-16 15:16:23 +00:00
David Burns
4e29b56aac Bug 814768: Force marionette to move to window.top if we try access something the compartment is dead and handle OOP being pulled from under us; r=jgriffin 2013-01-16 15:00:00 +00:00
Ehsan Akhgari
3ae49b157f Test case for bug 828780; r=jdm 2013-01-16 09:35:41 -05:00