Commit Graph

3313 Commits

Author SHA1 Message Date
Doug Turner
3e86f60063 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
ad0f35e96b Bug 827280 - Part 2: DOMEvent. r=philikon a=tef+ 2013-01-25 19:45:16 +01:00
Bobby Holley
559be5f874 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
eb9ded16bd Bug 832899. Make sure our canonical isupports matches what various consumers expect. r=smaug 2013-01-24 21:27:55 -05:00
Bobby Holley
c865dc3ca6 Bug 833412 - Remove AddBinding/RemoveBinding and remove dead code. r=bz 2013-01-24 18:45:50 +01:00
Cervantes Yu
c00d2078d9 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
e0f25c9274 Bug 826383: cyclic array for frames recording to support concurrent users. r=jmuizelaar,khuey 2013-01-23 20:47:44 +02:00
Bobby Holley
d0c7862f5e Bug 832041 - Remove nsJSContext::CompileEventHandler and move consumers to nsJSUtils::CompileFunction. r=bz 2013-01-23 07:12:50 +01:00
Kartikaya Gupta
8c0cc0fece 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
15f6602a90 Merge m-c to inbound. 2013-01-23 18:30:46 -05:00
Olli Pettay
9d51d0bb41 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
74699797c9 Bug 832435 - Fix compartment handling for EvaluteString and javascript: uris. r=bz 2013-01-21 12:56:28 +01:00
Boris Zbarsky
cc38c59fa3 Bug 828787. Stop allowing indexed expandos on windows. r=peterv 2013-01-22 15:29:53 -05:00
Andrew McCreight
761f71fca4 Bug 830595 - Add JSAutoCompartment to nsJSContext::ExecuteScript. r=bz 2013-01-22 11:48:46 -08:00
Steve Fink
9effec722d 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
c5ea080c1a Back out 7dbbb6e3d240 (bug 832435) for assertion failures 2013-01-18 21:29:05 -08:00
Bobby Holley
bd138ef664 Bug 832435 - Fix compartment handling for EvaluteString and javascript: uris. r=bzbarsky 2013-01-18 23:33:26 -05:00
Steve Fink
d8da3e7b9a 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
0dee2fb42d 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
23f321407b 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
8e97e8e581 Bug 826471. Add JSAutoCompartment in nsWindowSH::NewResolve. r=bholley 2013-01-17 16:30:41 -08:00
Boris Zbarsky
06072bf404 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
6e038d2b99 Bug 824864 - Fix Ms2ger nits. r=me 2013-01-16 18:50:27 -08:00
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
Trevor Saunders
83bcbe0d6b bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Gary Kwong
521929f375 Bug 831472 - Add another null check to nsGlobalWindow::GetInnerScreenRect(). r=smaug 2013-01-16 13:44:26 -08:00
David Zbarsky
8826c06ce1 Bug 827174 - Remove nsIDOMSVGLocatable and nsIDOMSVGTransformable r=bz 2013-01-16 15:51:00 -05:00
David Zbarsky
e10b65b185 Bug 827172 - Convert SVGPathElement to WebIDL r=bz 2013-01-16 15:50:59 -05:00
Ed Morley
84b7b29fbf Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2013-01-16 20:22:54 +00:00
Olli Pettay
fef0029520 Bug 830858 - Implement a generic way to dispatch events to chrome only, r=jst 2013-01-16 11:27:06 +02:00
Panos Astithas
ee55ec9122 Merge m-c to fx-team 2013-01-16 10:13:29 +02:00
Olli Pettay
b70de8d5a7 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
259732578f Bug 787985 - Console API messages are not consistent; r=past 2013-01-15 16:02:25 +02:00
Trevor Saunders
84fd122dde bug 830396 - add back nsIDOMCSSValueList r=bz 2013-01-14 12:29:27 -05:00
Phil Ringnalda
dfaf3bab2c Back out ecac2ce4eada (bug 828126) for busting b2g's arm 2013-01-13 17:48:33 -08:00
Kartikaya Gupta
3a5e8a2d07 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
5d03b3664d Bug 827724 - Remove nsIDOMSVGAnimatedPoints r=bz 2013-01-12 17:21:53 -05:00
Ryan VanderMeulen
d5134b0105 Merge m-c to inbound. 2013-01-15 19:44:40 -05:00
Boris Zbarsky
3a50cb6afb Bug 830553. Make the asserts in nsWrapperCache.h fatal. r=mccr8 2013-01-15 14:04:24 -05:00
Trevor Saunders
138e996dfc no bug - remove a bunch of extra ';'s to make -pedantic happy 2013-01-11 05:14:04 -05:00
Trevor Saunders
0e12472abd bug 828138 - GetCurrentSelection() should return Selection* r=smaug 2012-12-19 17:55:44 -05:00