Commit Graph

18366 Commits

Author SHA1 Message Date
Ben Turner
f41653e7d9 Bug 737911 - 'Shrink bits for CACHED_PROTO_KEYs and add two new JSClass flags for the new DOM bindings'. r=lukew. 2012-03-28 14:50:31 -07:00
Luke Wagner
f2fca55413 Fix warnings in js/src (no bug, r=me) 2012-03-28 09:11:54 -07:00
Luke Wagner
cc8061b8c9 Bug 739520 - rm JSOP_SETLOCALPOP (r=bhackett)
--HG--
extra : rebase_source : d81a637b6b8ba873a78ea6971b3ef5010a0823a3
2012-03-26 22:29:55 -07:00
Luke Wagner
5d91eeef9f Bug 736742 - Fix decompiler precedence for destructuring assignment with comma-expression (r=jorendorff)
--HG--
extra : rebase_source : d38dc6e2eec3a90e5bf1d86862da4734d374e6e2
2012-03-27 14:48:10 -07:00
Luke Wagner
1ee15c5ea7 Bug 739685 - rm useless makeAtom calls in BindNameToSlot (r=dvander)
--HG--
extra : rebase_source : 9c057d2e9a07738cdc2b6530c3d5aae79f6cb095
2012-03-26 22:33:28 -07:00
Luke Wagner
f23d473933 Bug 739532 - don't malloc BytecodeEmitter (r=jorendorff)
--HG--
extra : rebase_source : e831aeba4813e6a7eea7c0dedf9b3946525518ce
2012-03-23 11:29:30 -07:00
Jared Wein
ac11ea4de6 Bug 730318 - Implement a way for chrome js to enumerate the plugin objects on a page for activation. r=khuey 2012-03-28 08:53:56 -07:00
Phil Ringnalda
4df8ed665b Merge m-c to m-i 2012-03-27 21:21:11 -07:00
Tim Taubert
6b4733bdff merge m-c to fx-team 2012-03-28 00:33:42 +02:00
Robert Strong
81a7bfd672 Bug 491947 - Disable DDE shell integration. r=jmathies 2012-03-26 12:45:29 -07:00
Ed Morley
6d495ce936 Merge mozilla-central and mozilla-inbound 2012-03-25 11:39:22 +01:00
David Mandelin
5287c89131 Bug 739808: Remove method cloning optimization and method barrier, r=luke
--HG--
extra : rebase_source : d383c3704c3efd08f9fbf1324433a94fc4a8dbb8
2012-03-23 17:59:56 -07:00
Jeff Walden
6acfc155bf Bug 736591 - Check for exceeding the operation limit when iteratively matching a global regexp against a string. r=luke
--HG--
extra : rebase_source : 2a24b4a15909cfd2c04347b60131175fe77e83fe
2012-03-27 12:13:13 -07: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
Jared Wein
a80b6db592 Backed out changeset 8e42ba558f07 (bug 730318) CLOSED TREE 2012-03-27 15:23:53 -07:00
Bill McCloskey
ee49c9a7eb Bug 739694 - Fix script filename saving in exception traces (r=luke) 2012-03-27 14:41:50 -07: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
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
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
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
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