Commit Graph

122477 Commits

Author SHA1 Message Date
Brian Hackett
ddc5fd3107 Bug 844048 - Track uses of 'var arguments' within eval scripts, always make arguments objects for generators, r=luke. 2013-02-22 09:29:28 -07:00
Bobby Holley
b9a551bd57 Bug 836301 - Hoist some assertions, remove a bunch of no-op trap overrides, and add assertions that we've entered our policy. r=mrbkap 2013-02-22 08:14:34 -08:00
Bobby Holley
a98d6a7dfd Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap 2013-02-22 08:14:34 -08:00
Bobby Holley
9ea662d5a5 Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-22 08:14:33 -08:00
Bobby Holley
55c2f3f408 Bug 836301 - Hoist enter() into BaseProxyHandler. r=mrbkap 2013-02-22 08:14:33 -08:00
Bobby Holley
0e28477234 Bug 836301 - Add tracking for whether we have a non-trivial enter() trap. r=mrbkap
This will allow us to skip the virtual function call for non-security-wrapper
proxies, which are the cases where we care most about performance.
2013-02-22 08:14:33 -08:00
Bobby Holley
8723efd01d Bug 836301 - Stop enter()ing with CALL for nativeCall. r=mrbkap
This is kind of nonsensical, because CALL means "the wrapped object is being
called", whereas nativeCall means "the wrapped object is being unwrapped to
have a JSNative invoked on it", which are two very different things.

We _could_ add a NATIVECALL enter() trap, but our current policy enforcement
around nativeCall involves overriding the trap itself, so we wouldn't use it
for anything. So let's just get rid of it.
2013-02-22 08:14:33 -08:00
Bobby Holley
fa62b333b9 Bug 836301 - Add Special handling to allow us to call enter() for defineProperty on Xrays. r=mrbkap 2013-02-22 08:14:33 -08:00
Bobby Holley
93369747ec Bug 836301 - Stop using JSRESOLVE_ASSIGNING to determine GET vs SET. r=mrbkap
This is just a heuristic, anyway, and some of the usage is downright broken.
There are two cases here:

1 - Deciding what to do for get{Own,}PropertyDescriptor. In these cases, we can
just enter with GET and rely on the filtering machinery to filter out dangerous
setters for security wrappers.

2 - Custom Xray props. None of these make sense in a |set| context. In fact,
    they generally have null setters anyway, so we can just assume GET.

The policy-entering code in XrayWrapper is super haphazard. We'll get rid of it
entirely later in these patches.
2013-02-22 08:14:32 -08:00
Bobby Holley
a307379ec0 Bug 836301 - Assert against JSID_VOID in JSID wrapping. r=mrbkap
Luke explained to me that it should never get there.
2013-02-22 08:14:32 -08:00
Adam Roach [:abr]
e72d4d5672 Bug 839647 - Remove crash test workaround r=jesup 2013-02-22 10:08:54 -06:00
Adam Roach [:abr]
05a3d24182 Bug 839647 - Synchronize CCApp thread start-up r=ehugg 2013-02-22 10:08:47 -06:00
Bobby Holley
d5c80d07cc Bug 843231 - Compute whether to use an XBL scope exactly once. r=bz 2013-02-22 07:56:03 -08:00
Bobby Holley
5da3947b0e Bug 843231 - Alter the XBL scope test to make it compatible with reading the dom.xbl_scopes only once per global. r=bz
--HG--
rename : content/xbl/test/test_bug821850.xhtml => content/xbl/test/file_bug821850.xhtml
2013-02-22 07:56:03 -08:00
Bobby Holley
ea51770fa3 Bug 843231 - Remove SetGlobal. r=bz
This stuff has all been simplified significantly with CPG, and this is no longer
necessary. We always have a global when we construct a scope, and it never
changes.
2013-02-22 07:56:03 -08:00
Bobby Holley
b1e6cef1c7 Bug 843231 - Move the nulling out of mPrototypeNoHelper from SetGlobal to RemoveWrappedNativeProtos. r=bz
The only call-site for both of these is JSD->nsXPConnect::InitClasses, so this
is equivalent. All this will go away soon anyhow when JSD goes away.
2013-02-22 07:56:02 -08:00
Robert O'Callahan
3fd077e2da Bug 842089. MediaStream doesn't implement EventTarget yet. r=bz 2013-02-22 10:33:30 -05:00
David Humphrey (:humph)
51cb2d6252 Bug 629801 Implement HTML5 <time> element. r=smaug, peterv, hsivonen 2013-02-22 10:07:42 -05:00
Boris Zbarsky
ded9c51b92 Bug 842561. Assert that our inheritance chain is correct for WebIDL objects. r=peterv
We could drop the descriptor for Text if we changed nsIDocument::CreateTextNode
to return an already_AddRefed<Text>, but then we'd need more casting in
nsDocument.cpp for the XPCOM CreateTextNode.  Not sure which way is better,
really.
2013-02-22 09:56:29 -05:00
Boris Zbarsky
719d8ce284 Bug 842726. Kill off GetterShim and the classinfo support for chrome-only stuff on Document now that we can do that via WebIDL. r=peterv 2013-02-22 09:56:29 -05:00
Boris Zbarsky
30ff6fd171 Bug 832920. Add a way for chrome iframes to opt into having a separate refresh driver (e.g. if they plan to be moved between windows) and make devtools use that opt-in. r=tnikkel,paul 2013-02-22 09:56:28 -05:00
Siddartha Pothapragada
663dbfd332 Bug 831630 - Part 3: [B2G STK]: Marionette test case. r=allstars.chh 2013-02-14 18:55:40 -08:00
Karl Tomlinson
307fc975ae b=609784 rename DBus Notifications nsAlertsService to resolve collision with XP service r=roc
--HG--
rename : toolkit/system/gnome/nsAlertsService.cpp => toolkit/system/gnome/nsSystemAlertsService.cpp
rename : toolkit/system/gnome/nsAlertsService.h => toolkit/system/gnome/nsSystemAlertsService.h
2013-02-15 12:02:08 +13:00
Jeff Gilbert
78f00c0f31 Bug 716859 - Streaming GLContext buffers (doublebuffering, etc) - r=bjacob,jrmuizel,vlad
--HG--
extra : rebase_source : 3fb4230127df8a265d930fb779bdc93e05626c8b
2013-02-13 15:26:24 -08:00
Jonathan Griffin
a60fdeae9f Bug 797628 - Use a 320x480 emulator by default, r=ahal 2013-02-11 12:41:32 -08:00
Ethan Hugg
f6aff9b6e0 Bug 841899 - Remove stream-based logging from Signaling code r=jesup 2013-02-20 14:08:23 -08:00
Brad Lassey
9405c2a4ed Bug 843361 - Read proc names more efficiently r=mfinkle 2013-02-21 11:24:08 -05:00
Gregory Szorc
64b8e14d6e Bug 771578 - Part 1: Reindent xpcshell test runner Python files; rs=ted 2013-02-20 12:45:14 -08:00
Christian Ascheberg
7bc4813395 Bug 842692 - Plugin click-to-play play button has default cursor. r=jaws
DONTBUILD
2013-02-20 22:18:03 +01:00
Margaret Leibovic
d752748d7c Bug 842897 - Initalize distribution in testDistribution() instead of setUp(). r=gbrown 2013-02-21 09:47:43 -08:00
Wes Johnston
b9ee50eaf0 Bug 842830 - Don't show splash screens if Gecko is already running. r=mfinkle 2013-02-21 08:41:43 -08:00
Wes Johnston
8ef3f5fc3f Bug 839771 - Use a compound drawable to add padding to select elements. r=sriram 2013-02-21 08:41:41 -08:00
Irving Reid
204ed419da Bug 842149: count idle observers to handle the case where observers de-register themselves while idle r=jlebar 2013-02-21 11:29:30 -05:00
Aishwarya
0047b93146 Bug 794620 - group position of HTML radio buttons can be incorrect, r=surkov 2013-02-22 01:31:40 +09:00
Dave Townsend
adce4f0f2f Bug 842762: Uplift Add-on SDK changeset bf2c2f609babcea412a2349a431ae6bdbedcf05d
4e44dd094e...bf2c2f609b
2013-02-21 07:54:55 -08:00
Eric Chou
2cd94ed768 Bug 842434 - Ensure the flows of handling "socket disconnection" are the same, r=qdot
For "actively calling CloseSocket()" and "passively noticing the socket has been closed",
we want to ensure that the process of closing a socket are the same. Therefore I use a
runnable to call CloseSocket() on the main thread when it can't read from the socket.
2013-02-21 23:32:17 +08:00
Hannes Verschore
bb7bd7e48f No bug: IonMonkey: Improve debugging spew, r=evilpie 2013-02-21 16:09:39 +01:00
Hannes Verschore
3490ed0d86 Bug 843038: IonMonkey: Correct the definition of when an instruction is part of the loop, r=jandem 2013-02-21 15:56:49 +01:00
Hannes Verschore
407104ef88 Bug 843518: IonMonkey: Run alias analysis when UCE removes dependency of an instruction, r=nmatsakis 2013-02-21 15:56:43 +01:00
Dão Gottwald
25122a53f6 Bug 842989 - Don't needlessly call FullZoom.onLocationChange for same-document location changes. r=mak 2013-02-21 15:41:29 +01:00
Kartikaya Gupta
de31f63f2d Bug 843300 - Don't let JavaAddonManager register for events multiple times. r=mfinkle 2013-02-21 09:30:00 -05:00
Ehsan Akhgari
c6800e03f5 Bug 838582 - Part 1: Rename nsHTMLTextAreaElement to mozilla::dom::HTMLTextAreaElement; r=bzbarsky
--HG--
rename : content/html/content/src/nsHTMLTextAreaElement.cpp => content/html/content/src/HTMLTextAreaElement.cpp
rename : content/html/content/src/nsHTMLTextAreaElement.cpp => content/html/content/src/HTMLTextAreaElement.h
extra : rebase_source : 1fc795be955e136df29454360785ba20225e6003
2013-02-18 16:18:40 -05:00
Joel Maher
e1fb26a975 Bug 843105 - allow robocop tests to be run in chunks. r=ted 2013-02-21 09:03:02 -05:00
Brian Hackett
0071d2ff30 Bug 842424 - Remove assertion. 2013-02-21 07:02:41 -07:00
Brian Hackett
4a4012adac Bug 743394 - Ion compile JSOP_EVAL, r=jandem. 2013-02-21 06:56:54 -07:00
Brian Hackett
610e2d4848 Bug 842425 - Watch for arrays that need elements converted to doubles when pushing elements, r=jandem. 2013-02-21 06:54:16 -07:00
Mark Finkle
b5b26c2286 Bug 843361 - Dump list of open files if we fail to unlock the DB r=blassey 2013-02-21 08:52:37 -05:00
Brian Hackett
28df7a17d3 Bug 842424 - Add missing newKind, r=terrence. 2013-02-21 06:46:46 -07:00
Georg Fritzsche
2afe0c2c2a Bug 657313 - Fix mach xpcshell command to provide pluginsPath. r=ted 2013-02-19 18:13:38 +01:00
Honza Bambas
876a554a3c Bug 843376 - nsMediaSniffer.cpp(13) : fatal error C1083: Cannot open include file: 'nestegg/nestegg.h', r=padenot 2013-02-21 14:27:00 +01:00