Philipp von Weitershausen
9d771da697
Bug 692677 - Relax same-origin XHR restrictions for privileged applications. r=sicking
...
--HG--
extra : rebase_source : 9e8e8cf2e03b6f3d148503d92630ee898bf835bb
2012-06-07 11:28:33 -07:00
Laurent Dulary
09cc80dcb7
Bug 657938 (1/2) - Implement the content part of the meter element. f=mounir r=smaug,mrbkap
2012-05-16 13:18:33 +02:00
Geoff Lankow
bdc2b4bb58
Merge m-c to m-i
2012-06-06 15:13:51 +12:00
Geoff Lankow
00f3a215c9
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
David Zbarsky
e0254c995e
Bug 591467 - Implement HTML5 Microdata API r=bz
2012-06-04 16:49:57 -07:00
Blake Kaplan
f14f44ff14
Bug 751858 - Actually throw when we deny access. r=bholley
2012-05-04 14:22:55 +02:00
Andrew McCreight
e1d63b6895
Bug 761249 - abort if ClassInfo2WrappedNativeProtoMap or Native2WrappedNativeMap fail. r=bholley
2012-06-05 11:47:49 -07:00
Bobby Holley
ddaccb089a
Bug 758415 - Tests. r=mrbkap
2012-06-05 19:07:38 +02:00
Bobby Holley
2a4d653d5f
Bug 758415 - Remove double-wrapping infrastructure for Location objects. r=mrbkap
...
This is more or less just a backout of bug 739796, that caused so much pain. Huzzah!
2012-06-05 19:07:37 +02:00
Bobby Holley
b52375725c
Bug 758415 - Rip out old expando architecture. r=mrbkap
2012-06-05 19:07:37 +02:00
Bobby Holley
b6893e41c6
Bug 758415 - Switch WN Xrays to use the new expando infrastructure. r=mrbkap
2012-06-05 19:07:37 +02:00
Bobby Holley
b59ab77e3d
Bug 758415 - Copy expando objects during object transplanting. r=mrbkap
2012-06-05 19:07:37 +02:00
Bobby Holley
9610f7f05a
Bug 758415 - Implement expando object infrastructure for WN Xrays. r=mrbkap
...
Note: This overloads the naming of some of the existing infrastructure,
but the signatures etc are sufficient to disambiguate. The other infrastructure
goes away in a subsequent patch.
Note: We tag sandbox expandos with their global to make sure that the expandos
are never shared between sandboxes. A consequence of this scheme is that an
expando from a sandbox to an object will _always_ result in a GC edge back to
the sandbox, meaning that the sandbox is always kept alive for the lifetime of
the expando target. This could happen before, but only if a non-primitive expando
was placed (since the value of the expando would live in the consumer's
compartment). We could avoid this edge by using a reference-counted Identity()
object instead, but I suspect it's not worth worrying about.
2012-06-05 19:07:37 +02:00
Bobby Holley
80690d47d6
Bug 758415 - Refactor slim wrapper reserved slots so that we can use the same slot for expando objects in the non-slim case. r=mrbkap
...
Xray wrappers require that their wrappee be non-slim, so this works out perfectly.
2012-06-05 19:07:37 +02:00
Bobby Holley
d0a6dee976
Bug 751995 - Handle orphaned wrappers. r=peterv
2012-06-04 10:13:18 +02:00
Jan Varga
6e3e5ab48b
Bug 726593 - Implement FileHandle. r=bent
2012-06-03 18:33:52 +02:00
Phil Ringnalda
a26e0375d1
Back out 19cfb43d77d3 (bug 751995) for Windows build bustage
2012-06-01 18:27:22 -07:00
Bobby Holley
e580a6cb4f
Bug 751995 - Handle orphaned wrappers. r=peterv
2012-06-02 00:24:22 +02:00
Boris Zbarsky
3f887fdbe1
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Peter Van der Beken
beae628a30
Bustage fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
...
--HG--
extra : rebase_source : 61cf7b76955aa08aa6509b77f0a85a35dd782a21
2012-06-01 18:35:09 +02:00
Boris Zbarsky
c1f71caa1a
Merge backout of changeset f96e0f078b49 (bug 748266)
2012-05-31 16:21:05 -04:00
Boris Zbarsky
fddc56821d
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
03ce34e73c
Bug 759504: return NULL instead of false for getPrototype r=peterv
2012-05-31 11:47:22 -07:00
Boris Zbarsky
c46a9a1068
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Bobby Holley
e597134b03
Bug 760076 - Make |construct| use Wrapper::CALL. r=mrbkap
2012-05-31 18:36:15 +02:00
Bobby Holley
2e1ac9db8c
Bug 760070 - Make the __exposedProps__ warning appear as an error. r=bz
2012-05-31 16:28:09 +02:00
Jason Orendorff
9ec40fdc02
Bug 753885 - Part 2: Add JSOPTION_ALLOW_XML, making E4X support optional per-context. r=Waldo.
2012-05-30 15:05:59 -05:00
Jason Orendorff
80dda6d7a5
Bug 753885 - Part 1: Rename JSOPTION_XML to JSOPTION_MOAR_XML, and other cleanups. r=Waldo.
2012-05-30 15:05:58 -05:00
Ed Morley
da18754c01
Merge mozilla-central to mozilla-inbound
2012-05-30 18:24:56 +01:00
Gervase Markham
d4eb7d5782
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
...
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Peter Van der Beken
8839249ab0
Fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
...
--HG--
extra : rebase_source : f676440e468c23e6c1e9458f6d75a615b9a6b8d7
2012-05-21 23:29:58 +02:00
Bobby Holley
a63c18d790
Bug 752038 - Avoid getting confused by PreCreate giving a different answer when we wrap objects cross-compartment during reparenting. r=mrbkap
2012-05-29 23:24:03 +02:00
dev
a34d2b297b
Bug 755631 - Remove extraneous exceptions in Cross Origin Wrappers. r=mrbkap
2012-05-26 09:33:52 -04:00
Bill McCloskey
5ad52acee0
Bug 758471 - Don't sweep native interfaces during compartment GC (r=bholley)
2012-05-25 11:06:13 -07:00
Bobby Holley
35b5448ba4
Bug 758563 - Warn when __exposedProps__ is missing. r=bz
2012-05-25 18:42:40 +02:00
Ms2ger
6f9dcfb48d
Merge m-c to m-i.
2012-05-25 11:15:32 +02:00
Ms2ger
1bbdb6aa38
Bug 747434 - Part 3: Remove unused variable 'startingObj' from XPCWrappedNativeScope::FindInJSObjectScope; r=gabor
2012-05-25 09:18:31 +02:00
Ms2ger
a552eafda2
Bug 758143 - Add xpc::GetCompartmentPrivate; r=bholley
2012-05-25 09:18:31 +02:00
Nils Maier
35431284b1
Bug 754771 - Add identifying information to all system compartments. r=bz
2012-05-16 19:42:10 +02:00
Gabor Krizsanits
63a5c4284b
Bug 747434 - Part 2: Optional Components object in sandbox. r=bholley
2012-05-22 20:21:45 -04:00
Gabor Krizsanits
c2807c5ab1
Bug 747434 - Part 1: Remove DEBUG_CheckForComponentsInScope. r=bholley
2012-05-22 20:21:45 -04:00
Bill McCloskey
66b701ad81
Bug 754588 - Set rt->gcPoke when doing xpconnect unrooting (r=mccr8)
2012-05-22 14:06:58 -07:00
Ehsan Akhgari
ab9253304f
Bug 307181 - Stage Firefox updates in the background after they're downloaded, and replace the application directory on restart; r=rstrong,bbondy
...
When Firefox downloads an update, it previously kept the update around to apply
it on the next restart. This patch changes this so that the updater program
is launched in the background as soon as the update has finished downloading
in order to stage the updated version of the application by copying the
existing installation directory to a temporary location and applying the update
on top of it, and replace the existing installation directory with the staged
directory on the next restart.
Because the replacing step is typically very fast, this patch eliminates the
wait for the update to be applied on restart, making it unnecessary to show a
progress dialog when restarting.
--HG--
rename : toolkit/mozapps/update/test/chrome/test_0092_finishedBackground.xul => toolkit/mozapps/update/test/chrome/test_0093_stagedBackground.xul
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test/unit/test_0113_general.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test/unit/test_0114_general.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test/unit/test_0115_general.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0172_fileLocked_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0173_fileLocked_xp_win_partial.js
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test_svc/unit/test_0113_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test_svc/unit/test_0114_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test_svc/unit/test_0115_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test_svc/unit/test_0172_fileLocked_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test_svc/unit/test_0173_fileLocked_xp_win_partial_svc.js
2012-05-22 10:50:04 -04:00
Gervase Markham
5d77e60a9e
Bug 716478 - update line numbers in XPCshell tests, necessary because of updating licence to MPL 2 with new, shorter boilerplate.
2012-05-21 12:13:52 +01:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
1573459c2b
Rename RootedVar to Rooted, bug 756823. r=billm
2012-05-24 16:05:18 -07:00
Brian Hackett
c07eaa0e3e
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Andrew McCreight
380a75cc8d
Bug 714725 - use deferred release in XPC_WN_Helper_Finalize. r=bholley
2012-05-19 13:56:29 -07:00
Brian Hackett
9ae1966596
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
a863456144
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Blake Kaplan
1fdfdd21f2
Bug 756584 - Crashtest for bug 720305. r=dveditz
2012-05-19 11:32:46 -04:00
Benjamin Smedberg
4f91700da9
Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
...
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Ms2ger
d442f7e17f
Bug 755875 - Use ValueToInt64/ValueToUint64 in XPCConvert::JSData2Native; r=bholley
2012-05-18 10:29:40 +02:00
Ms2ger
5623a92079
Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley
2012-05-18 10:29:40 +02:00
Ms2ger
a44e3f805c
Bug 754968 - Part b: Export qsObjectHelper; r=bholley
2012-05-18 10:29:40 +02:00
Ms2ger
2883604225
Bug 754968 - Part a: Export xpcObjectHelper; r=bholley
2012-05-18 10:29:40 +02:00
Nicholas Nethercote
82518cb83c
Bug 755583 (part 1) - Introduce "sundries" entries for aggregating small entries in per-compartment memory reporters. r=luke.
...
--HG--
extra : rebase_source : 797fc0deb2a438cbb7f4c64f4c03dd4b6378e498
2012-05-16 20:43:36 -07:00
Jason Orendorff
7bbae7c493
Bug 756260 - Fix up building without JS_HAS_XML_SUPPORT, again. r=terrence.
...
--HG--
extra : rebase_source : 9b0bc4f31db387e4e98821d712309792c07eac1c
2012-05-17 16:24:32 -05:00
Eddy Bruel
36436d48e3
Bug 703537 - Add IndirectProxyhandler; r=bholley,jorendorff
2012-05-17 13:19:37 +02:00
Nicholas Nethercote
14ad857e16
Bug 755581 (part 5) - Add "cross-compartment-wrappers" reporter. r=luke.
...
--HG--
extra : rebase_source : 1dfb5eb522008acd59f6bce5e1724af1dc0da9f0
2012-05-15 19:31:01 -07:00
Nicholas Nethercote
9e31860570
Bug 755581 (part 4) - Add "math-cache", "script-filenames" and "compartment-objects" reporters. r=luke.
...
--HG--
extra : rebase_source : cc1fc8ff91a7b63b8a1fd48aac3b5f37c7e84393
2012-05-15 19:30:28 -07:00
Nicholas Nethercote
56b8cb2a5a
Bug 755581 (part 3) - Clean up JSRuntime::sizeOfIncludingThis(). r=luke.
...
--HG--
extra : rebase_source : 892163d96148ed86a190ee7221235dc529445fef
2012-05-15 19:29:14 -07:00
Nicholas Nethercote
a57ef676b8
Bug 755581 (part 2) - Change "runtime/normal" reporter to "runtime/dtoa". r=luke.
...
--HG--
extra : rebase_source : 6dfe281494588628c3335058d333080f86bb3487
2012-05-15 19:28:31 -07:00
Nicholas Nethercote
7c43883893
Bug 755581 (part 1) - Change "mjit/data" reporter to "mjit-data". r=luke.
...
--HG--
extra : rebase_source : e45b376ff1710e9f1bf3b14363f884bb7fb71d48
2012-05-15 19:27:34 -07:00
Doug Turner
b1a5286789
Bug 755836 - undef near in directory helper to avoid build errors. r=kyle
2012-05-16 13:27:56 -07:00
Doug Turner
225363eefe
Bug 751663 - Implement new device proximity like event that fires only when the screen is close to the user's face. r=smaug
2012-05-16 13:27:54 -07:00
Ed Morley
d055880ec8
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-05-16 10:06:15 +01:00
Till Schneidereit
721ddcf010
Change nsXPConnect::CheckForDebugMode to trigger one multi-compartment GC instead of individual GCs for all compartments, to fix GC pauses when switching tabs with Firebug. Bug 754201, r=jorendorff, r=sfink.
2012-05-14 18:46:51 -05:00
Andrew McCreight
1d45033c16
Bug 701415 - Enable GC tracing info in opt builds. r=billm
2012-01-13 17:19:19 -08:00
Bobby Holley
f07d9da02c
Bug 553102 - Fix test_cows.xul. r=mrbkap
2012-05-24 13:04:57 +02:00
Matt Brubeck
4b70cc9606
Merge mozilla-central and mozilla-inbound
2012-05-14 21:41:08 -07:00
Matt Brubeck
84daf0496c
Merge last green changeset from inbound to mozilla-central
2012-05-14 14:00:57 -07:00
Mike Hommey
1f46768cf3
Bug 754625 - Use idl-parser from $(LIBXUL_DIST)/sdk/bin and only remove lex and yacc files in header.py --regen. r=khuey
2012-05-14 17:19:39 +02:00
Bobby Holley
1cfe6cb48d
Bug 753277 - Assert that all cross-scope wrapper reparenting operations are cross-compartment, and remove the conditional. r=mrbkap
...
The reindentation is pure. No snakes.
2012-05-14 12:52:17 +02:00
Tom Schuster
fb630ae705
Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger
2012-05-11 17:46:26 +02:00
Bobby Holley
4c3278d85a
Bug 754311 - Null out the private of soon-to-be-transplanted reflectors _after_ copying their properties onto the holder. r=mrbkap
2012-05-14 23:30:07 +02:00
Bobby Holley
3165006395
Bug 754044 - Remove manual injection of same-compartment security wrappers, and make sure to call JS_Wrap* instead. r=mrbkap
2012-05-14 23:30:07 +02:00
Bobby Holley
0c0fa43789
Bug 754044 - Apply same-compartment security wrappers in same-compartment wrapping callback. r=mrbkap
2012-05-14 23:30:07 +02:00
Bobby Holley
0ff9136104
Bug 754044 - Introduce sameCompartmentWrapObjectCallback. r=mrbkap
...
We leave it null for gecko for the time being to keep this patch small.
2012-05-14 23:30:07 +02:00
Bobby Holley
d1ba9b075d
Bug 754044 - Pass stopAtOuter=false in GetWrappedNativeOfJSObject, because that's what we mean. r=mrbkap
2012-05-14 23:30:07 +02:00
Landry Breuil
e68e03b499
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
79899a6f75
Backout 9b0fcaacb788 & bf3fef257e68 (bug 752226) for mochitest-other orange
2012-05-11 18:25:52 +01:00
Tom Schuster
1941fb1bb4
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
Steve Fink
2e82cc7265
Bug 752250 - xpc_UnmarkGrayContext should never throw an exception. r=billm
...
It is possible to have a JSContext with no global object and no frames on the
stack, yet still be within a request. In that case, xpc_UnmarkGrayContext will
trigger an exception "nothing active on context" when it attempts to access the
inner object of the cx's NULL global.
2012-05-09 15:12:27 -07:00
Boris Zbarsky
389a77894c
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
Kevin Locke
437fdb60bf
Bug 752357 - Include compartment location (sandbox name) in compartment name when it differs from the principal name. r=nnethercote.
...
--HG--
extra : rebase_source : f82959649a377c4f3806043d83506e3aa48b5915
2012-05-08 19:02:37 -07:00
Luke Wagner
d266538fea
Bug 747617 - fix document.all and swap JSClass::{construct,hasInstance} so this doesn't happen again (r=bz)
...
--HG--
extra : rebase_source : 036acbd046ff8b42f81e63933901b6aaaa595a76
2012-05-07 12:44:08 -07:00
Bill McCloskey
1e044a4a4b
Bug 751454 - Use automarker for XPCNativeScriptableInfo (r=bholley)
2012-05-08 11:11:09 -07:00
Jon Buckley
abfe75ece8
Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob
2012-05-08 13:29:31 -04:00
Ed Morley
5885a6edd0
Backout ba7cf6fd10ae (bug 728017) for failing to compile
2012-05-08 18:50:45 +01:00
Jon Buckley
3954a6b841
Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob
2012-05-08 13:29:31 -04:00
Boris Zbarsky
d1653e4647
Bug 751077. Skip binding for the XPConnect-default property ops as well when resolving properties on a sandbox prototype. r=bholley
2012-05-07 13:26:50 -04:00
Bill McCloskey
f3dfffc509
Bug 715761 - Start to rewrite xpconnect TraceJS code (r=bholley)
2012-05-07 10:01:50 -07:00
Bill McCloskey
41e825178d
Bug 715761 - Replace xpconnect automarker macros with templates (r=bholley)
2012-05-07 10:01:44 -07:00
Bill McCloskey
f7ce0e4046
Bug 715761 - Move xpconnect mark bits (r=bholley)
2012-05-07 10:01:39 -07:00
Bill McCloskey
58f1dc82f3
Bug 715761 - Add a comment explaining xpconnect (r=bholley)
2012-05-07 10:01:33 -07:00
Nicholas Nethercote
de5ab7a0de
Bug 752381 - Merge System Principal compartments in about:memory. r=jlebar.
2012-05-06 22:05:16 -07:00
Andrew Paprocki
5d846bbd8f
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
17aaa24bab
Bug 749173 - Remove AutoPreserveCompartment. r=luke
2012-05-06 13:09:49 +02:00
Ms2ger
3b04c7d79e
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Ms2ger
3a093c7580
Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal
2012-05-05 11:00:04 +02:00
Doug Turner
68e34b4226
Bug 738465 - implement device light sensor. r=smaug
2012-05-02 09:43:45 -07:00
Doug Turner
63408865d2
Bug 738131 - implement device proximity. r=smaug
...
* * *
Bug 738131 - implement device proximity. gonk implementation. r=mwu
2012-05-02 09:43:45 -07:00
Steve Fink
2c59d5586c
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
80175b16ed
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
fecdb93ec9
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
dcc0543487
Bug 744103, part 4 - Remove nsCycleCollectionLanguageRuntime. r=smaug
2012-05-03 12:28:11 -07:00
Andrew McCreight
a6b24a3344
Bug 744103, part 3 - Change NoteRoot to NoteJSRoot and NoteNativeRoot. r=smaug
2012-05-03 12:28:11 -07:00
Andrew McCreight
3ac11cfc5b
Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug
2012-05-03 12:28:10 -07:00
Peter Van der Beken
25970d2711
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
26aae65fb6
Bug 751280 - Remove 2-arg form of xpc_FastGetCachedWrapper. r=bholley
2012-05-03 06:22:58 -04:00
Luke Wagner
712afdc579
Bug 720753 - hoist JaegerCompartment and MathCache from JSCompartment into JSRuntime (r=bhackett,njn)
2012-05-03 09:12:47 +02:00
Luke Wagner
f80844498f
Bug 650353 - Implement Compartment-Per-Global in XPConnect. r=mrbkap
2012-05-03 09:10:12 +02:00
Luke Wagner
aa6d7ccb08
Bug 722775 - rm sameGroupAs. r=mrbkap
2012-05-03 09:10:10 +02:00
Boris Zbarsky
32c7f6e634
Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
...
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom. General files not specific to an interface are also exported into
mozilla/dom.
In terms of namespaces, most things now live in mozilla::dom. Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).
IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum. We then typedef
EnumFooValues::valuelist to EnumFoo. That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.
The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.
The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Bobby Holley
8bc0b852b9
Bug 750859 - Remove {Disable,Revert}Capability. r=bz, PGO helper on CLOSED TREE
2012-05-02 23:57:43 +02:00
Bobby Holley
37471e102e
Bug 750859 - Remove (most of) SetCanEnableCapability. r=bz
2012-05-02 23:57:34 +02:00
Justin Lebar
e7e161cf7f
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
2cfdab8b94
Bug 750253: Reorder generation of quickstubs header/cpp to avoid unnecessary rebuilds. r=ted
2012-04-30 12:30:00 -04:00
Mike Hommey
90af61ce13
Bug 749573 - Declare run-mozilla.sh and xpcshell as SDK_BINARY. r=ted
2012-04-30 08:05:34 +02:00
Mark Capella
2599ced77f
Bug 723530 - double error reporting in ctype JS api implementation, r=bholley
2012-04-27 12:47:00 +02:00
Gabor Krizsanits
4ab96d9a72
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-28 09:12:28 -04:00
Gabor Krizsanits
d3cb3d3e52
Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley
2012-04-28 09:12:27 -04:00
Gabor Krizsanits
e04309157b
Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley
2012-04-28 09:12:27 -04:00
Eddy Bruel
8266662238
Bug 703537: Removing the fix trap r=jorendorff@mozilla.com
2012-04-27 17:09:32 -04:00
Peter Van der Beken
d4809c1dce
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
7d387b6e1a
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
ae54e2bc78
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
Bobby Holley
c48d120359
Bug 747749 - Remove call to JS_SetGlobalObject in mozJSComponentLoader. r=luke
2012-04-26 20:40:11 +02:00
Nicholas Nethercote
08dc2dae6b
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
e2ed0fe94a
Bug 747815. Use const strings for arguments in DOM bindings. r=peterv
2012-04-26 00:42:03 -04:00
Ryan VanderMeulen
3d3d4922c1
Backout a0b3af4ac9f5 (bug 735280) due to Android jsreftest orange.
2012-04-25 21:59:36 -04:00
Gabor Krizsanits
0f38ab4f31
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-25 20:12:33 -04:00
Gabor Krizsanits
07fb83f53a
Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley
2012-04-25 20:12:33 -04:00
Gabor Krizsanits
a9ded93717
Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley
2012-04-25 20:12:33 -04:00
Andrew McCreight
a9c6928a04
Bug 678615, part 2: remove FinishCycleCollection. r=smaug
2012-04-25 08:10:09 -07:00
Andrew McCreight
a5af270e47
Bug 678615 - remove ExplainLiveExpectedGarbage. r=smaug sr=peterv
2012-04-25 08:10:09 -07:00
Mike Hommey
79542a4d88
Bug 747870 - Properly align XPCLazyCallContext::mData. r=bholley
2012-04-25 09:09:08 +02:00
Matt Brubeck
d5da39b00f
Back out bug 730208 and bug 747543 because of xpcshell test failures
2012-04-24 20:47:16 -07:00
Ryan VanderMeulen
d485f6d4b3
Backout 0b170d1f5d10 (bug 735280) due to red.
2012-04-24 22:09:23 -04:00
Gabor Krizsanits
f58f1c2ecd
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-24 21:48:02 -04:00
Gabor Krizsanits
8abef4d8c3
Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley
2012-04-24 21:48:01 -04:00
Gabor Krizsanits
e6e268bb09
Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley
2012-04-24 21:47:54 -04:00
Ehsan Akhgari
a992263c77
Merge mozilla-central into mozilla-inbound
2012-04-24 21:29:44 -04:00
Patrick Wong
30fd6e9e6a
Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar
2012-04-24 14:43:00 -04:00
Ehsan Akhgari
624b7c422e
Merge from mozilla-central
2012-04-23 18:17:44 -04:00
Kyle Huey
a2478f9645
Bug 747245: Fix a silly weak reference assertion. r=bent a=mfinkle
2012-04-23 14:14:10 -07:00
Ehsan Akhgari
06098487ea
Merge mozilla-central into birch
2012-04-22 16:10:35 -04:00
Boris Zbarsky
e6901a65af
Bug 742168. Refer to experimental bindings, not Paris bindings, in the pref code, since it will only control a subset of the Paris bindings. r=peterv
2012-04-18 12:02:04 -04:00
Marco Bonardo
8fd56f3066
Merge last green PGO from inbound to central
2012-04-17 15:31:58 +02:00
Olli Pettay
d796636855
Bug 731875 - Geolocation doorhanger might cause a zombie compartment, GeoPositionOptions part, r=dougt
2012-04-16 22:08:48 +03:00
Justin Lebar
5766598758
Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn
2012-04-16 12:20:54 +10:00
Justin Lebar
b391903730
Back out changeset 21f34fdd64a3 (bug 741378) because it breaks telemetry. r=me
2012-04-16 11:34:00 +10:00
Justin Lebar
dbb7a3bbac
Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn
2012-04-16 11:17:26 +10:00
Bobby Holley
1037d6c217
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
b0e37aa6d8
Bug 743843 - Introduce the options object for Components.Exception. r=Ms2ger,sr=mrbkap
2012-04-15 17:51:37 -07:00
Bobby Holley
50e6634137
Bug 743843 - Ditch the confusing switch-based parsing and add some comments. r=Ms2ger
2012-04-15 17:51:36 -07:00
Bobby Holley
1e648b7690
Bug 743843 - Factor individual argument parsers into helper methods. r=Ms2ger
2012-04-15 17:51:36 -07:00
Bobby Holley
d8267ab1e1
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
1de8ab38d4
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
c6ce9f7d79
Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley
2012-04-14 15:05:19 +02:00
Ms2ger
a37d5dbaac
Bug 741347 - Remove nsIXPConnect::DefineDOMQuickStubs, call DOM_DefineQuickStubs directly instead; r=bholley
2012-04-14 15:05:17 +02:00
Ms2ger
8299fe6b09
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
2b4ce9574c
Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal
2012-04-14 15:10:05 +02:00
Ms2ger
7164d44025
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
5a16b6f2fa
Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley
2012-04-14 15:05:19 +02:00
Ms2ger
ead7156eeb
Bug 741347 - Remove nsIXPConnect::DefineDOMQuickStubs, call DOM_DefineQuickStubs directly instead; r=bholley
2012-04-14 15:05:17 +02:00
Ms2ger
f88fab52fb
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
Bobby Holley
dd4ac27670
Bug 745661 - Make TI assertion handle safe mode, too. r=khuey
2012-04-16 16:57:36 -07:00
David Anderson
f84d3b7b8d
Remove more uses of JS_FrameIterator (bug 744617, r=mrbkap).
2012-04-16 12:30:04 -07:00
David Anderson
2b1abddde3
Remove simple JS_FrameIterator uses in xpconnect (bug 744617, r=bholley).
...
--HG--
extra : rebase_source : c206450cf46011543f58cded4c5aff2d49932afd
2012-04-16 12:25:28 -07:00
Steve Fink
c7e97d8358
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 : 1286bdbc4c337956242c292e0fa385629ee8850b
2012-03-14 09:32:58 -07:00
Steve Fink
4642a9a56c
Bug 730208 - XPConnect changes to UnmarkGray some more objects and return them for convenience. r=mccr8
...
--HG--
extra : rebase_source : a1d56aa4dc9dcf1fe280c42667710494f2481a7c
2012-03-20 21:22:40 -07:00
Mark Capella
1a44f1208f
Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
...
--HG--
extra : rebase_source : 648a581323d2c2893df780f71fe34dadcc4bbaab
2012-04-11 17:17:44 -07:00
Luke Wagner
f5f4ed58b7
Bug 744842 - don't include actual args in error.stack.toString (r=dmandelin)
...
--HG--
extra : rebase_source : 66a780c6abfc4fadc7cc08ed97224296af20ad61
2012-04-11 18:07:44 -07:00
Bobby Holley
ac0a01ac3b
Bug 744034 - Link the script context to the outer window earlier to ensure that we always have TI for content. r=mrbkap
2012-04-12 11:21:12 -07:00
Masatoshi Kimura
23049011a9
Bug 730161 - Replace IDBDatabaseException and FileException with DOMException. r=sicking
2012-04-11 17:55:21 -04:00
Andrew McCreight
0f2d884b02
Bug 744272. disable test_watchpoints due to bogus failures. rs=billm
2012-04-10 18:43:22 -07:00
Kyle Huey
a321486239
Refix bug 741248 harder. r=me
2012-04-09 17:41:22 -07:00
Matt Brubeck
0f3bc5ceb0
Merge last green changeset from inbound to mozilla-central
2012-04-09 10:05:48 -07:00
Igor Bukanov
5220367ed1
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
Kyle Huey
e680841744
Fix Bug 743376. r=bz
2012-04-06 17:44:50 -07:00
Bill McCloskey
90e65d2fdb
Bug 742570 - Change API for compartment GCs (r=igor)
2012-04-03 12:23:11 -07:00
Bill McCloskey
3ace6566fe
Bug 742570 - Remove the compartment option for gczeal (r=igor)
2012-04-03 11:41:56 -07:00
Gabor Krizsanits
c306ffc838
Bug 733035 - postMessage support for sandboxes. r=khuey
2012-04-05 18:33:20 -04:00
Takanori MATSUURA
6ba21f9576
Bug 737006 - Use internal ply only if needed. r=khuey
2012-04-06 14:06:52 -04:00
Bobby Holley
6d5b3754f7
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
5c79d2757f
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
a3abb07ffe
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
45bee87157
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
83623b313c
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
Justin Lebar
c7747cbafe
Bug 738624 - Add ghost windows to about:compartments. r=njn
...
--HG--
extra : rebase_source : c16cdfc4c06b363f54f1d0f37bb006cf977b079a
2012-04-02 22:28:05 -04:00
Terrence Cole
f55deb7328
Bug 741005 - Remove XPCNativeWrapperMap; r=bholley
...
This appears to be completely unused.
2012-03-30 15:56:35 -07:00
Matt Brubeck
6b29960c06
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
Matt Brubeck
ee9f4c7f0f
Merge mozilla-central to mozilla-inbound
2012-04-02 11:03:29 -07:00
Kyle Huey
8a52e3998a
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
7b8f9d67b3
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-03-31 22:41:59 +01:00
Olli Pettay
aef37dab12
Bug 641821, MutationObserver, r=sicking
...
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Peter Van der Beken
c2e642fbcc
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
f39a8777a1
Bug 738868 - Switch JSObject2JSObjectMap to new HashTable; r=mrbkap
2012-03-27 09:55:55 -07:00
Peter Van der Beken
42c9f22f81
Fix for bug 740064 (Refactor XrayWrapper). r=bholley.
...
--HG--
extra : rebase_source : 60559d74b10761a794d83a0a63dc60a92b2d48eb
2012-03-27 16:31:37 -07:00
Doug Turner
1971e5dc9f
Bug 739760 - doubles and floats can't be used in dictionaries. r=khuey
2012-03-29 00:05:44 -07:00
Luke Wagner
bcfb0e3bd1
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
a59c979d1b
Bug 738700 - unmark wrapped gray objects from nsISupports. r=smaug
2012-03-28 21:51:46 -07:00
Andrew McCreight
6b700b5814
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
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
Jared Wein
a80b6db592
Backed out changeset 8e42ba558f07 (bug 730318) CLOSED TREE
2012-03-27 15:23:53 -07:00
Andrew McCreight
b2648dcd9f
Bug 708825 - set mIdentity to null if compartment enter fails. r=bholley
2012-03-09 18:41:13 -08:00
Justin Lebar
155a287d43
Bug 738624 - Add ghost windows to about:compartments. r=njn
...
--HG--
extra : rebase_source : a486e644351af72a4276f26de2e4588ee851426f
2012-04-02 10:37:04 -04:00
Tom Schuster
fef9c89dba
Bug 711843 - Update JSAPI for typed arrays, remove uses of jstypedarray.h outside the engine [r=Waldo,bz,Ms2ger,bholley,bjacob,philikon,evilpie,bent,yourmama] [a=mfinkle thanks to gkw]
2012-01-14 09:43:00 -08:00
Boris Zbarsky
a3e1420cf0
Bug 726949. Instead of using the given proto for the sandbox directly, use a proxy that forwards to the given proto but rebinds all getters/setters/methods to use the given proto, not the sandbox global, as this. r=bholley, a=tracking-firefox
...
The code in XPCQuickStubs.h just moved from XPCQuickStubs.cpp.
2012-04-19 14:19:41 -04:00
Ed Morley
8043672933
Backout 3e24a0ebd104 (bug 726949) for M-oth orange; a=backout
2012-04-19 12:28:43 -07:00
Boris Zbarsky
757816f10d
Bug 726949. Instead of using the given proto for the sandbox directly, use a proxy that forwards to the given proto but rebinds all getters/setters/methods to use the given proto, not the sandbox global, as this. r=bholley, a=tracking-firefox
...
The code in XPCQuickStubs.h just moved from XPCQuickStubs.cpp.
2012-04-19 14:19:41 -04:00
Matt Brubeck
955934c3d9
Bug 743325 - Back out 554ab0a2f470 (bug 734503) because it broke touch events in XUL Fennec [r=peterv]
2012-04-24 07:51:56 -07:00
Jared Wein
883053cd10
Bug 730318 - Implement a way for chrome js to enumerate the plugin objects on a page for activation. r=khuey
2012-03-27 13:50:50 -07:00
Andrew McCreight
d1c47fdce5
Bug 736563 - mark global objects held by live windows black during GC. r=smaug
2012-03-27 12:22:10 -07:00
Gregor Wagner
ec5cd78551
Bug 678695 - Settings API. r=sicking, fabrice, smaug
2012-03-26 14:49:38 -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
Igor Bukanov
7296e0408c
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
f83a9ab93e
Merge mozilla-central and mozilla-inbound
2012-03-24 09:05:27 -07:00
Masatoshi Kimura
9177b368f2
Bug 736686 - Part 1: Make dictionary initializers callable off main thread. r=khuey
2012-03-24 12:33:49 +01:00
Dão Gottwald
766a2b3244
Backed out changeset 30798fdc5bad
2012-03-24 12:33:30 +01: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
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
Hessam Salehi
25b8143afe
Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg
2012-03-21 14:07:31 -04:00
Igor Bukanov
f8a4496d31
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
8775c56114
Backed out changeset f33e1e959036; r=bustage
2012-03-24 11:04:34 +01:00
Igor Bukanov
8e97874303
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
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
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
Igor Bukanov
fbeb82e29f
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
Igor Bukanov
877dee50e1
bug 736978 - remove JS_FinalizeStub. r=:billm
...
Currently the GC finalizes on the background thread only objects with null
JSClass::finalize. However, this implies that any object that uses
JS_FinalizeStub for the finalizer would be prevented from the background
finalization.
To fix this the patch removes JS_FinalizeStub replacing it with NULL in all
cases when the class has no custom finalizer. For style consistency the patch
also removed the usage of JSCLASS_NO_OPTIONAL_MEMBERS in the static
declarations as the compiler fills the missing fields with null in any cases.
2012-03-19 15:27:58 +01:00
Prabindh Sundareson
b62d17df9a
Bug 735594 - Add check for MOZ_JSDEBUGGER so that --enable-jsd=no works. r=bholley+khuey
2012-03-15 20:12:45 -04:00
Bobby Holley
7aa891a8c8
Bug 734475 - Take the full union of native sets when bringing non-PreCreate XPWNs across compartments. r=mrbkap
2012-03-16 12:47:20 -07:00
Peter Van der Beken
526e189372
Fix for bug 736229 (Stop storing expando objects in the wrapper cache, store the proxy instead). r=jst.
2012-03-14 15:22:10 +01:00
Marco Bonardo
ff249f47c5
Merge inbound and central
2012-03-16 13:42:16 +01:00
Ms2ger
126a61ae1e
Bug 722154 - Part f: Remove custom quickstubs for vertexAttrib[1-4]fv; r=bjacob
2012-03-16 10:53:41 +01:00
Ms2ger
0fa822c551
Bug 722154 - Part e: Remove custom quickstubs for uniform[1-4][i,f]v and uniformMatrix[2-4]fv; r=bjacob
2012-03-16 10:52:42 +01:00
Ms2ger
6c8b1e6b1c
Bug 722154 - Part d: Remove custom quickstub for readPixels; r=bjacob
2012-03-16 10:50:51 +01:00
Ms2ger
9fe057f15e
Bug 722154 - Part c: Remove custom quickstubs for compressedTexImage2D and compressedTexSubImage2D; r=bjacob
2012-03-16 10:50:33 +01:00
Ms2ger
475f50510f
Bug 722154 - Part b: Remove custom quickstub for bufferSubData; r=bjacob
2012-03-16 10:50:18 +01:00
Ms2ger
3b2c005617
Bug 722154 - Part a: Remove custom quickstub for bufferData; r=bjacob
2012-03-16 10:50:00 +01:00
Ms2ger
90fe48b371
Bug 550309 - Part e: Remove custom quickstub for getImageData and return an actual ImageData; r=bz
2012-03-16 10:48:55 +01:00
Ms2ger
364d2a12d3
Bug 550309 - Part c: Implement ImageData; r=bz
2012-03-16 10:44:08 +01:00
Bobby Holley
6261b39dd3
Bug 736316 - Components.utils.getGlobalForObject should unwrap cross-compartment wrappers. r=khuey
2012-03-15 19:47:06 -07:00
Ryan VanderMeulen
4c60195e21
Backout ca1873b20652 (bug 735594) due to mochitest-4 orange. r= http://i.qkme.me/36kr7a.jpg
2012-03-15 21:27:51 -04:00
Prabindh Sundareson
fd437e4fad
Bug 735594 - Add check for MOZ_JSDEBUGGER so that --enable-jsd=no works. r=bholley
2012-03-15 20:12:45 -04:00
Blake Kaplan
7a4eeff601
Bug 727884 - Make nsWrapperCache::WrapObject take a JSObject scope instead of XPCWrappedNativeScope. r=peterv
2012-03-14 16:25:40 +01:00
Ekanan Ketunuti
6dd7569b81
Bug 722180 - Remove error codes for proxies. r=khuey
2012-02-01 18:53:29 +07:00
Bobby Holley
c9729c8e9a
Bug 735544 - Allow exception stacks to cross compartment boundaries. r=luke
2012-03-15 15:19:52 -07:00
Kyle Huey
3232e8df17
No bug: Fix ply being stupid, take 2. r=me
2012-03-13 10:31:53 -07:00
Marco Bonardo
3e58667468
Merge last green PGO from inbound to central
2012-03-13 11:17:21 +01:00
Masatoshi Kimura
e441461b51
Bug 721569 - Implement Blob constructor. r=sicking
2012-03-12 21:44:56 -07:00
Masatoshi Kimura
c89a117b0c
Bug 721569 - Implement nullable types. r=khuey
2012-03-12 21:44:51 -07:00
Masatoshi Kimura
1f2073f34c
Bug 721569 - Support default values for Web IDL dictionaries. r=khuey CLOBBER BUILD
2012-03-12 21:44:48 -07:00
David Anderson
67bb3e5986
Remove JS_GetScriptedCaller (bug 732652, r=luke,mrbkap,bholley,smaug,bent).
2012-03-06 15:33:12 -08:00
Peter Van der Beken
c3b954ffff
Add new DOM binding for SVG list classes. r=jst.
...
--HG--
extra : rebase_source : ce84f9457d7b9a14a0a65db5c643938d0e0e05bc
2011-08-22 11:14:13 +02:00
Peter Van der Beken
7c7ace6986
Fix for bug 734506 (Fix DOM list binding generation - fix bad argument throwing). r=jst.
...
--HG--
extra : rebase_source : b71d386827bb0114be6e68a696270868e487fe1c
2011-10-14 23:52:31 +02:00
Peter Van der Beken
eee1fec521
Fix for bug 734506 (Fix DOM list binding generation - add includes for all types). r=jst.
...
--HG--
extra : rebase_source : 113e8e7e98dfea4b67cfa5e08bd281c5f105ab92
2011-10-14 23:18:41 +02:00
Peter Van der Beken
96b0afb0da
Fix for bug 734508 (Add new DOM binding for SVG list classes). r=jst.
...
--HG--
extra : rebase_source : c32d2fd124093ae437f000655bba7f3a5f17d99d
2011-08-22 11:14:13 +02:00
Peter Van der Beken
7d36526803
Backout 790be8926d50 to fix commit message
...
--HG--
extra : rebase_source : 930b7802b35784ef5d70ed359d5d9932013ad62d
2012-03-12 21:13:23 +01:00
Peter Van der Beken
c2e7269a78
Fix for bug 734505 (Add new DOM binding for FileList). r=jst.
...
--HG--
extra : rebase_source : 7a563b1af70c24f9117b813016b7a37612e92431
2011-08-22 11:14:13 +02:00
Peter Van der Beken
4d875e976f
Fix for bug 734503 (Add new DOM binding for TouchList). r=jst.
...
--HG--
extra : rebase_source : 701eb8d9a60ffa981ebcd24f426109bd70cc5cbf
2011-08-22 11:14:13 +02:00
Peter Van der Beken
31fa18aab8
Fix for bug 734499 (Add new DOM binding for PaintRequestList). r=jst.
...
--HG--
extra : rebase_source : 37f4a1ea723db150abc07d66c6f167c27fd9c354
2011-08-22 11:14:13 +02:00
Peter Van der Beken
752e2223e7
Fix for new bug 734497 (Add new DOM binding for ClientRectList). r=jst.
...
--HG--
extra : rebase_source : 1cc96b94d21940ac1ed75ec6d46d9c2964fc54a0
2011-08-22 11:14:13 +02:00
Ms2ger
e016675b5e
Bug 733872 - Use JS_GetObjectPrototype in XPCWrappedNativeScope::SetGlobal; r=bholley
2012-03-11 09:43:22 +01:00
Igor Bukanov
30d3de8268
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
55f276020a
Bug 732843 - Handle Callback() failures in memory multi-reporters. r=jlebar.
...
--HG--
extra : rebase_source : 54af85a1ef839922d5443cdc36f601611258944a
2012-03-04 15:26:30 -08:00
Matt Brubeck
465b97cf40
Merge mozilla-central to mozilla-inbound
2012-03-08 16:27:40 -08:00
Olli Pettay
4d4b25de9e
Bug 730891, event ctor for StorageEvent, r=sicking,kyle
2012-03-08 23:27:05 +02:00
Christian Holler
c75048ad98
Bug 727445 - Add --enable-address-sanitizer for ASan specific workarounds. Add --enable-llvm-hacks to pass CFLAGS to NSS and omit -Wl,-z,defs for shared libs. r=khuey,kaie
2012-03-07 15:11:15 -08:00
Igor Bukanov
553cbdfc40
bug 730234 - remove GC locking from activities, operation callbacks-related code and for code that accesses the JSContext list. r=luke
2012-02-24 12:03:28 +01:00
Bobby Holley
53efbc78aa
Bug 731804 - nsXPCWrappedJSClass::GetNamedPropertyAsVariant should jsvalify strings _after_ changing compartments. r=peterv
2012-03-08 11:13:34 -08:00
David Mandelin
68c407c176
Bug 733260 followup: use uint32_t for array and string lengths, r=luke
...
--HG--
extra : rebase_source : 1729b4b927fde0678872b9de62a7466381aa07c3
2012-03-06 15:52:55 -08:00
Bobby Holley
2dc291ee58
Bug 731845 - XPCWrappedNative::ReparentWrapperIfFound should handle preserved wrappers. r=mrbkap
2012-03-05 16:58:59 -08:00
Bill McCloskey
84718f7e90
Bug 729369 - Expose the same set of SpiderMonkey testing APIs to debug shell and debug browser chrome (r=Waldo)
2012-03-06 11:38:44 -08:00
Matt Brubeck
18cd6fbeaa
Back out 2fbc7d9ac670 (bug 731845) on suspicion of causing test_native_mouse_mac.xul timeouts
2012-03-06 11:05:37 -08:00
Nicholas Nethercote
e93c8baf5c
Bug 729403 (follow-up) - Use the right KIND for runtime/gc-marker, thus avoiding warnings about explicit mismatches. r=me.
...
--HG--
extra : rebase_source : 4625531f438d5e1e6a2e600134dee959a45e8204
2012-03-05 21:04:38 -08:00
Mark Hammond
6f18fbf7c7
Bug 728986: dump() writes to stdout instead of stderr. r=bent
2012-03-06 15:44:37 +11:00
David Mandelin
5e02d0630c
Bug 733260: remove typedef jsuint, r=luke
...
--HG--
extra : rebase_source : e8f576e1b5b189b47807c613c0cff79f5c8038e7
2012-03-05 18:43:45 -08:00
Andrew McCreight
7f86c54ec3
Bug 723971 - unmark gray for shapes. r=billm
2012-03-05 18:11:29 -08:00
Bobby Holley
ac1fbc4a6a
Bug 731845 - XPCWrappedNative::ReparentWrapperIfFound should handle preserved wrappers. r=mrbkap
2012-03-05 16:58:59 -08:00
Bobby Holley
ba4156b5cf
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
24197270eb
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
87d7f5f353
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
eb0a73527c
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
f43429b675
Bug 720580 - Introduce XPCWrappedNative::WrapNewGlobal. r=mrbkap
2012-03-05 15:22:45 -08:00
Bobby Holley
3523199f9a
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
4b0b1b7f62
Bug 720580 - Make the call to PostCreatePrototype optional. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
d5786b3e4f
Bug 720580 - Factor out the call to PostCreatePrototype into a helper method. r=mrbkap
2012-03-05 15:22:44 -08:00
Bobby Holley
221605656b
Bug 720580 - Accept an explicit native global during XPCWrappedNativeScope creation. r=mrbkap
2012-03-05 15:22:44 -08:00