Bill McCloskey
1ca53de65f
Bug 751454 - Use automarker for XPCNativeScriptableInfo (r=bholley)
2012-05-08 11:11:09 -07:00
Jon Buckley
f4f2e1efb0
Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob
2012-05-08 13:29:31 -04:00
Ed Morley
8a8e40fff3
Backout ba7cf6fd10ae (bug 728017) for failing to compile
2012-05-08 18:50:45 +01:00
Jon Buckley
56d33b746c
Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob
2012-05-08 13:29:31 -04:00
David Anderson
af925c357c
Enable IonMonkey in the browser, and introduce an about:config option to pref it off (bug 745390, r=dmandelin).
2012-04-19 15:02:47 -07:00
Doug Turner
9eaa2d7486
Bug 738465 - implement device light sensor. r=smaug
2012-05-02 09:43:45 -07:00
Doug Turner
f158836867
Bug 738131 - implement device proximity. r=smaug
...
* * *
Bug 738131 - implement device proximity. gonk implementation. r=mwu
2012-05-02 09:43:45 -07:00
David Anderson
33cb582413
Merge from mozilla-central.
...
--HG--
rename : accessible/src/base/nsFormControlAccessible.cpp => accessible/src/generic/FormControlAccessible.cpp
rename : accessible/src/base/nsFormControlAccessible.h => accessible/src/generic/FormControlAccessible.h
rename : accessible/src/html/nsHTMLFormControlAccessible.cpp => accessible/src/html/HTMLFormControlAccessible.cpp
rename : accessible/src/html/nsHTMLFormControlAccessible.h => accessible/src/html/HTMLFormControlAccessible.h
rename : accessible/src/xul/nsXULFormControlAccessible.cpp => accessible/src/xul/XULFormControlAccessible.cpp
rename : accessible/src/xul/nsXULFormControlAccessible.h => accessible/src/xul/XULFormControlAccessible.h
2012-04-18 10:23:31 -07:00
Olli Pettay
2547761e2e
Bug 731875 - Geolocation doorhanger might cause a zombie compartment, GeoPositionOptions part, r=dougt
2012-04-16 22:08:48 +03:00
Andrew Paprocki
e565d0e693
Bug 736792 - Add JSOPTION_STRICT_MODE for embedders to force ES5 strict mode for all code without requiring "use strict" annotations. r=njn
2012-05-05 15:26:16 -04:00
Bobby Holley
45e0c007a8
Bug 749173 - Remove AutoPreserveCompartment. r=luke
2012-05-06 13:09:49 +02:00
Ms2ger
9a5ae693e0
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Ms2ger
b11a242059
Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal
2012-05-05 11:00:04 +02:00
David Anderson
949a078989
Merge from mozilla-central.
...
--HG--
rename : accessible/src/base/nsARIAGridAccessible.cpp => accessible/src/generic/ARIAGridAccessible.cpp
rename : accessible/src/base/nsARIAGridAccessible.h => accessible/src/generic/ARIAGridAccessible.h
2012-04-11 14:37:59 -07:00
David Anderson
65bde0a504
Merge from mozilla-central.
2012-04-09 16:18:35 -07:00
Matt Brubeck
4ee87a2a2f
Merge last green changeset from inbound to mozilla-central
2012-04-09 10:05:48 -07:00
Justin Lebar
fcfe8663d1
Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn
2012-04-16 12:20:54 +10:00
Justin Lebar
3224a73351
Back out changeset 21f34fdd64a3 (bug 741378) because it breaks telemetry. r=me
2012-04-16 11:34:00 +10:00
Justin Lebar
53370f1873
Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn
2012-04-16 11:17:26 +10:00
Bobby Holley
e5b3f77326
Bug 745483 - Don't assert that TI is enabled when the pref is disabled. r=jdm
2012-04-15 17:54:03 -07:00
Bobby Holley
57c411f141
Bug 743843 - Introduce the options object for Components.Exception. r=Ms2ger,sr=mrbkap
2012-04-15 17:51:37 -07:00
Bobby Holley
81d2fb5c67
Bug 743843 - Ditch the confusing switch-based parsing and add some comments. r=Ms2ger
2012-04-15 17:51:36 -07:00
Bobby Holley
962fe6a512
Bug 743843 - Factor individual argument parsers into helper methods. r=Ms2ger
2012-04-15 17:51:36 -07:00
Bobby Holley
b94bf966aa
Bug 743843 - Factor out Exception argument parsing into a helper class. r=Ms2ger
...
For ease of reviewing, note that there are only 2 changes to the big switch statement:
1 - return ThrowAndFail(...) -> return false.
2 - eMsgBytes -> messageBytes
2012-04-15 17:51:36 -07:00
Ms2ger
35284f64bb
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
cd73c4ce46
Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley
2012-04-14 15:05:19 +02:00
Ms2ger
cdc1f73263
Bug 741347 - Remove nsIXPConnect::DefineDOMQuickStubs, call DOM_DefineQuickStubs directly instead; r=bholley
2012-04-14 15:05:17 +02:00
Ms2ger
b8ae2456b2
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
ff2abebdbd
Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal
2012-04-14 15:10:05 +02:00
Ms2ger
949f55309d
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
f8dc9d4d20
Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley
2012-04-14 15:05:19 +02:00
Ms2ger
bd900a0e7f
Bug 741347 - Remove nsIXPConnect::DefineDOMQuickStubs, call DOM_DefineQuickStubs directly instead; r=bholley
2012-04-14 15:05:17 +02:00
Ms2ger
9f95d23e65
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
David Anderson
b02bdc8019
Merge from mozilla-central.
...
--HG--
rename : accessible/src/base/nsOuterDocAccessible.cpp => accessible/src/generic/OuterDocAccessible.cpp
rename : accessible/src/base/nsOuterDocAccessible.h => accessible/src/generic/OuterDocAccessible.h
rename : accessible/tests/mochitest/test_nsOuterDocAccessible.html => accessible/tests/mochitest/test_OuterDocAccessible.html
2012-04-06 16:38:53 -07:00
David Zbarsky
cd3c58ee76
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Bill McCloskey
0dd01290a1
Bug 758034 - Clean up browser GC API (r=smaug)
2012-06-30 14:16:32 -07:00
Masatoshi Kimura
b320c84c6a
Bug 769119 - Treat null or undefined as an empty dictionary; r=sicking
2012-06-30 16:03:27 +02:00
Mark Banner
44847aaf72
Bug 766269 - Thunderbird Permanent orange: TEST_UNEXPECTED_FAIL | test_0030_general.js. Correctly handle MOZ_APP_BASENAME and MOZ_APP_VENDOR being unset when determining the update location for unit tests on Windows. r=ehsan, test-only
2012-06-29 07:24:33 +01:00
Bobby Holley
70050366ad
Bug 754202 - Remove NoWaiverWrapper. r=mrbkap
...
No more principal pushing!
2012-06-28 23:47:55 +02:00
Bobby Holley
fb16bc5a98
Bug 754202 - Remove context pushing/popping API. r=mrbkap Each one of these uses grabs the principal off of an object for pushing, but also enters the compartment of that object. So we shouldn't need this anymore.
...
Can I get a 'hell yeah'?
2012-06-28 23:47:55 +02:00
Blake Kaplan
99bfdd86fe
Bug 769265 - Fix these calls. r=bent
2012-06-28 16:14:11 +02:00
David Anderson
bebb7bdc7b
Merge from mozilla-central.
2012-04-03 17:54:29 -07:00
Justin Lebar
e71332b560
Bug 738624 - Add ghost windows to about:compartments. r=njn
...
--HG--
extra : rebase_source : c16cdfc4c06b363f54f1d0f37bb006cf977b079a
2012-04-02 22:28:05 -04:00
Mark Capella
47e4a1599d
Bug 723530 - double error reporting in ctype JS api implementation, r=bholley
2012-04-27 12:47:00 +02:00
Gabor Krizsanits
f65e785137
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-28 09:12:28 -04:00
Gabor Krizsanits
9d24c0533d
Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley
2012-04-28 09:12:27 -04:00
Gabor Krizsanits
23bb9a03fc
Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley
2012-04-28 09:12:27 -04:00
Eddy Bruel
5736dd244e
Bug 703537: Removing the fix trap r=jorendorff@mozilla.com
2012-04-27 17:09:32 -04:00
Peter Van der Beken
5b0b0cd364
Fix for bug 723465 (Make finalize for DOM list bindings use XPConnect).
...
--HG--
extra : rebase_source : e4df7d98765aaa2c600044d69f8714568f1d6109
2012-04-27 10:15:40 +02:00
Peter Van der Beken
1780bb4050
Fix for bug 741267 (UserScript's XMLHttpRequest is undefined in 20120401 nightly).
...
Pass two objects when creating a DOM interface object, the global used to cache
the DOM interface objects and a receiver object on which the named property is
that points to the DOM interface object.
--HG--
extra : rebase_source : b462393e7376fdb68f3b279ccd08b3ab25ac154a
2012-04-23 16:10:56 +02:00
Gijs Kruitbosch
bdf19a4af3
Bug 539095 - Expose high-res timers to web content (performance.now()). r=bz, sr=smaug
...
--HG--
extra : transplant_source : o%9F%061%D4%B5%7D%5C%FB%95%5D%16%27%DEKU%EC%21%3AR
2012-04-27 09:22:06 +02:00
Bill McCloskey
714dde6b82
Bug 742570 - Change API for compartment GCs (r=igor)
2012-04-03 12:23:11 -07:00
Bill McCloskey
210b823250
Bug 742570 - Remove the compartment option for gczeal (r=igor)
2012-04-03 11:41:56 -07:00
Gabor Krizsanits
74922f0040
Bug 733035 - postMessage support for sandboxes. r=khuey
2012-04-05 18:33:20 -04:00
Terrence Cole
fe3125c03a
Bug 741005 - Remove XPCNativeWrapperMap; r=bholley
...
This appears to be completely unused.
2012-03-30 15:56:35 -07:00
Matt Brubeck
678b0cfe89
Back out bug 738011, bug 738624, and bug 737857 because of WinXP debug reftest log errors
...
--HG--
extra : rebase_source : 965c755f6416e2ca102b38633fe7a2c7267e956e
2012-04-02 12:44:31 -07:00
Andrew McCreight
c3b5a510a8
Bug 744272. disable test_watchpoints due to bogus failures. rs=billm
2012-04-10 18:43:22 -07:00
Landry Breuil
a7b3472b9e
bug 736961 - use the same cachedir for all idl-parser calls, fixes builds without objdir - r=khuey
2012-05-11 11:17:00 -07:00
Ed Morley
4c4c3cfd18
Backout 9b0fcaacb788 & bf3fef257e68 (bug 752226) for mochitest-other orange
2012-05-11 18:25:52 +01:00
Tom Schuster
6e0861373a
Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger
...
--HG--
extra : rebase_source : edf2077f8b8bad1970eab6ebe9996e761d4e596c
2012-05-11 17:46:26 +02:00
Igor Bukanov
d3018bc6d8
Bug 737364 - part 2 - replace JSContext with JSRuntime in the GC-related API
...
This part replaces the JSContext *cx argument in most GC-related API
with JSRuntime *rt. When possible, the patch removes the code to obtain
a temporary cx just to run the GC.
The patch also removes JS_DestroyContextMaybeGC. That function is not
used in FF code base and its implementation is broken. It requires that
the context has an entered compartment when it is destroyed, which in
turns implies a missing leave compartment call.
2012-03-28 12:13:30 +02:00
Bobby Holley
afd0a6ab09
Bug 747749 - Remove call to JS_SetGlobalObject in mozJSComponentLoader. r=luke
2012-04-26 20:40:11 +02:00
Nicholas Nethercote
c33177f72e
Bug 744311 (part 1) - Preliminary whitespace and code order changes. r=jlebar.
...
--HG--
extra : rebase_source : f700733d8aa1aed1ae1f9206b4ee9063f9a03341
2012-04-09 22:52:33 -07:00
Boris Zbarsky
705298151f
Bug 747815. Use const strings for arguments in DOM bindings. r=peterv
2012-04-26 00:42:03 -04:00
Ryan VanderMeulen
3f70ab0134
Backout a0b3af4ac9f5 (bug 735280) due to Android jsreftest orange.
2012-04-25 21:59:36 -04:00
Gabor Krizsanits
8f2218a116
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-25 20:12:33 -04:00
Gabor Krizsanits
8be449330e
Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley
2012-04-25 20:12:33 -04:00
Gabor Krizsanits
bf2e6d5a8a
Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley
2012-04-25 20:12:33 -04:00
Kyle Huey
c06dcdfb58
Fix Bug 743376. r=bz
2012-04-06 17:44:50 -07:00
Takanori MATSUURA
ad43cf956c
Bug 737006 - Use internal ply only if needed. r=khuey
2012-04-06 14:06:52 -04:00
Justin Lebar
8bae8c2aa9
Bug 748440 - Part 1: Add heap-committed-unused and heap-committed-unused-ratio memory reporters, and rename some JS memory reporters to match. Also add back the js-gc-heap memory reporter. r=njn
...
--HG--
rename : browser/components/privatebrowsing/test/unit/test_privatebrowsing_telemetry.js => browser/components/privatebrowsing/test/unit/test_privatebrowsing_autostart.js
rename : browser/components/privatebrowsing/test/unit/test_privatebrowsingwrapper_telemetry.js => browser/components/privatebrowsing/test/unit/test_privatebrowsingwrapper_autostart.js
rename : security/manager/ssl/src/TransportSecurityInfo.cpp => security/manager/ssl/src/nsNSSIOLayer.cpp
rename : security/manager/ssl/src/TransportSecurityInfo.h => security/manager/ssl/src/nsNSSIOLayer.h
extra : rebase_source : 237a72f9b82f0e39dd0f15afa6056f231dc58358
2012-04-30 14:27:15 -04:00
Kyle Huey
87f0bc8fd4
Bug 750253: Reorder generation of quickstubs header/cpp to avoid unnecessary rebuilds. r=ted
2012-04-30 12:30:00 -04:00
Matt Brubeck
8771612c40
Merge mozilla-central to mozilla-inbound
2012-04-02 11:03:29 -07:00
Kyle Huey
69f68d7938
Bug 722671: Components.utils.getWeakReference should get a reference to the underlying native object if possible. r=mrbkap
2012-04-01 19:21:13 -07:00
Ed Morley
651aa424a1
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-03-31 22:41:59 +01:00
Olli Pettay
f198500ad9
Bug 641821, MutationObserver, r=sicking
...
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Peter Van der Beken
09128a75d3
Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug.
...
--HG--
rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
2012-03-30 21:42:20 -07:00
Terrence Cole
315c82925b
Bug 738868 - Switch JSObject2JSObjectMap to new HashTable; r=mrbkap
2012-03-27 09:55:55 -07:00
Peter Van der Beken
8944dee246
Fix for bug 740064 (Refactor XrayWrapper). r=bholley.
...
--HG--
extra : rebase_source : 60559d74b10761a794d83a0a63dc60a92b2d48eb
2012-03-27 16:31:37 -07:00
Doug Turner
71e90e76a3
Bug 739760 - doubles and floats can't be used in dictionaries. r=khuey
2012-03-29 00:05:44 -07:00
Luke Wagner
ad32da72b6
Bug 733793 - Check for null return from JS_ObjectToOuterObject (r=bholley)
...
--HG--
extra : rebase_source : 2b7fbb3a72f641785de7f7707e9b6e8013b4eb6d
2012-03-28 16:15:38 -07:00
Andrew McCreight
d986e69874
Bug 738700 - unmark wrapped gray objects from nsISupports. r=smaug
2012-03-28 21:51:46 -07:00
Andrew McCreight
241631d5df
Bug 712735 - Don't add JS holders with no gray children as XPConnect roots. r=smaug
2012-03-28 21:23:01 -07:00
Jared Wein
642a4f48c0
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
Jared Wein
e34baf2131
Backed out changeset 8e42ba558f07 (bug 730318) CLOSED TREE
2012-03-27 15:23:53 -07:00
Kyle Huey
902e133eab
Refix bug 741248 harder. r=me
2012-04-09 17:41:22 -07:00
Ed Morley
976e703db3
Backout 1c5a8d617bff (bug 765990), 617cb36ead59, b3067d05a76a (bug 760995), 79f9a61a1e43 (bug 426163) for bustage
2012-06-21 10:00:36 +01:00
Jeff Walden
1c82d6223a
Bug 765990 - Never use Rooted<T> as a temporary, so that the Rooted->Handle conversion path occurs in only one manner, not two (ambiguous) manners. r=luke
2012-06-14 19:13:27 -07:00
Bobby Holley
199645d62c
Bug 732870 - Have nsDOMStringMapSH::PreCreate use the element as its parent, rather than the window. r=peterv
2012-06-21 10:02:36 +02:00
Bobby Holley
6ca66fb5a5
Bug 753162 - Don't assume that we end up in the same compartment as we started in CrossCompartmentWrapper. r=mrbkap
2012-06-21 09:53:49 +02:00
Steve Fink
68da1345a6
Bug 730208 - UnmarkGray fixups for globals and contexts. r=billm
...
A common source of potential black -> gray edges is JSAPI calls made on objects with gray globals or contexts holding gray globals. (The call could potentially update a black object with a pointer to that global.) This patch mostly traps places where contexts are used, and unmarks their globals. It also includes some more global unmarking.
--HG--
extra : rebase_source : 835c1d6b4a7f7a11571412075ae8847475079edd
2012-03-14 09:32:58 -07:00
Steve Fink
9f33681083
Bug 730208 - XPConnect changes to UnmarkGray some more objects and return them for convenience. r=mccr8
...
--HG--
extra : rebase_source : ddbfd05ec43868d39c26b1c37cac7e81522df29f
2012-03-20 21:22:40 -07:00
Johnny Stenback
1541a5dfed
First part of bug 749392. Stop exposing 'clear' in our shells in preparation of removing the underlying JS_ClearScope() API. r=jwalden
2012-05-03 15:52:45 -07:00
Andrew McCreight
61de8b7612
Bug 744103, part 4 - Remove nsCycleCollectionLanguageRuntime. r=smaug
2012-05-03 12:28:11 -07:00
Andrew McCreight
e9753b7090
Bug 744103, part 3 - Change NoteRoot to NoteJSRoot and NoteNativeRoot. r=smaug
2012-05-03 12:28:11 -07:00
Andrew McCreight
38b851ba07
Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug
2012-05-03 12:28:10 -07:00
Peter Van der Beken
926ed983fc
Fix for bug 744772 (Trace the DOM interface object array). r=bz.
...
--HG--
extra : rebase_source : c9f27bed0eab0e6db03295050176ef986cf0b59b
2012-05-02 14:49:43 +02:00
Marco Castelluccio
deee01a74c
Bug 751280 - Remove 2-arg form of xpc_FastGetCachedWrapper. r=bholley
2012-05-03 06:22:58 -04:00
David Anderson
36cbca6efd
Merge from mozilla-central.
2012-03-30 18:40:08 -07:00
David Anderson
ac211dfe32
Merge from mozilla-central (yay method barrier removal).
2012-03-28 13:46:36 -07:00
David Anderson
b654488bda
Merge from mozilla-central.
2012-03-27 12:48:33 -07:00
David Anderson
dccded1603
Merge from mozilla-central.
...
--HG--
rename : dom/system/nsDeviceMotion.cpp => dom/system/nsDeviceSensors.cpp
rename : dom/system/nsDeviceMotion.h => dom/system/nsDeviceSensors.h
2012-03-26 14:17:28 -07:00
Bobby Holley
e3ef16972d
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
6736ffe11b
Bug 716333 - get rid of WithConversion (xpconnect part). r=bholley
2012-03-26 14:12:15 +09:00
Gregor Wagner
746c6fda8d
Bug 678695 - Settings API. r=sicking, fabrice, smaug
2012-03-26 14:49:38 -07:00
David Anderson
102693736e
Merge from mozilla-central.
2012-03-22 11:45:01 -07:00
David Anderson
41df49806f
Merge from mozilla-central.
...
--HG--
rename : toolkit/components/places/tests/unit/test_favicons.js => toolkit/components/places/tests/favicons/test_favicons.js
2012-03-20 14:43:39 -07:00
David Anderson
988a7e7cca
Merge from mozilla-central.
...
--HG--
rename : js/src/jsfun.cpp => js/src/vm/ArgumentsObject.cpp
2012-03-19 14:13:34 -07:00
David Anderson
950ea396cf
Merge from mozilla-central.
2012-03-15 17:21:05 -07:00
David Anderson
ab6d9d70dd
Merge from mozilla-central.
2012-03-13 16:10:05 -07:00
Kyle Huey
4342ab2ff7
No bug: Fix ply being stupid, take 2. r=me
2012-03-13 10:31:53 -07:00
David Anderson
a0b4d7ed85
Merge from mozilla-central.
...
--HG--
rename : accessible/src/base/nsTextAttrs.cpp => accessible/src/base/TextAttrs.cpp
rename : accessible/src/base/nsTextAttrs.h => accessible/src/base/TextAttrs.h
2012-03-12 12:27:40 -07:00
Ms2ger
05ab4b800a
Bug 733872 - Use JS_GetObjectPrototype in XPCWrappedNativeScope::SetGlobal; r=bholley
2012-03-11 09:43:22 +01:00
Andrew McCreight
742f5949dc
Bug 708825 - set mIdentity to null if compartment enter fails. r=bholley
2012-03-09 18:41:13 -08:00
dev
92dd78a294
Bug 755631 - Remove extraneous exceptions in Cross Origin Wrappers. r=mrbkap
2012-05-26 09:33:52 -04:00
Bill McCloskey
5563e443bb
Bug 758471 - Don't sweep native interfaces during compartment GC (r=bholley)
2012-05-25 11:06:13 -07:00
Bobby Holley
0639533b11
Bug 758563 - Warn when __exposedProps__ is missing. r=bz
2012-05-25 18:42:40 +02:00
Ms2ger
2d6f04146c
Merge m-c to m-i.
2012-05-25 11:15:32 +02:00
Ms2ger
1cdc6e0bb4
Bug 747434 - Part 3: Remove unused variable 'startingObj' from XPCWrappedNativeScope::FindInJSObjectScope; r=gabor
2012-05-25 09:18:31 +02:00
Ms2ger
74b4797fd1
Bug 758143 - Add xpc::GetCompartmentPrivate; r=bholley
2012-05-25 09:18:31 +02:00
Brian Hackett
f096dea33e
Rename RootedVar to Rooted, bug 756823. r=billm
2012-05-24 16:05:18 -07:00
David Anderson
f20e14b269
Merge from mozilla-central.
2012-03-09 13:37:58 -08:00
Igor Bukanov
f0bddf0e88
bug 728250 - remove JSPrincipals::codebase. r=:luke,:bz
...
In just 2 cases where JSPrincipals::codebase is used it can be reconstructed from the values stored in the associated nsJSPrincipal. In addition the patch makes nsJSprincipals to inherit both from nsIPrincipal and JSPrincipals allowing to use static_cast to convert between nsIPrincipal and JSPrincipals pointers and to drop many cases of manual JSPrincipal reference counting.
2012-03-09 10:48:50 +01:00
Nicholas Nethercote
d539e72dcc
Bug 732843 - Handle Callback() failures in memory multi-reporters. r=jlebar.
...
--HG--
extra : rebase_source : 54af85a1ef839922d5443cdc36f601611258944a
2012-03-04 15:26:30 -08:00
David Anderson
2d8a2de603
Merge from mozilla-central.
2012-03-06 14:08:51 -08:00
David Anderson
86c356fa7a
Merge from mozilla-central.
...
--HG--
rename : intl/locale/public/nsICharsetAlias.h => intl/locale/public/nsCharsetAlias.h
rename : intl/locale/src/nsCharsetAliasImp.cpp => intl/locale/src/nsCharsetAlias.cpp
2012-03-05 17:50:51 -08:00
David Anderson
bf5935099a
Merge from mozilla-central.
2012-03-02 12:10:27 -08:00
David Anderson
d6d4c65b18
Merge from mozilla-central.
...
--HG--
rename : browser/base/content/syncAddDevice.js => browser/base/content/sync/addDevice.js
rename : browser/base/content/syncAddDevice.xul => browser/base/content/sync/addDevice.xul
rename : browser/base/content/syncNotification.xml => browser/base/content/sync/notification.xml
rename : browser/base/content/syncSetup.js => browser/base/content/sync/setup.js
rename : browser/base/content/syncSetup.xul => browser/base/content/sync/setup.xul
2012-03-01 13:45:48 -08:00
David Anderson
3ce895b5b5
Merge from mozilla-central.
...
--HG--
rename : toolkit/components/feeds/nsScriptableUnescapeHTML.cpp => parser/html/nsParserUtils.cpp
2012-02-28 12:21:56 -08:00
Bill McCloskey
69c7d77f6b
Bug 715761 - Followup fix for xpconnect tracing (r=bholley)
2012-06-27 13:45:52 -07:00
Andrew McCreight
a6de5e039d
Bug 754495, part 4 - Define CompartmentParticipant. r=smaug,billm
2012-06-27 08:09:50 -07:00
Andrew McCreight
0712620ffd
Bug 754495, part 3 - Add shim for NoteJSChild to allow it to be reused. r=smaug
2012-06-27 08:09:45 -07:00
Andrew McCreight
d2a2edb057
Bug 754495, part 2 - Add flag to control JS traversal behavior. r=smaug
2012-06-27 08:09:35 -07:00
Peter Van der Beken
f52cfd0a51
Fix for bug 768669 (Move remaining DOM list proxy bindings from behind the pref). r=bz.
...
--HG--
extra : rebase_source : 738cd6df3aa353b682f931beaabde74de8c1a2bd
2012-06-22 12:34:26 +02:00
David Anderson
8057bd52d0
Merge from mozilla-central.
2012-02-27 12:40:46 -08:00
Phil Ringnalda
93fdd4cb81
Back out a7255af10a2a and da193f5b526b (bug 729403) for xpcshell assertions in test_TelemetryPing.js
2012-02-26 18:39:06 -08:00
David Anderson
dc4739ad7a
Merge from mozilla-central.
2012-02-24 13:26:30 -08:00
Hessam Salehi
7d69570885
Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg
2012-03-21 14:07:31 -04:00
Boris Zbarsky
176566d5d3
Merge backout of changeset f96e0f078b49 (bug 748266)
2012-05-31 16:21:05 -04:00
Boris Zbarsky
19d2fed0a9
Backed out changeset f96e0f078b49 (bug 748266) because the test suite is bogus and we're failing a crashtest too.
2012-05-31 16:20:49 -04:00
David Zbarsky
f19b65b484
Bug 759504: return NULL instead of false for getPrototype r=peterv
2012-05-31 11:47:22 -07:00
Boris Zbarsky
1dbd12b802
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Bobby Holley
717cddc4c1
Bug 760076 - Make |construct| use Wrapper::CALL. r=mrbkap
2012-05-31 18:36:15 +02:00
Bobby Holley
8a078b54cb
Bug 760070 - Make the __exposedProps__ warning appear as an error. r=bz
2012-05-31 16:28:09 +02:00
David Anderson
1fcc6211a4
Merge from mozilla-central.
2012-02-22 19:25:06 -08:00
Kyle Huey
392a921f2a
Bug 728429: Require ASLR for binary components on Windows. r=bsmedberg,ehsan
2012-02-22 15:05:28 -08:00
Nicholas Nethercote
252040f7c7
Bug 729403 (part 2) - Add js/runtime/gc-marker memory reporter. r=wmccloskey.
...
--HG--
extra : rebase_source : 9f078515b971e3de4156bb3edd3f8aea74c9fa8f
2012-02-21 21:43:45 -08:00
Nicholas Nethercote
3032e2d28c
Bug 730182 - Show location for "[System Principal]" compartments in about:compartments. r=bholley.
...
--HG--
extra : rebase_source : 084b36938e00058503fba426aeb42ca5cd85698d
2012-02-26 13:23:32 -08:00
Marco Bonardo
80af6e193a
Merge last green PGO from inbound to central
2012-03-13 11:17:21 +01:00
Masatoshi Kimura
d1e291fd89
Bug 721569 - Implement Blob constructor. r=sicking
2012-03-12 21:44:56 -07:00
Masatoshi Kimura
c76813f196
Bug 721569 - Implement nullable types. r=khuey
2012-03-12 21:44:51 -07:00
Masatoshi Kimura
9105b69daf
Bug 721569 - Support default values for Web IDL dictionaries. r=khuey CLOBBER BUILD
2012-03-12 21:44:48 -07:00
David Anderson
1abb45b0aa
Merge from mozilla-central.
2012-02-21 15:08:22 -08:00
Justin Lebar
007d8115b5
Bug 738624 - Add ghost windows to about:compartments. r=njn
...
--HG--
extra : rebase_source : a486e644351af72a4276f26de2e4588ee851426f
2012-04-02 10:37:04 -04:00
Ed Morley
3d389274ff
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-02-21 11:59:33 +00:00
Ms2ger
a36f995d71
Bug 726964 - Remove unused sDOMStringFinalizerIndex; r=bholley
2012-02-21 10:34:02 +01:00
Ms2ger
fd060cc935
Bug 726960 - Introduce xpc::NonVoidStringToJsval; r=bholley
2012-02-21 10:34:02 +01:00
Bobby Holley
138146697b
Bug 720580 - Assert that we have the global jsclass flag if and only if we're a global. r=mrbkap
2012-03-05 15:22:53 -08:00
Bobby Holley
d3345b4254
Bug 720580 - Assert against creating globals in xpc_NewSystemInheritingJSObject. r=mrbkap
...
With this patch, the only call to JS_NewGlobalObject in XPConnect happens in xpc_CreateGlobalObject. \o/
2012-03-05 15:22:45 -08:00
Bobby Holley
73485885f8
Bug 720580 - Do the last bit of wrapped global initialization once the dust has settled. r=mrbkap
2012-03-05 15:22:45 -08:00
Bobby Holley
e0a6e0b68d
Bug 720580 - Kill temporary globals. r=mrbkap
...
This patch breaks the "every commit is a 100% correct tree" invariant a little bit, because constructors and prototypes for DOM globals are broken (PostCreatePrototype never gets called). This is fixed in the next patch. Doing it this way makes for a cleaner series of commits, and the browser still builds and runs fine.
2012-03-05 15:22:45 -08:00
Bobby Holley
06eb6e6126
Bug 720580 - Introduce XPCWrappedNative::WrapNewGlobal. r=mrbkap
2012-03-05 15:22:45 -08:00
Bobby Holley
df8c12c18b
Bug 720580 - Call TraceDOMPrototypes via TraceXPCGlobal, and avoid the verification process for wrapped natives. r=mrbkap
2012-03-05 15:22:45 -08:00
Bobby Holley
8fbe582aea
Bug 720580 - Make the call to PostCreatePrototype optional. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
ea2172967e
Bug 720580 - Factor out the call to PostCreatePrototype into a helper method. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
9afaa4890f
Bug 720580 - Accept an explicit native global during XPCWrappedNativeScope creation. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
8a333a7b50
Bug 720580 - Manually resolve |Object| on the global in XPCWrappedNativeScope::SetGlobal() to avoid calling into the XPConnect resolve hook too early. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
90f6c6474a
Bug 720580 - Make JSID class initialization happen on demand. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
9c4024ecaa
Bug 720580 - Modify the semantics of XPCWrappedNative::FinishCreate() so that it doesn't muck around with the refcounts of its inparam. r=mrbkap
...
The current semantics involve the caller transfering ownership of the input wrapper to FinishCreate(), which is complicated and error-prone. Now that we're using nsRefPtr at the callsites, we can get rid of it.
2012-03-05 15:22:44 -08:00
Bobby Holley
c1e81348b9
Bug 720580 - Use nsRefPtr instead of manual AddRef/Release in XPCWrappedNative::{GetNewOrUsed,Morph}. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
7f6929b9ff
Bug 720580 - Move the AutoMarkingWrappedNativePtr in XPCWrappedNative::{GetNewOrUsed,Morph} closer to where we need it. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
15d04a0773
Bug 720580 - Stop passing isGlobal everywhere and use the nsIXPCScriptable flags instead. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
d3868262e8
Bug 720580 - Stop passing aExtraPtr to InitClassesWithNewWrapedGlobal. r=mrbkap
...
We only ever pass null here anyway, and this whole infrastructure is going away real soon now.
2012-03-05 15:22:44 -08:00
Bobby Holley
1a5208e617
Bug 720580 - Remove unnecessary aIID parameter from nsIXPConnect::InitClassesWithNewWrappedGlobal. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
a7519fcb64
Bug 720580 - Introduce a flag for global natives and assert that we have it. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
b1d50a8c93
Bug 720580 - Indicate free bits in nsIXPCScriptable.idl. r=mrbkap
2012-03-05 15:22:43 -08:00
Igor Bukanov
77f4a42ed3
bug 737624 - memory-only encoding/decoding of scripts and functions. r=:luke
...
The patch shrinks the API presented in jsxdrapi.h down to 4 functions to
encode/decode scripts and interpreted functions to/from the memory. The
newly introduced implementation header vm/Xdr.h replaces the former
JSXDRState with the template class XDRState parametrized by the enum
type with two constants, XDR_ENCODE and XDR_DECODE. This way a compiler
can fully eliminate the former runtime checks for the decoding/encoding
mode. As a drawback this required to explicitly instantiate the xdr
implementation as I do not want to put all the xdr code to header files.
The memory-only XDR allows to avoid coping filename and to-be-atomized
chars to a temporary buffer as the code can just access the buffer
directly. Another change is that new XDRScript takes as a parameter its
parent script. This allowed to avoid keeping filename in XDRState and
simplify the filename management.
Another change is the removal of JS_HAS_HDR. As CloneScript uses XDR to
copy a script, JS_HAS_XDR cannot be disabled.
--HG--
rename : js/src/jsxdrapi.cpp => js/src/vm/Xdr.cpp
extra : rebase_source : f8f1536a86b7c3fe7296a16b6677bd21664af98a
2012-02-20 11:58:00 +01:00
Matt Brubeck
21e24f0ef9
Merge mozilla-central and mozilla-inbound
2012-03-24 09:05:27 -07:00
Masatoshi Kimura
749ec9839a
Bug 736686 - Part 1: Make dictionary initializers callable off main thread. r=khuey
2012-03-24 12:33:49 +01:00
Dão Gottwald
63ed9dae81
Backed out changeset 30798fdc5bad
2012-03-24 12:33:30 +01:00
Peter Van der Beken
4c5904d14e
Bug 738593 - Rename IsProxy to IsDOMBinding; r=mrbkap
2012-03-16 16:44:09 +01:00
Ms2ger
1b0103ba21
Bug 736619 - remove the unused struct ClearedGlobalObject from XPCJSRuntime; r=bholley
2012-03-24 09:18:22 +01:00
Jared Wein
4920fd9f8d
Backed out changeset 5f79a3dd45ff (bug 730318) r=bustage
2012-03-23 11:46:12 -07:00
Jared Wein
589f9135f9
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
Igor Bukanov
24b01abf6b
bug 737624 - memory-only encoding/decoding of scripts and functions. r=:luke
...
The patch shrinks the API presented in jsxdrapi.h down to 4 functions to
encode/decode scripts and interpreted functions to/from the memory. The
newly introduced implementation header vm/Xdr.h replaces the former
JSXDRState with the template class XDRState parametrized by the enum
type with two constants, XDR_ENCODE and XDR_DECODE. This way a compiler
can fully eliminate the former runtime checks for the decoding/encoding
mode. As a drawback this required to explicitly instantiate the xdr
implementation as I do not want to put all the xdr code to header files.
The memory-only XDR allows to avoid coping filename and to-be-atomized
chars to a temporary buffer as the code can just access the buffer
directly. Another change is that new XDRScript takes as a parameter its
parent script. This allowed to avoid keeping filename in XDRState and
simplify the filename management.
Another change is the removal of JS_HAS_HDR. As CloneScript uses XDR to
copy a script, JS_HAS_XDR cannot be disabled.
--HG--
rename : js/src/jsxdrapi.cpp => js/src/vm/Xdr.cpp
2012-02-20 11:58:00 +01:00
Ms2ger
198867ded9
Backed out changeset f33e1e959036; r=bustage
2012-03-24 11:04:34 +01:00
Igor Bukanov
7226b2e716
bug 737624 - memory-only encoding/decoding of scripts and functions. r=:luke
...
The patch shrinks the API presented in jsxdrapi.h down to 4 functions to
encode/decode scripts and interpreted functions to/from the memory. The
newly introduced implementation header vm/Xdr.h replaces the former
JSXDRState with the template class XDRState parametrized by the enum
type with two constants, XDR_ENCODE and XDR_DECODE. This way a compiler
can fully eliminate the former runtime checks for the decoding/encoding
mode. As a drawback this required to explicitly instantiate the xdr
implementation as I do not want to put all the xdr code to header files.
The memory-only XDR allows to avoid coping filename and to-be-atomized
chars to a temporary buffer as the code can just access the buffer
directly. Another change is that new XDRScript takes as a parameter its
parent script. This allowed to avoid keeping filename in XDRState and
simplify the filename management.
Another change is the removal of JS_HAS_HDR. As CloneScript uses XDR to
copy a script, JS_HAS_XDR cannot be disabled.
--HG--
rename : js/src/jsxdrapi.cpp => js/src/vm/Xdr.cpp
2012-02-20 11:58:00 +01:00
Bobby Holley
2672787670
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
9146523a9f
Bug 667388 - Introduce the PUNCTURE wrapper action. r=mrbkap
2012-03-23 14:59:27 -07:00
Bobby Holley
57296aa50b
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
041837d99f
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
011c97a205
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
a44b6d76ac
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
4d5b2ef225
Bug 733984 - Stop specializing createHolder, and simplify holder creation in WrapperFactory::Rewrap. r=mrbkap
2012-03-23 14:59:04 -07:00
Jared Wein
30d9fd445e
Backed out changeset 5f79a3dd45ff (bug 730318) r=bustage
2012-03-23 11:11:31 -07:00
Luke Wagner
68d492d13d
Bug 720753 - hoist JaegerCompartment and MathCache from JSCompartment into JSRuntime (r=bhackett,njn)
2012-05-03 09:12:47 +02:00
Luke Wagner
b1d0aeeace
Bug 650353 - Implement Compartment-Per-Global in XPConnect. r=mrbkap
2012-05-03 09:10:12 +02:00
Luke Wagner
8cef559f81
Bug 722775 - rm sameGroupAs. r=mrbkap
2012-05-03 09:10:10 +02:00
Ed Morley
e63b667897
Backout afeafc02c1de, dfae37833c9b & f9f51c726fa7 (bug 729940 parts 1-3) for talos regressions
2012-03-05 15:22:28 +00:00
Justin Lebar
5b3d13a72b
Bug 729940 - Part 2: Stop using crappy hash functions in the js engine. r=bhackett
2012-03-04 15:58:06 -05:00
Justin Lebar
2449f55f11
Back out bug 729940 (a108aee:d75775d) due to 32-bit red.
2012-03-04 14:20:34 -05:00
Justin Lebar
609b52cb35
Bug 729940 - Part 2: Stop using crappy hash functions in the js engine. r=bhackett
2012-03-04 13:49:41 -05:00
Nicholas Nethercote
9472d29e81
Bug 702300 (part 8) - Add about:compartments. r=jlebar, ehsan.
...
--HG--
extra : rebase_source : ad9de010f0b51d5ae7d74b8cbc04c8748767ec0b
2012-02-16 22:10:39 -08:00
Nicholas Nethercote
8c5fa06ee5
Bug 702300 (part 7) - Add the "compartments" multi-reporter. r=billm.
...
--HG--
extra : rebase_source : e45e59bd8657197dbd61c257f46ad6396cdda3c3
2012-02-16 22:10:39 -08:00
David Anderson
50e30ce43b
Merge from mozilla-central.
2012-02-17 14:20:51 -08:00
Phil Ringnalda
3fed55bffc
Back out b27980f1de54 and 39ea8d8f9768 (bug 728429) for potential Windows PGO build bustage on a CLOSED TREE
2012-02-21 20:01:01 -08:00
Kyle Huey
569fb43e63
Bug 728429: Require ASLR for binary components on Windows. r=bsmedberg,ehsan
2012-02-21 16:09:39 -08:00
Ed Morley
24ab851d62
Merge mozilla-central to mozilla-inbound
2012-02-21 14:15:58 +00:00
David Anderson
8b50c1ee36
Merge from mozilla-central.
2012-02-16 15:06:30 -08:00
Terrence Cole
3cf46f995b
Bug 726115 - Make the tracer callback take an indirect pointer; r=billm
...
This will be required for a tracer to move objects. This patch only
updates the tracer interface and users of the interface.
--HG--
extra : rebase_source : 844d819a80cf6cb1dba0d07ea97f647802c66d40
2012-02-15 16:28:41 -08:00
David Anderson
b3459c394f
Merge from mozilla-central.
2012-02-14 15:04:32 -08:00
Bobby Holley
b36c773a23
Bug 739796 - Make same-origin cross-compartment Location object access go through the LW in the host compartment. r=gal
...
--HG--
extra : rebase_source : d5e07d4628bfd5990d127b4316219a43c4e0de88
2012-04-05 12:21:12 -07:00
Bobby Holley
b1e579a168
Bug 739796 - Make js_TransplantObjectWithWrapper and GetSameCompartmentSecurityWrapper play nicely together. r=mrbkap
...
--HG--
extra : rebase_source : c132069987b4cae121dfcf1b19ffacaee845df1e
2012-04-05 12:21:12 -07:00
Bobby Holley
6192344bd1
Bug 739796 - Move same-compartment security wrapping into a method on XPCWrappedNative. r=gal
...
--HG--
extra : rebase_source : 48c61d699d27d390be2bcfb006f12264345f9d49
2012-04-05 12:21:12 -07:00
Igor Bukanov
aabce5f94f
Bug 737365 - stop using the cx during finalization, part 3.
...
This part removes the usage of JSContext* during the finalization and
when sweeping the compartments. That required to change quite a few
methods in type inference, jit and debugger implementation to take a
FreeOp rather than JSContext pointer. In turn that also often required
to replace cx->compartment usage with extracting the compartment from
the passed objects or pass the compartment explicitly. On the plus side
it allowed to remove fallible compartment enter code in methods that
could be called during finalization.
2012-03-20 11:22:05 +01:00
Igor Bukanov
3a859b7a76
Bug 737365 - stop using the cx during finalization, part 1.
...
This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
2012-03-19 15:34:55 +01:00
Jeff Walden
843adc24ef
Convert the last remaining direct JS_Assert users to MOZ_Assert, followup to bug 717540 that seems to have been missed in my initial review. Also switch the JS_ASSERT uses to MOZ_ASSERT in passing. r=trivial
...
--HG--
extra : rebase_source : 70746d934b529c3e28d83dc2aced690ba92044db
2012-02-14 16:16:14 -08:00
David Anderson
ae0aff09bc
Merge from mozilla-central.
2012-02-13 12:32:58 -08:00
Andrew McCreight
745479e48c
Bug 704623 - Track memory used by orphan DOM nodes. code=mccr8,njn. r=njn,mccr8.
...
--HG--
extra : rebase_source : f4a4b6e1b1de35a08e86130110a6fbd588093867
2012-04-20 14:01:33 +10:00
Luke Wagner
b844e5f326
Bug 772285 - rm JSPD_ARGUMENT/JSPD_VARIABLE (r=sfink)
...
--HG--
extra : rebase_source : 7be9ea3e5e90be9abd65f7d5268741e453cc717b
2012-07-10 15:34:12 -07:00
Igor Bukanov
5542df3342
bug 730221 - delegating serialization of script principals to the embedding. r=:luke,:bz
...
Currently to serialize principals stored in JSScript we have a rather complex
schema. First there is the transcode callback that the embedding must provide
to transcode principals using XDR API. Second we use rather complex glue code
to implement that callback in terms of writing/reading nsIObjectOutputStream/
nsIObjectInputStream. This glue code is duplicated in 3 places. All this can
be avoided if we simply delegate transcoding of principals to the caller. In
addition, at least in the case of the cached startup scripts we do not even
need to transcode the principals as the the cached scripts always have the
system principal so we can skip all the transcode complexity there.
The patch implemnts this idea. In particular, the code in JS engine
responsible for transcoding of principals is replaced by the single API
function JS_XDRSetPrincipals that the embedding can use to set principals for
decoded scripts and functions. Then the startup cache uses this to set the
principals for the decoded script to the system principals. The other two
places in nsJSContext::Serialize and XBL_SerializeFunction that need to
serialize principals together with a function or script now uses common
utilities in nsXPConnect so the serialization complexity resides in the single
place.
2012-02-13 14:10:04 +01:00
David Anderson
04b96a0616
Merge from mozilla-central.
2012-02-10 19:27:55 -08:00
Bill McCloskey
1029efe694
Bug 716067 - UnmarkGray more often (r=bent)
2012-02-10 18:32:13 -08:00
Olli Pettay
1c1078d993
Bug 725768 - BBP for ObjectHolders, r=mccr8
...
--HG--
extra : rebase_source : 31e088050144099582d035f758d716516885ebd3
2012-02-10 21:50:37 +02:00
Ed Morley
8d711e3c7b
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-02-10 12:14:39 +00:00
Bobby Holley
f0038cf892
Bug 714590 - Use the helper jsclass format everywhere. r=mrbkap
2012-02-16 12:22:16 -08:00
David Anderson
47563b2221
Remove JS_GetScriptedCaller (bug 732652, r=luke,mrbkap,bholley,smaug,bent).
2012-03-06 15:33:12 -08:00
Igor Bukanov
fc29d0f64c
bug 726944 - Remove JSClass::xdrObject and related functionality. r=luke
2012-02-13 09:02:21 +01:00
David Anderson
8969ebc14b
Merge from mozilla-central.
2012-02-08 19:13:56 -08:00
Nicholas Nethercote
afab5f33f9
Bug 729403 (part 2, take 2) - Add js/runtime/gc-marker memory reporter. r=wmccloskey.
...
--HG--
extra : rebase_source : c48aacddd186be0de3c74153f5e5e4049d09a87b
2012-02-26 20:20:15 -08:00
Ms2ger
74c383e999
No bug - Propagate false return value from xpc_qsThrowMethodFailedWithDetails; r=bz
2012-02-07 21:31:29 +01:00
Boris Zbarsky
3a47108ff7
Bug 753397. Add a field to nsCSSPropList for a preference that controls the property. r=dbaron
...
The actual controlling is not hooked up yet; that will happen in bug 753522 for
the DOM reflections of properties.
2012-05-09 21:29:37 -04:00
Brian Hackett
f8aa8c3c5a
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Andrew McCreight
ba6ec2091e
Bug 714725 - use deferred release in XPC_WN_Helper_Finalize. r=bholley
2012-05-19 13:56:29 -07:00
Brian Hackett
aeda1d5c01
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
54e8d378fb
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Blake Kaplan
3369596da6
Bug 756584 - Crashtest for bug 720305. r=dveditz
2012-05-19 11:32:46 -04:00
Rafael Ávila de Espíndola
899f483355
Bug 774120 - #ifdef fields only used in debug builds. r=terrence.
2012-07-16 16:39:31 -04:00
Ed Morley
c23835f558
Backout 29104ecddc3a (bug 769464) for crashtest assertions
2012-07-16 18:49:14 +01:00
Gabor Krizsanits
d5f97a1ca6
Bug 771081 - part3: Rename WaiveXrayWrapperWrapper. r=gal
2012-07-16 19:28:17 +02:00
Gabor Krizsanits
a9011adbd5
Bug 771081 - part2: Rename CrossOriginWrapper files. r=gal
...
--HG--
rename : js/xpconnect/wrappers/CrossOriginWrapper.cpp => js/xpconnect/wrappers/WaiveXrayWrapper.cpp
rename : js/xpconnect/wrappers/CrossOriginWrapper.h => js/xpconnect/wrappers/WaiveXrayWrapper.h
2012-07-16 19:22:51 +02:00
Gabor Krizsanits
c39841ecfc
Bug 771081 - part1: Rename CrossOriginWrapper. r=gal
2012-07-16 17:53:16 +02:00
Peter Van der Beken
f6f14ba82b
Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
...
--HG--
extra : rebase_source : 1bdf15c06e0e1e89a877a0f74300bf212de5b60e
2012-07-16 16:52:59 +02:00
Ryan VanderMeulen
a997433ec6
Merge m-c to inbound.
2012-07-14 08:48:58 -04:00
Olli Pettay
6e882d2abe
Bug 773803 - Remove nsIScriptObjectOwner, r=bz
...
--HG--
rename : dom/base/nsIScriptObjectOwner.h => dom/base/nsIScriptEventHandlerOwner.h
2012-07-14 01:23:59 +03:00
Bobby Holley
473b4a8aa9
Bug 763343 - Handle classinfo singletons in cross-compartment wrapping. r=peterv
2012-07-13 14:33:25 +02:00
Bobby Holley
f3dc2d0945
Bug 771202 - Add a PostTransplant nsIXPCScriptable hook. r=peterv
2012-07-13 10:55:14 +02:00
Boris Zbarsky
ab6fc58420
Bug 771429. Instead of using bound functions for the functions we get off the sandbox proto, use a function proxy. That allows property gets on the functions to get through. r=bholley
2012-07-13 19:29:13 -04:00
Jeff Walden
3252341ae4
Bug 725888 - Remove some js_GetClassPrototype calls, using faster methods on GlobalObject instead. Also introduce JS_GetObjectPrototype to retrieve Object.prototype so that a friend API can be made un-friendly. r=dmandelin
...
--HG--
extra : rebase_source : d68d7f1fdcc1bc9a1a027c08ea62bebd8e9d0178
2012-02-07 11:45:18 -08:00
Blake Kaplan
2c581e8da4
Bug 727884 - Make nsWrapperCache::WrapObject take a JSObject scope instead of XPCWrappedNativeScope. r=peterv
2012-03-14 16:25:40 +01:00