Commit Graph

23216 Commits

Author SHA1 Message Date
Bobby Holley
d889379068 Bug 808608 - Fix test_bug802557. r=bz
There are a number of fixes to this important tests, so this warrants a separate
patch.

First of all, the boundTo machinery goes away, because we no longer have same-
compartment Xrays giving us the weird bound methods.

Furthermore, now that the sensitive methods are just regular old methods
off the prototype. They'll fail correctly when used on a same-scope object,
but not for cross-scope XOWs they'll just fail in the
GetWrappedNativeOfJSObject rat's nest (when they can't unwrap the security
wrapper), so we'll just get a generic XPConnect error instead of a security
exception. I want to fix this soon, so I changed the skipMessageCheck stuff
to use todo_is.

However, _that_ caused an UNEXPECTED-PASS for the DefaultValue test (which
was the only one of the array of tests that was throwing a security exception
in step 2). So I added an annotation for that in item[2].
2012-11-21 13:20:05 -08:00
Bobby Holley
4fb0eb55a2 Bug 808608 - Remove Xray shadowing protection infrastructure. r=mrbkap
This is now unused.
2012-11-21 13:20:05 -08:00
Bobby Holley
645bf15f18 Bug 808608 - Fix up tests to work with new behavior. r=bz,me 2012-11-21 13:20:05 -08:00
Bobby Holley
deb1246831 Bug 808608 - Remove special testing for Location in test_bug505915. r=me
Removing test coverage isn't great. But the only reason this test is doing all
this funny stuff with Location is that it thinks that it's always wrapped in
an Xray wrapper and that we always do a dynamic security check, which is no
longer true. Moreover, it checks for very specific error messages, which are
kind of in flux right now as I'm fixing up GWNOJO. The calls are never going
to actually succeed (since location isn't a Node), so it's not really clear
how to fix up this test to do something uniquely useful in a readable way.
I've added enough Location test coverage recently that I'm comfortable removing
this part.
2012-11-21 13:20:05 -08:00
Bobby Holley
9081886d4a Bug 808608 - Remove specialized Location security wrappers. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley
de65cd77ed Bug 808608 - Remove unnecessary outparam. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley
aa8b4abfd6 Bug 808608 - Implement shadowing protection in nsDOMClassInfo. r=mrbkap
This allows us to remove the same-compartment Location wrappers. This can
go away when we move Location to the new bindings and get access to
[Unforgeable].
2012-11-21 13:20:05 -08:00
Bobby Holley
52508e361a Bug 808608 - Rescue expando sharing tests. r=mrbkap
We have a very nice and robust infrastructure for per-origin expando sharing
for Xrays. Unfortunately, the only way to currently exercise it is with
Location objects, since those are the only objects with same-origin Xrays
(cross-origin Xrays don't allow expandos at all). Sandbox wantXrays would
almost work here, but we actually make an explicit exception for sandboxes
so that they never share expandos (the 'exlusive global' stuff).

I think the infrastructure is nice and that we may want it in the future, so
I don't really want to back it out. But I also don't want to leave it in the
tree untested. So I'm adding an explicit Cu API to force DOM compartments to
use same-origin Xrays. This allows us to keep testing this stuff, which I think
is important.
2012-11-21 13:20:04 -08:00
Brian Hackett
748221ed7d Show generated assembly in Ion PC count information, bug 811349. r=pierron 2012-11-21 13:53:18 -05:00
Shu-yu Guo
601262cf64 Bug 791850 - Followup: fix computing caller stack formal position. (r=jorendorff) 2012-11-21 10:50:01 -08:00
Niko Matsakis
66511efcf5 Bug 801087 - Implement parallel workers threadpool in preparation for Rivertrail. r=dmandelin 2012-11-21 13:31:57 -05:00
Daniel Holbert
41aacf08c9 Bug 811057: Make DeferredFinalizeFunction take a uint32 instead of an int32 as its "slice" parameter. r=peterv 2012-11-21 10:20:32 -08:00
Ryan VanderMeulen
4b287535f2 Backed out changesets 1a8b11ae0f4b, e02a02fd1208 (bug 776443), 86a3edf2960d (bug 812392), 26c59f23fd8f, and 288c74d7f87d (bug 812744) for mochitest orange.
CLOSED TREE
2012-11-21 12:47:40 -05:00
Boris Zbarsky
fcb38825b7 Bug 812392. Make sure we don't allow descendant protoss to confuse whether a proto corresponds to a DOM type. r=bhackett,peterv 2012-11-21 11:19:26 -05:00
Till Schneidereit
dc021bf839 Bug 791850 - Lazily clone self-hosted methods installed via js_DefineFunction. r=luke,jwalden,bhackett 2012-09-18 22:11:37 +02:00
Shu-yu Guo
43982a7631 Bug 791850 - Add intrinsic function %_DecompileArg to self-hosting environment. r=jwalden 2012-11-19 20:17:00 +01:00
Shu-yu Guo
6c5b98fe3a Bug 812906 - Part 2: No type transform for self-hosted 'this' in TI. (r=bhackett) 2012-11-20 14:55:00 +01:00
Till Schneidereit
c5df6c0452 Bug 812906 - Statically initialize GetIntrinsicValueInfo in IM. r=nicolas.b.pierron 2012-11-18 22:00:37 +01:00
Till Schneidereit
62d2468050 Bug 791759 - Fix jit-tests default jitflags. r=dmandelin
--HG--
extra : rebase_source : c1106b9936d7deb15e03ccb322abb75f1e19b3c6
2012-11-21 02:53:27 +01:00
Ryan VanderMeulen
66bbddb09f Merge m-c to inbound. 2012-11-20 20:28:29 -05:00
Olli Pettay
3879ea62f2 Bug 794158, Remove over-complicated AutoWrapperChanger, r=peterv 2012-11-20 23:01:28 +02:00
Ed Morley
a8948f4232 Backout 9f8721399b14 (bug 812218) for Win PGO bustage 2012-11-20 10:57:43 +00:00
Jon Coppeard
44536757b3 Bug 813007 - Remove ExecutableAllocatorSymbian.cpp r=billm 2012-11-20 10:03:09 +00:00
Jeff Gilbert
a6216d9879 Bug 813278 - Overload JSAutoCompartment for TimeZoneSettingObserver - r=luke 2012-11-20 01:39:26 -08:00
Jason Orendorff
3b94b57142 Bug 812314 part 2 - User fewer namespace js {...} blocks in .cpp files in js/src/gc. r=terrence.
--HG--
extra : rebase_source : 821757d2ac77c66ce42c3db42d9dcaa99e6ae637
2012-11-16 16:00:02 -06:00
Jason Orendorff
364708cb56 Bug 812314 part 1 - Use fewer namespace js {...} blocks in .cpp files in js/src, js/src/builtin, js/src/vm. r=luke.
--HG--
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_localStorage_before_after.js => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_localStorage_before_after.js
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_localStorage_before_after_page.html => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_localStorage_before_after_page.html
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_localStorage_before_after_page2.html => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_localStorage_before_after_page2.html
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_placestitle.js => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_placestitle.js
rename : browser/components/privatebrowsing/test/browser/perwindow/title.sjs => browser/components/privatebrowsing/test/browser/global/title.sjs
extra : rebase_source : d1d1c39b490ae33fb9e8417ed72c2b77ee631416
2012-11-16 15:59:26 -06:00
Bill McCloskey
3868c9ddea Backout 2ee20348ae59 (bug 747066) for Win64 crashes 2012-11-20 10:45:43 -08:00
Benjamin Peterson
f96fb190ef Bug 795104 - Sources with a custom charset can't be lazily loaded. r=bz 2012-11-20 11:30:03 -06:00
Benjamin Peterson
0e920e50f3 Bug 795104 - Load source if needed in JS_DecompileScript. r=jorendorff 2012-11-20 11:29:53 -06:00
Benjamin Peterson
94b05f7215 Bug 795104 - Don't abort compression, which isn't happening. r=jorendorff 2012-11-20 11:29:42 -06:00
Boris Zbarsky
46a77679c5 Bug 813423. A bit more inlining for stuff that should really be inline. r=peterv 2012-11-20 11:36:06 -05:00
Boris Zbarsky
47c856187a Bug 813419. Add a non-null-checking version of xpc_UnmarkGrayObject. r=mccr8 2012-11-20 11:36:06 -05:00
Jan de Mooij
03090b1247 Bug 772830 - Add some regalloc asserts. r=dvander 2012-11-20 14:08:59 +01:00
Nicolas B. Pierron
a0f4f2a053 Bug 810062 - Toggle JSOPTIONs before the compartment creation. r=bhackett 2012-11-19 18:07:20 -08:00
Kannan Vijayan
f065698a2a Bug 813328 - Add initialize() method to IonCompartment. r=dvander 2012-11-19 17:43:13 -05:00
Steve Fink
403f37a9f5 Bug 809977 - Allow output with progress bar. r=terrence
--HG--
extra : rebase_source : 6a87e7a24189769876e5638a60770dd95d48a921
2012-11-19 14:19:01 -08:00
Steve Fink
7d1b0966a1 Bug 809975 - --failed-only should ignore expected failures. r=terrence
--HG--
extra : rebase_source : 778596de5033dc7ff19ea074e4f660eb1f9f4fd0
2012-11-19 14:18:48 -08:00
Ehsan Akhgari
f111e7c0fb Merge mozilla-central into mozilla-inbound 2012-11-19 17:07:53 -05:00
Alex Keybl
649cc92616 Merging in version bump NO BUG 2012-11-19 12:03:27 -08:00
Nicholas Nethercote
fa52b57f84 Bug 789398 - Rework the type inference memory reporters. r=bhackett.
--HG--
extra : rebase_source : 945c35907d0d4a62b904664da7b5f2b35a182034
2012-11-18 14:40:01 -08:00
Tom Schuster
4da3d2981c Bug 802869 - IonMonkey: Fast path for the |in| operation with int32 and dense arrays. r=jandem 2012-11-18 22:14:18 +01:00
Jim Mathies
1892c79026 Bug 810810 - Add support for 'APluginsDL' to the xpcshell directory service provider and return the GRE folder when queried. r=bsmedberg, glandium 2012-11-17 14:35:16 -06:00
Ehsan Akhgari
02989ba6ff Backed out changeset a8832e8df0c8 (bug 811349) because of busted b2g debug builds 2012-11-17 10:59:39 -05:00
Brian Hackett
0939b685d7 Show generated assembly in Ion PC count information, bug 811349. r=pierron 2012-11-17 07:08:43 -08:00
Jan de Mooij
ad6e5b70db Bug 812537 - Move GetDenseArrayShape to jsarray. r=bhackett 2012-11-17 11:54:21 +01:00
Jonathan Griffin
67543c33b9 Backed out a94288026ea5 (Bug 811784) for turning all b2g emulator tests red 2012-11-16 18:30:22 -08:00
Jeff Walden
a20e1c1909 Bug 812218 - Move user-supplied CFLAGS/CXXFLAGS to the end of commandline, so that they can't interfere with the setting of defaults. r=khuey
--HG--
extra : rebase_source : e74249194de8b5060ccf429719b9b082d2e6b9c7
2012-11-14 16:59:30 -08:00
David Anderson
e0bce10000 Remove yarr/TypeTraits.h (bug 812678, r=luke). 2012-11-16 16:52:18 -08:00
David Anderson
e30a38f927 Ensure that frames are cleaned up if we run out of stack space. (bug 812341, r=jandem). 2012-11-16 16:49:18 -08:00
Eddy Bruel
9512db91d6 Bug 811343 - proxy parent to cx->global() by default; r=bholley 2012-11-17 00:36:02 +01:00