Commit Graph

11445 Commits

Author SHA1 Message Date
Bobby Holley
cecccc3751 Bug 824864 - Pass EvaluateString out-param as a pointer, not a reference. r=bz 2013-01-16 18:50:27 -08:00
Bobby Holley
2af1ceaef4 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
ab3bdab46b 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
cbd37c2417 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
1c16565b99 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
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
Fabrice Desré
f380b01089 Bug 830294 - Can't launch an app after canceling its update r=ferjm 2013-01-16 16:55:50 -08:00
Trevor Saunders
b98e34aed0 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05: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
Gary Kwong
5121706d6d Bug 831472 - Add another null check to nsGlobalWindow::GetInnerScreenRect(). r=smaug 2013-01-16 13:44:26 -08:00
David Zbarsky
1fd6f576ea Bug 830230 - Convert SVGPatternElement to WebIDL r=bz 2013-01-16 15:51:00 -05:00
David Zbarsky
a9dc213100 Bug 827174 - Remove nsIDOMSVGLocatable and nsIDOMSVGTransformable r=bz 2013-01-16 15:51:00 -05:00
David Zbarsky
41ec5dbc06 Bug 830181 - Convert SVGSymbolElement to WebIDL r=bz 2013-01-16 15:50:59 -05:00
David Zbarsky
d0e90dff8c Bug 827172 - Convert SVGPathElement to WebIDL r=bz 2013-01-16 15:50:59 -05:00
David Zbarsky
173b3e4951 Bug 827182: Convert SVGUseElement to WebIDL 2013-01-16 15:50:59 -05:00
Ed Morley
ed8660870e Merge mozilla-central to mozilla-inbound 2013-01-16 20:27:28 +00:00
Ed Morley
9cb170a652 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2013-01-16 20:22:54 +00:00
Ehsan Akhgari
1f9d5a9001 Bug 827158 - Part 3: Move the ValidityState API to Web IDL bindings; r=bzbarsky 2013-01-16 13:01:01 -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
Andrea Marchesini
937ab476fc Bug 828200 - Any audio channel should play when visible. r=mchen 2013-01-16 14:29:57 +01:00
Olli Pettay
1cbfc3426f Bug 830858 - Implement a generic way to dispatch events to chrome only, r=jst 2013-01-16 11:27:06 +02:00
Panos Astithas
b157673742 Merge m-c to fx-team 2013-01-16 10:13:29 +02:00
Edgar Chen
1fc74f54b9 Bug 831183 - Part 3: Marionette tests for SET_UP_CALL. r=allstars.chh 2013-01-16 11:34:44 +08:00
Edgar Chen
d37decf695 Bug 831183 - Part 2: xpcshell tests for SET_UP_CALL. r=allstars.chh 2013-01-16 12:27:38 +08:00
Edgar Chen
809b69fd78 Bug 831183 - Part 1: Fix callMessage. r=allstars.chh 2013-01-16 11:30:02 +08:00
Eric Chou
00071bde2e Bug 825762 - Replace VFAT reserved character with '_' to avoid file-transferring failure, r=qdot 2013-01-16 18:23:28 +08:00
Gian-Carlo Pascutto
ce79fd73e4 Bug 812650 - Enable WebRTC audio recording on Android. r=dmose 2013-01-16 10:14:49 +01:00
Gina Yeh
4a0934bf5d Bug 827266 - Patch 1: [Bluetooth][Hfp] Support 'call waiting notification activation', r=echou 2013-01-16 14:17:41 +08:00
Olli Pettay
93c9bddde7 Bug 830948, null check mDocshell before using it, r=bz
--HG--
extra : rebase_source : ea20dabe0ec39b3b98fab07e72b0f1f51f9d32a8
2013-01-16 01:12:14 +02:00
Mihai Sucan
63c0ed5ccd Bug 787985 - Console API messages are not consistent; r=past 2013-01-15 16:02:25 +02:00
Trevor Saunders
4f48cd4e2c bug 830396 - add back nsIDOMCSSValueList r=bz 2013-01-14 12:29:27 -05:00
Mike Habicher
04d4c426d1 Bug 830116 - remove off-main-thread calls to nsMainThreadPtrHandle::get() in error-handling paths, r=jst 2013-01-15 10:57:22 -05:00
Ed Morley
916b388eb6 Backout 4082c7521142 (bug 819000) for mochitest assertions on a CLOSED TREE 2013-01-15 15:36:43 +00:00
Andrea Marchesini
5ac150aaba Bug 830648 - AudioChannelAgent::StartPlaying() should check if already registered to AudioChannelService., r=mchen 2013-01-15 15:31:19 +01:00
Marco Chen
6e9b4d1ac0 Bug 829420 - [Camera] In GonkNativeWindow::dequeueBuffer, -1 will be used as index to access an Arrary. r=kanru 2013-01-11 18:18:35 +08:00
Yoshi Huang
835938782f Bug 828330 - B2G RIL: Expose iccid in nsIRadioInterfaceLayer.idl 2013-01-14 08:43:40 +08:00
Peter Van der Beken
e9af4de1e2 Fix for bug 827546 (|non editable element|.QueryInterface(Components.interfaces.nsIDOMNSEditableElement) does not throw anymore) - throw on QI failure. r=bz. 2013-01-14 11:29:49 +01:00
Andrea Marchesini
45b85ca21d Bug 829030 - Accessing the desktop notification API in the browser and approving permission errors out - API does not work, r=sicking 2013-01-14 11:08:55 +01:00
Vicamo Yang
231a438414 Bug 813596: add marionette test cases, r=hsinyi 2013-01-14 17:05:26 +08:00
Benjamin Chen
c18e8d8253 Bug 816900 - 1. Use |expandedPermNames[idx]| instead |msg.type + "-" + msg.access|. 2. Add |write, create| permissions in test_sim_contacts.js. r=gwagner 2013-01-09 13:25:34 +08:00
Hsin-Yi Tsai
23594f9df5 Bug 828160 - B2G RIL: not send duplicate incoming-call messages in some cases of 'waiting call coming' r=allstars.chh 2013-01-11 10:41:53 +08:00
Phil Ringnalda
d9967d6bd1 Back out ecac2ce4eada (bug 828126) for busting b2g's arm 2013-01-13 17:48:33 -08:00
Kartikaya Gupta
4d6ef1543a Bug 828126 - Remove ANDROID special-casing now that dependent bugs have been fixed. r=avih 2013-01-13 19:19:03 -05:00
David Zbarsky
81464d1163 Bug 827724 - Remove nsIDOMSVGAnimatedPoints r=bz 2013-01-12 17:21:53 -05:00
David Zbarsky
6168609ec2 Bug 827149 - Remove some uses of nsIDOMHTMLBodyElement r=bz 2013-01-12 16:53:01 -05:00