Boris Zbarsky
948936a2c0
Bug 834785. Make sure to not ask the JS engine for return values in toplevel scripts, so it'll be able to ion-compile them as needed. r=bholley
2013-01-29 08:44:00 -05:00
Robert O'Callahan
a83c4b6b01
Backing out 306003528e10, 335160d7855a, dfc9d5651175, 0559d630dd89, 03c3ae8323bd: bug 835195, bug 832154, bug 831561 ... in a CLOSED TREE
...
--HG--
rename : content/svg/content/src/SVGMarkerElement.cpp => content/svg/content/src/nsSVGMarkerElement.cpp
rename : content/svg/content/src/SVGMarkerElement.h => content/svg/content/src/nsSVGMarkerElement.h
2013-01-29 22:45:50 +13:00
David Zbarsky
df923a09bc
Bug 835195: Remove nsIDOMSVGFitToViewBox r=bz
2013-01-29 03:50:57 -05:00
David Zbarsky
53dc11ac3d
Bug 835195: Remove nsIDOMSVGTests r=bz
2013-01-29 03:50:56 -05:00
Gina Yeh
93ca9b9bee
Bug 811569 - Patch 1: Remove unused files in bluetooth, r=echou
2013-01-29 14:52:30 +08:00
Peter Van der Beken
b9d2ae906f
Fix for bug 816088 (webIDL bindings try to extract nsISupports from the global object in static properties in workers). r=bz.
...
--HG--
extra : rebase_source : 5668d9e01bff0fe7831d98018428856e5940a620
2012-12-03 17:07:49 +01:00
Ed Morley
bc0702d0d7
Backout f3c145bd1dd2 & 5075690572a9 for OS X startup failures
2013-01-28 11:08:21 +00:00
Peter Van der Beken
b46afdef94
Fix for bug 816088 (webIDL bindings try to extract nsISupports from the global object in static properties in workers). r=bz.
...
--HG--
extra : rebase_source : 68e5630591f6209e2af9c5cd2321fed8edd3de24
2012-12-03 17:07:49 +01:00
Kyle Machulis
2ff0659932
Bug 777271 - Re-implement nsIDOMCallEvent using event implementation codegen. r=bent,vicamo,hsinyi
2013-01-28 15:39:50 +08:00
Bill McCloskey
0e1f799e7b
Bug 751618 - Zone renaming part 7 (r=jonco)
2013-01-27 13:51:41 -08:00
Bill McCloskey
20da154356
Bug 751618 - Zone renaming part 2 (r=jonco)
2013-01-27 13:51:35 -08:00
Bill McCloskey
8544cb4e1d
Bug 751618 - Add js/GCAPI.h (r=terrence)
2013-01-27 12:35:12 -08:00
Doug Turner
d037baf04d
Bug 834595 - Factor stat() such that there are 3 independent methods. r=sicking
...
--HG--
rename : dom/devicestorage/test/test_stat.html => dom/devicestorage/test/test_freeSpace.html
rename : dom/devicestorage/test/test_stat.html => dom/devicestorage/test/test_usedSpace.html
2013-01-25 11:05:24 -08:00
Jose Antonio Olivera Ortega
b821688dc3
Bug 827280 - Part 2: DOMEvent. r=philikon a=tef+
2013-01-25 19:45:16 +01:00
Bobby Holley
800db35b78
Bug 833856 - Handle errors better in EvaluateString. r=bz
...
This bug happens when we take the !useSandbox path. Basically, when the code
throws, we can end up with garbage in *aRetValue while still returning true
from EvaluateString. It looks like the convention is for these kind of eval
functions to return success even for invalid code, so lets just make sure we
check things a bit better.
This crashtest is kind of half-baked in the sense that it doesn't actually
crash without the rest of the patch. But the testcase here involves a lot of
undefined behavior (what ends up getting left in *aRetValue) during a call
to window.open (which spins the event loop, etc). I already sunk about half
an hour into trying to make it crash, so I'm just going to go with this for
now.
2013-01-25 11:17:40 +01:00
Boris Zbarsky
a0b953f623
Bug 832899. Make sure our canonical isupports matches what various consumers expect. r=smaug
2013-01-24 21:27:55 -05:00
Bobby Holley
5b106e3b14
Bug 833412 - Remove AddBinding/RemoveBinding and remove dead code. r=bz
2013-01-24 18:45:50 +01:00
Cervantes Yu
70cd7f74f9
Bug 833606: Null check mProxy in mozilla::dom::ContentPermissionRequestParent::ActorDestroy(). r=bent a=blocking-b2g
2013-01-23 21:42:09 -08:00
Avi Halachmi
c9c4089bfb
Bug 826383: cyclic array for frames recording to support concurrent users. r=jmuizelaar,khuey
2013-01-23 20:47:44 +02:00
Bobby Holley
cec2ed5339
Bug 832041 - Remove nsJSContext::CompileEventHandler and move consumers to nsJSUtils::CompileFunction. r=bz
2013-01-23 07:12:50 +01:00
Kartikaya Gupta
cbdad1477a
Bug 828126 - Enable ifdef'd code on Fennec now that dependent bugs have been fixed. r=avih
2013-01-23 00:52:19 -05:00
Ryan VanderMeulen
e97eef4d6f
Merge m-c to inbound.
2013-01-23 18:30:46 -05:00
Olli Pettay
bfbe7518c7
Bug 822849 - Don't run CC/GC timers during shutdown, r=mccr8
...
--HG--
extra : rebase_source : 173e02106457b6867db8c4cf734a93366f4b31dd
2013-01-22 21:17:48 +02:00
Bobby Holley
464998681a
Bug 832435 - Fix compartment handling for EvaluteString and javascript: uris. r=bz
2013-01-21 12:56:28 +01:00
Boris Zbarsky
9a595f59ed
Bug 828787. Stop allowing indexed expandos on windows. r=peterv
2013-01-22 15:29:53 -05:00
Andrew McCreight
3ebd8b5ab9
Bug 830595 - Add JSAutoCompartment to nsJSContext::ExecuteScript. r=bz
2013-01-22 11:48:46 -08:00
Steve Fink
57a2c2471b
Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence
2012-12-31 12:40:21 -08:00
Phil Ringnalda
67c7e25d7b
Back out 7dbbb6e3d240 (bug 832435) for assertion failures
2013-01-18 21:29:05 -08:00
Bobby Holley
cf97537345
Bug 832435 - Fix compartment handling for EvaluteString and javascript: uris. r=bzbarsky
2013-01-18 23:33:26 -05:00
Steve Fink
380ecf9335
Backed out changeset fce4e0f8a553 (bug 828753) for breaking windows warnings-as-errors (stop adding JSObject forward decls, please!)
2013-01-18 13:20:21 -08:00
Steve Fink
01f8a5b4d8
Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence
...
--HG--
extra : rebase_source : c8806b27677594925ad0e6b54c47af5cf17e1153
2012-12-31 12:40:21 -08:00
Nicholas Nethercote
26818bf787
Bug 826521 (part 2) - Report memory used by event targets, especially XHRs. r=bz.
...
--HG--
extra : rebase_source : 543f0e367ce73477d62eca544137a101108a97be
2013-01-17 21:21:43 -08:00
Andrew McCreight
2b93350376
Bug 826471. Add JSAutoCompartment in nsWindowSH::NewResolve. r=bholley
2013-01-17 16:30:41 -08:00
Boris Zbarsky
d53ec45102
Bug 823228 part 2. Move indexed property access on windows from nsWindowSH::GetProperty to the outer window proxy. r=bholley
2013-01-17 12:30:37 -05:00
Bobby Holley
7a0d54fa07
Bug 824864 - Fix Ms2ger nits. r=me
2013-01-16 18:50:27 -08:00
Bobby Holley
fe9b482b3b
Bug 824864 - Pass EvaluateString out-param as a pointer, not a reference. r=bz
2013-01-16 18:50:27 -08:00
Bobby Holley
80fbe9010d
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
b5e0ee1f7c
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
89a6e0fc9e
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
5dfabb90ca
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
9f95924a28
Bug 824864 - Remove nsIScriptContext::EvaluateString. r=bz
2013-01-16 18:50:26 -08:00
Bobby Holley
ef4055939e
Bug 824864 - Move existing consumers of EvaluateString over to EvaluateStringWithValue. r=bz
2013-01-16 18:50:26 -08:00
Bobby Holley
1724ed7409
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
8d5b0ca82e
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
d8ecec9ede
Bug 824864 - Hoist the guts of CompileFunction into nsJSUtils. r=bz
2013-01-16 18:50:25 -08:00
Trevor Saunders
9f0ad48b28
bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8
2013-01-12 07:40:33 -05:00
Gary Kwong
474909f086
Bug 831472 - Add another null check to nsGlobalWindow::GetInnerScreenRect(). r=smaug
2013-01-16 13:44:26 -08:00
David Zbarsky
3fc3482bac
Bug 827174 - Remove nsIDOMSVGLocatable and nsIDOMSVGTransformable r=bz
2013-01-16 15:51:00 -05:00
David Zbarsky
7102c65189
Bug 827172 - Convert SVGPathElement to WebIDL r=bz
2013-01-16 15:50:59 -05:00
Ed Morley
097d409ce0
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2013-01-16 20:22:54 +00:00