Commit Graph

118832 Commits

Author SHA1 Message Date
Bobby Holley
be2e42c870 Bug 824864 - Remove nsIScriptContext::EvaluateString. r=bz 2013-01-16 18:50:26 -08:00
Bobby Holley
8f80755c52 Bug 824864 - Move existing consumers of EvaluateString over to EvaluateStringWithValue. r=bz 2013-01-16 18:50:26 -08:00
Bobby Holley
9ae831b5d4 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
a7a75b2cec 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
652eb13ea3 Bug 824864 - Hoist the guts of CompileFunction into nsJSUtils. r=bz 2013-01-16 18:50:25 -08:00
Bobby Holley
1d5c9aeac3 Bug 824864 - Implement nsContentUtils::GetObjectPrincipal. r=bz
The SSM interface is super awkward.
2013-01-16 18:50:25 -08:00
Bobby Holley
85b3a83b16 Bug 825395 - Add debug checking for interleaved nsCxPusher and JSAutoEnterCompartment. r=bz,luke 2013-01-16 18:50:25 -08:00
Christian Holler
2a7c1fade5 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
4bd2625b82 Bug 828558 - Don't attach to jsconsole window, r=mdas 2013-01-15 17:41:36 -08:00
Rafael Ávila de Espíndola
0cdb0a43d3 Bug 831133 - Record only the basename. r=vladan. 2013-01-16 21:02:32 -05:00
Rafael Ávila de Espíndola
3c03d12c55 Bug 831100 - use std::string. r=vladan. 2013-01-16 20:38:22 -05:00
David Zbarsky
5797284cf1 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
c67cff5ead Bug 831205 - Fix GCC warning "comma at end of enumerator list". r=billm DONTBUILD 2013-01-16 17:24:28 -08:00
Jeff Walden
13ee123f23 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
f9dab52ff2 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
950d67e8b3 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
ffe78a488d Bug 830181: SVGSymbolElement should QI to SVGTests r=me 2013-01-16 20:02:59 -05:00
Fabrice Desré
f380b01089 Bug 830294 - Can't launch an app after canceling its update r=ferjm 2013-01-16 16:55:50 -08:00
Daniel Holbert
598f325900 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
fd2439b634 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
00bf4244dc 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
484ed727bd Bug 827824 - Use uint8_t for mTxInlineFrame. r=mcmanus 2013-01-17 08:25:03 +09:00
Trevor Saunders
b98e34aed0 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Marco Bonardo
857f6c18f4 Bug 825786 - crash in nsAutoCompleteController::HandleDelete.
r=Enn
2013-01-17 00:12:43 +01:00
Ed Morley
127965063e Backout 780c48afccc1 (bug 831354) for Android reftest failures on a CLOSED TREE 2013-01-16 23:08:07 +00:00
David Rajchenbach-Teller
41366f0dbb Bug 828228 - Measure nsSearchService init with Telemetry. r=gavin 2013-01-16 18:03:05 -05:00
Jonathan Watt
e2d41dc013 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
9d0ada0085 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
c2fad8e94f 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
a1ff9dbdb6 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
15c408b167 bug 828141 - windows shouldn't hold onto events r=surkov 2013-01-08 19:41:58 -05:00
Andrew McCreight
30ded1b75a Bug 829430 - Use the right check for if we're GCing. r=billm 2013-01-15 09:10:36 -08:00
Andrew McCreight
1147d07eb7 Bug 829798 - Add dummy PreserveWrapper to JS shell. r=billm 2013-01-15 10:14:12 -08:00
Ehsan Akhgari
d5919c8e4d Merge mozilla-central into mozilla-inbound 2013-01-16 17:32:13 -05:00
Jonathan Griffin
5f0b44a3ad 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
bab0bcfee5 Bug 828946 - leakstats should output TBPL-parsable error messages; r=ted 2013-01-16 21:53:45 +00:00
Gary Kwong
5121706d6d Bug 831472 - Add another null check to nsGlobalWindow::GetInnerScreenRect(). r=smaug 2013-01-16 13:44:26 -08:00
Brian Hackett
190d56fcd0 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
cdc3298cc6 Merge mozilla-central into build-system 2013-01-16 12:38:18 -08:00
Gregory Szorc
26636b8d65 Merge mozilla-central into build-system 2013-01-16 12:37:21 -08:00
Gary Kwong
35567a125a Add another suppression for bug 812423. DONTBUILD 2013-01-16 12:35:49 -08:00
Ed Morley
9cb170a652 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2013-01-16 20:22:54 +00:00
Ed Morley
3de1bf91c3 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
4b572e2ad6 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
e69be76f21 Test case for bug 828780; r=jdm 2013-01-16 09:35:41 -05:00
Justin Lebar
be02bb7b57 Bug 789975 - Follow-up: Fix memory reporter descriptions. r=me 2013-01-16 09:34:25 -05:00
Andrea Marchesini
574e475e6c Bug 830672 - audio-channel-changed is properly when an audio channel is visible, r=mchen 2013-01-16 14:38:51 +01:00
Andrea Marchesini
5941660e84 Bug 829561 - AudioChannelService needs some unit test, r=mchen 2013-01-16 14:34:07 +01:00
Chris Coulson
c3f2c7a3da Bug 823973 - Skip GConf-specific shell component tests on systems with GSettings. r=gavin 2013-01-16 08:30:42 -05:00
Andrea Marchesini
937ab476fc Bug 828200 - Any audio channel should play when visible. r=mchen 2013-01-16 14:29:57 +01:00