Commit Graph

18345 Commits

Author SHA1 Message Date
Ginn Chen
53a34220fd Bug 737344 make the jsval_layout field in JS::Value public on SPARC for binary compatibility across C and C++ r=luke 2012-03-27 10:51:49 +08:00
Bill McCloskey
34b8d204cc Bug 737997 - Ensure we never do compartment GCs if preference is unset (r=igor) 2012-03-26 16:29:08 -07:00
Gregor Wagner
ec5cd78551 Bug 678695 - Settings API. r=sicking, fabrice, smaug 2012-03-26 14:49:38 -07:00
Jeff Walden
16c13e16cb Bug 738075 - Remove the unnecessary Class* argument from GlobalObject::createConstructor. r=dmandelin 2012-03-21 13:32:43 -07:00
Jeff Walden
c47c965e9c Bug 738075 - Remove JSFunction::u::n::clasp, and change associated code accordingly. r=dmandelin 2012-03-12 16:16:40 -07:00
Jeff Walden
81709e7dd8 Bug 738072 - Slot numbers are uint32_t, so use uint32_t rather than unsigned for slot numbers, slot counts, and so on. r=dmandelin
--HG--
extra : rebase_source : f67146dbd510e1e94b1298344d8335c35350b7c8
2012-03-22 11:50:49 -07:00
Jeff Walden
6c0e0d27b1 Bug 728411 - Move private data bits from JSObject to ObjectImpl. r=bhackett
--HG--
extra : rebase_source : 69aa2fae9e9a3a43496329ed939468214ee7c9d1
2012-03-21 13:32:55 -07:00
Bill McCloskey
fd165164dd Bug 737384 - Use reserve rather than resize for iterator wrapping (r=luke) 2012-03-26 11:06:49 -07:00
Bobby Holley
e3df69dd0f Bug 738874 - Don't allow non-classinfo XPCWNs to be wrapped cross-compartment. r=mrbkap 2012-03-25 22:35:50 -07:00
Makoto Kato
a41e6dd26b Bug 716333 - get rid of WithConversion (xpconnect part). r=bholley 2012-03-26 14:12:15 +09:00
Ed Morley
6d495ce936 Merge mozilla-central and mozilla-inbound 2012-03-25 11:39:22 +01:00
Andreas Gal
a2952d31b2 Build changes to support gonk-ics (bug 737167, r=cjones, patch by mwu). 2012-03-25 03:13:35 +02:00
Ed Morley
6ac240de86 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-24 16:05:07 +00:00
Bill McCloskey
e429b441ae Bug 703474 - Fix memory leak in GC write barrier verifier (r=igor) 2012-03-23 17:18:09 -07:00
Bill McCloskey
61a95b7336 Bug 737573 - Fix leak in SaveScriptFilename (r=igor) 2012-03-23 17:11:51 -07:00
Bobby Holley
5213bf72dd Bug 733984 - Explicitly disallow shadowing on location wrappers. r=mrbkap
This was taken care of in other ways before, but we need to be more explicit about it now that we're doing more Xray stuff with Location wrappers.
2012-03-23 15:58:18 -07:00
Bobby Holley
8189f58fdd Bug 667388 - Handle wrappers during structured clone. r=mrbkap
We also remove the declared-but-never-implemented JSObject::getWrapperHandler.
2012-03-23 14:59:27 -07:00
Bobby Holley
f8fe97314f Bug 667388 - Introduce the PUNCTURE wrapper action. r=mrbkap 2012-03-23 14:59:27 -07:00
Bobby Holley
563b97de8f Bug 667388 - Make the chrome-to-content Xray wrapper derive CrossCompartmentWrapper. r=mrbkap
The current situation seems incorrect, especially given the behavior of CrossOriginWrapper and XrayProxy. Currently it doesn't matter, but it probably will in the future.
2012-03-23 14:59:27 -07:00
Bobby Holley
4a0cc78ae2 Bug 733984 - Apply Location wrappers for same-origin cross-compartment wrapping. r=mrbkap
This isn't an issue right now, since it can't ever happen outside of sandboxes, which content can't use. But if it could, it could get a pure CrossCompartmentWrapper to a Location object, which is bad.
2012-03-23 14:59:23 -07:00
Bobby Holley
da79fb87b2 Bug 733984 - Use the Location security policy even for content accessing chrome. r=mrbkap
I'm adding asserts about when we do and don't have a Location object behind the wrapper, and this case was hitting them. What we do here doesn't so much matter given how this stuff all works. On the one hand, statically using a restrictive policy is slightly more defense-in-depth. On the other hand, if this stuff is broken we're screwed in much more serious ways than content reading chrome locations, and using a consistent wrapper scheme allows us to make stronger asserts and assumptions.

I opted for stronger assumptions and more understandable security code. If Blake feels strongly though, I could go the other way and sprinkle '|| isChrome(obj)' throughout the asserts though.
2012-03-23 14:59:19 -07:00
Bobby Holley
1b0610af05 Bug 733984 - Clarify the security characteristics of Location objects. r=mrbkap
I was getting confused by some of the naming and lack of comments here.
2012-03-23 14:59:07 -07:00
Bobby Holley
ac2c44ee09 Bug 733984 - Stop specializing createHolder, and simplify holder creation in WrapperFactory::Rewrap. r=mrbkap 2012-03-23 14:59:04 -07:00
Jared Wein
3c05f07191 Backed out changeset 5f79a3dd45ff (bug 730318) r=bustage 2012-03-23 11:11:31 -07:00
Mike Hommey
1cfe016bf0 Bug 734050 - Build stlport as part of our build process. r=ted 2012-03-23 17:35:09 +01:00
Makoto Kato
3c8dc78903 Bug 684138 - Remove unused GARBAGE from configure.in. r=khuey 2012-03-23 14:45:51 +09:00
Nicholas Nethercote
1c90ec2f58 Bug 738153 - Remove JSScript::inlineData. r=luke.
--HG--
extra : rebase_source : f003203fbe0219735655d334192fca14cc434736
2012-03-21 23:05:23 -07:00
Jared Wein
61ab14237c Bug 730318 - Implement a way for chrome js to enumerate the plugin objects on a page for activation. r=khuey 2012-03-22 13:53:59 -07:00
Mike Hommey
bd6a8730b3 Bug 736959 - Don't wrap PR_Malloc and other NSPR allocation functions. r=khuey 2012-03-22 08:01:27 +01:00
Nicholas Nethercote
6ae6850783 merge 2012-03-21 21:48:40 -07:00
Nicholas Nethercote
c4ee2f9bdc Backed out changeset 0124795a8cbb (bug 711895) due to i10n build bustage. r=me. 2012-03-21 21:46:27 -07:00
Pranav Ravichandran
c6ac0d8892 Bug 535594 - Fix/Clean-up 'security.enable_java' preference references. r=bsmedberg 2012-03-21 19:52:23 -04:00
Peter Van der Beken
6fd0c1b877 Bug 738593 - Rename IsProxy to IsDOMBinding; r=mrbkap 2012-03-16 16:44:09 +01:00
Ms2ger
679b93a7ba Bug 736619 - remove the unused struct ClearedGlobalObject from XPCJSRuntime; r=bholley 2012-03-24 09:18:22 +01:00
Jared Wein
3f49c23fdd Backed out changeset 5f79a3dd45ff (bug 730318) r=bustage 2012-03-23 11:46:12 -07:00
Nicholas Nethercote
5524d35c04 Bug 711895 - Tweak the warning options used for GCC builds (2nd attempt). r=waldo,derf,khuey,mhommey,jwatt. 2012-03-15 19:40:00 -07:00
Jeff Walden
82fef5e2c3 Windows build bustage fix -- looks like Windows doesn't recognize nested method definitions with const, implicitly namespace-nested argument types (?). No bug, r=red, all hail MSVC 2012-03-21 14:55:12 -07:00
Jeff Walden
030a6aa172 Warning patrol. No bug, r=themaid
--HG--
extra : rebase_source : 49934cb03e1cde5ea44bda525d2502227117aa2a
2012-03-21 14:12:51 -07:00
Jeff Walden
5cc35226b4 Bug 728411 - Move a couple more slot methods over to ObjectImpl. r=bhackett
--HG--
extra : rebase_source : e9e872a9557d87cb545c1c209a946a6b87d85e4d
2012-02-24 20:01:05 -08:00
Jeff Walden
04138b6238 Bug 728411 - Move checkShapeConsistency into ObjectImpl. r=bhackett
--HG--
extra : rebase_source : 92525ff32e1d27c335eb0d2c73a8b54b0d5b8a54
2012-02-23 15:45:01 -08:00
Jeff Walden
800c0e5af6 Bug 728411 - Move most other slot-access methods into ObjectImpl. r=bhackett
--HG--
extra : rebase_source : 34a66226584835cdedc5958d0475606de972180a
2012-02-23 15:39:35 -08:00
Jeff Walden
8b9d875ceb Bug 728411 - Move slot range operations into ObjectImpl. r=bhackett
--HG--
extra : rebase_source : 704d67267923e019df82de7f77f60b48c6c62128
2012-02-23 15:39:32 -08:00
Jeff Walden
e6976ebef4 Bug 737996 - Remove some essentially-obsolete configuration options from jsversion.h. r=luke
--HG--
extra : rebase_source : 4b54a0ab0a6fcdb15ee671ee8c1b460d4b4f4180
2012-03-21 12:23:07 -07:00
Terrence Cole
8904116cef Bug 735761 - Fix a cosmetic error in the test suite; r=dmandelin
This patch pushes our null results for non-run tests before running other tests
so that when we do not try to update the progress bar after we finish running.

--HG--
extra : rebase_source : 02e53cddcab4c5898ef2636f78c806509ae33dcf
2012-03-21 11:49:01 -07:00
Igor Bukanov
9ba9747e3a bug 730221 - followup to bump XDR version number as the previously landed changeset made incompatible changes to xdr format. r=bugzilla_comment 2012-03-21 19:14:42 +01:00
Hessam Salehi
25b8143afe Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Luke Wagner
c97b610edb Bug 737388 - Put back piece of prologue accidentally removed earlier (r=bhackett) 2012-03-21 01:51:11 -07:00
Brian Hackett
0baaf796f4 Use singleton types for global object initializers, bug 731398. r=dvander 2012-03-21 07:37:43 -06:00
Brian Hackett
d660ec709a Update type sets persistently for arithmetic on objects, bug 733979. r=billm 2012-03-21 06:32:18 -06:00
Luke Wagner
1e24ec622e Bug 736555 - don't use magic values to implement deleted args (r=bhackett)
--HG--
extra : rebase_source : f4e3f63512acb2ff8ee874de2d718bd7877932d6
2012-03-14 17:19:17 -07:00