Ms2ger
9325053582
Bug 908142 - Part d: Move FAIL_ON_WARNINGS to moz.build in js/xpconnect/shell/; r=gps
2013-10-20 09:25:19 +02:00
Tom Schuster
c4c16b0062
Bug 884410 - Remove JS_ValueToNumber. r=terrence
2013-10-19 18:39:52 +02:00
Andrew McCreight
4f6b4f41d9
Bug 927218 - Remove unused declaration of XPCWrappedNative::Morph. r=bholley
2013-10-17 06:24:18 -07:00
Andrew McCreight
74a3bafe4a
Bug 926081 - Move stuff from xpcpublic.h to xpcprivate.h. r=bholley
2013-10-17 09:02:20 -07:00
Steve Fink
98a2217207
Bug 925916 - Handlify various things in XPConnect, r=bholley
...
--HG--
extra : rebase_source : d6b2697f043d56e6c96e5addc7e6192d067a068c
2013-10-11 22:02:39 -07:00
Bobby Holley
5c32c180a4
Bug 922009 - MOZ_CRASH when trying to transplant objects with SCSWs. r=mrbkap
2013-10-17 10:00:02 +02:00
Ed Morley
fa71df56b3
Bug 927387 - Make xpc::SystemErrorReporter() JS exception fprintf()s not split the error across two lines; r=bholley
2013-10-16 16:18:24 +01:00
Gabor Krizsanits
ebb52400f3
Bug 925293 - Refactoring SandboxOptions parsing. r=bholley
2013-10-16 15:18:43 +02:00
Tom Schuster
f59a4cd93b
Bug 8844105 - Handlify JS_WrapObject. r=terrence
2013-10-15 20:02:23 -04:00
Ed Morley
d9879cd4ec
Merge latest green inbound changeset and mozilla-central
2013-10-14 17:39:02 +01:00
Ed Morley
da83085a5c
Backed out changeset ccf11ae08ba2 (bug 882541)
2013-10-14 17:30:43 +01:00
Eddy Bruel
2822dc03cc
Bug 880330 - Refactor xpconnect to use the new options API; r=bholley
2013-10-14 13:42:16 +02:00
Reuben Morais
9a394ad905
Bug 916267 - Remove XPIDL for MozContactChangeEvent. r=smaug
...
--HG--
extra : rebase_source : d8f8735865974e9e2ff76d5e9cde69866c8de3a5
2013-10-11 22:48:29 -03:00
Boris Zbarsky
316fae665f
Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger
2013-10-11 12:28:24 -04:00
Edgar Chen
a8154f3d20
Bug 873380 - Part 1: Refined the error report policy for card lock functionality. r=smaug. sr=hsinyi
2013-09-25 14:49:44 +08:00
Ehsan Akhgari
c52d2a5eab
Remove the unused UnexpectedFailure static function to fix my build, no bug
2013-10-10 17:39:52 -04:00
Birunthan Mohanathas
0fe811f2b7
Bug 784739 - Switch from NULL to nullptr in js/xpconnect/; r=ehsan
2013-10-10 16:35:53 -04:00
Dan Gohman
d87a4b311c
Bug 924642 - SpiderMonkey: Apply internal name linkage using static keywords. r=njn
2013-10-10 05:18:01 -07:00
Andrea Marchesini
d24dfb225f
Bug 920015 - Expose DOM URL to js modules, r=ehsan, f=emk, r=bz, r=bholley, r=smaug
...
--HG--
rename : js/xpconnect/tests/unit/test_textDecoder.js => js/xpconnect/tests/unit/test_url.js
2013-10-10 08:56:01 +02:00
Bobby Holley
a07607b748
Bug 921454 - Tests for NAC. r=jonco
2013-10-04 13:29:37 +02:00
Bobby Holley
c19386bfb3
Bug 921454 - Invert faulty assertion. r=jonco
...
This assertion is pretty clearly bogus, and only exists because, as it turns
out, we never had any test coverage for transplanting SCSW objects with
waivers. Even in the world when this stuff landed (bug 773962, which was well
before the removal of Location SCSWs in bug 808608 and the conversion of Nodes
to new bindings), we apparently never tested the waiver path. :-(
2013-10-04 13:29:36 +02:00
Bobby Holley
f8062f062d
Bug 921454 - Refactor proxy creation to use an options object. r=jonco
2013-10-04 13:29:35 +02:00
Bobby Holley
e049188b70
Bug 921454 - Skip unwrap safety assertion for cross-compartment SOWs. r=mrbkap
...
Currently this stuff just asserts when you pass NAC across compartments. And
the logic for this stuff is complicated enough that we don't gain a whole
lot from duplicating it.
2013-10-04 13:29:35 +02:00
Ms2ger
2f7a94dd23
Bug 912099 - Part a: Make sure CPP_SOURCES only points to existing files in most of the tree; r=mshal
2013-10-03 09:10:00 +02:00
Ms2ger
9d5ce8dfb7
Bug 922268 - Remove empty makefiles; r=gps
2013-10-03 09:10:00 +02:00
Ms2ger
f2703ebd89
Bug 898559 - Followup: Add back accidentally removed failure handling; r=bholley
2013-10-03 09:09:59 +02:00
Martijn Wargers
3ee6d7d7f3
Bug 922008 - Remove more enablePrivilege calls, part2. r=jmaher
2013-09-30 11:30:01 +02:00
Nicholas Nethercote
5bcfb5698f
Bug 921954 - Clean up type inference memory reporting. r=bhackett.
...
--HG--
extra : rebase_source : a3c640921882a997017b1cddca189f5b3217a88e
2013-09-30 16:20:33 -07:00
Ryan VanderMeulen
2a773817b4
Merge m-c to inbound.
2013-09-30 16:51:06 -04:00
Ryan VanderMeulen
e5b66a5e17
Merge m-c to b2g-inbound.
2013-09-30 16:30:26 -04:00
Benjamin Smedberg
9c04bbbd45
Bug 920695 part B - Remove references to JS_READLINE/EDITLINE since its in a different place now and won't work, r=bholley
...
--HG--
rename : js/xpconnect/shell/xpcshell.cpp => js/xpconnect/src/XPCShellImpl.cpp
extra : rebase_source : 01b0eb2d04a41fbc47f06c5030d730ae3e9323e2
2013-09-30 16:09:28 -04:00
Benjamin Smedberg
13993a098f
Bug 920695 part A - move xpcshell code into libxul and make the xpcshell binary just a stub, r=bholley
...
--HG--
rename : js/xpconnect/shell/xpcshell.cpp => js/xpconnect/src/XPCShellImpl.cpp
rename : js/xpconnect/shell/jsshell.msg => js/xpconnect/src/jsshell.msg
extra : rebase_source : 9a2ab7508e3cb7a6bfec6b1e98f49799221d1376
2013-09-30 16:09:28 -04:00
Gregory Szorc
f0bcf1241b
Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:06 +02:00
Gregory Szorc
89c902c7b2
Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:01 +02:00
Boris Zbarsky
03a8251b92
Bug 906166. Make sure to initialize the "succeeded" outparam of XPC_WN_Helper_DelProperty. r=bholley
2013-09-30 10:31:30 -04:00
Gregory Szorc
c44d9c8614
Bug 920223 - Part 1: Mass convert MOCHITEST_FILES to manifests; rs=Ms2ger
2013-09-30 09:51:57 +02:00
Ed Morley
eae8f15a4a
Backed out changeset 77bff106b704 (bug 920223)
2013-09-30 12:50:12 +01:00
Ed Morley
74e3d6ce30
Backed out changeset 68b6b152f51a (bug 920223)
2013-09-30 12:50:09 +01:00
Ed Morley
5e3c678fac
Backed out changeset 8b02873ee07e (bug 920223)
2013-09-30 12:50:05 +01:00
Gregory Szorc
18c2c27094
Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:06 +02:00
Gregory Szorc
47e946bebe
Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:01 +02:00
Gregory Szorc
3d0a157ac2
Bug 920223 - Part 1: Mass convert MOCHITEST_FILES to manifests; rs=Ms2ger
2013-09-30 09:51:57 +02:00
Reuben Morais
ed748e4a00
Backed out 8 changesets (bug 916267, bug 850430) for mochitest failures
2013-09-30 01:44:06 -03:00
Reuben Morais
4b25997198
Bug 916267 - Remove XPIDL for MozContactChangeEvent. r=smaug
2013-09-29 22:22:43 -03:00
Andrew McCreight
23fcdadf9b
Bug 915488 - Make CC participant's Root, Unroot and Unlink methods infallible. r=smaug
2013-09-11 18:57:53 -07:00
Jan Varga
23ce3971fb
Bug 832883 - Move IDBKeyRange to WebIDL and define indexedDB/IDBKeyRange in all the spots. r=khuey,bent (initial work done by Ms2ger)
2013-09-28 13:25:46 +02:00
Jan de Mooij
98e98fedfa
Bug 915763 - Remove TypeScript::dynamicList and dynamic Monitor functions. r=bhackett
2013-09-28 11:45:21 +02:00
Bobby Holley
9b45a35973
Bug 920553 - Introduce Cu.importGlobalProperties API. r=gabor
2013-09-27 18:34:25 +02:00
Bobby Holley
3dbfa793ab
Bug 920553 - Make GlobalProperties::Parse follow JSAPI exception convention. r=gabor
...
Anything that returns false should set an exception unless either (a) the
failure resulted from another JSAPI call that would have set an exception or
(b) the failure indicates OOM.
2013-09-27 18:34:25 +02:00
Bobby Holley
f51d8eec28
Bug 920553 - Hoist GlobalProperties out of SandboxOptions. r=gabor
2013-09-27 18:34:25 +02:00
Bobby Holley
65af77b3c0
Bug 921399 - Fix memory leak. r=gabor
2013-09-27 18:34:24 +02:00
Nicholas Nethercote
2d9b5e156d
Bug 920852 (part 4) - Reorder a bunch of stuff. r=till.
...
--HG--
extra : rebase_source : b386abc4bfcdc85fad4071eeb06de2ca83a17bd8
2013-09-25 20:17:19 -07:00
Nicholas Nethercote
5fd123f3a1
Bug 920852 (part 3) - Tweak various things about RuntimeStats. r=till.
...
--HG--
extra : rebase_source : 0748417364e0b8be25846f573d93fc657b228d19
2013-09-24 23:24:29 -07:00
Nicholas Nethercote
19db4d0520
Bug 920852 (part 2) - Rename fields of ZoneStatsPod and StringInfo to match memory reporter paths. r=till.
...
--HG--
extra : rebase_source : d67dc7deedee6213f640ca2ae31a959b66d8d64e
2013-09-24 23:24:28 -07:00
Nicholas Nethercote
7d3e82240b
Bug 920852 (part 1) - Rename fields of ObjectsExtraSizes and CompartmentStats to match memory reporter paths. r=till.
...
--HG--
extra : rebase_source : 0f55dd20e69d3410d0cb811529f53570f588cc5e
2013-09-24 23:24:28 -07:00
Ben Turner
fcdca3203a
Bug 920179 - 'Add resolve hook for IndexedDB constructors on non-window globals'. r=bholley.
...
--HG--
extra : transplant_source : %05%A0%9Av%A5%14%09%B1%3B%9E2%0B%80%CD%EA%F8%A8%D6%A4t
2013-09-25 16:10:57 -07:00
Ryan VanderMeulen
85b2edc046
Backed out 3 changesets (bug 920179, bug 920633, bug 920800) for Windows |make package| crashes on a CLOSED TREE.
...
Backed out changeset bb0041643a0f (bug 920800)
Backed out changeset 24818d9b7470 (bug 920633)
Backed out changeset d49b0f47b05a (bug 920179)
2013-09-26 14:22:43 -04:00
Ben Turner
5445873afd
Bug 920179 - 'Add resolve hook for IndexedDB constructors on non-window globals'. r=bholley.
...
--HG--
extra : transplant_source : 77%C6F%3FlL%0F%C2%DE36.%5DA%0D%F6H%0B%24
2013-09-25 16:10:57 -07:00
Nicholas Nethercote
a5d55e1483
Bug 919889 (part 4) - Assorted minor clean-ups. r=luke.
2013-09-24 23:24:28 -07:00
Nicholas Nethercote
20426ed4ad
Bug 919889 (part 3) - Move the private_ field out of ObjectsExtraSizes. r=luke.
2013-09-24 23:24:28 -07:00
Nicholas Nethercote
1cdfcceb25
Bug 920818 (part 2) - Remove dead EXPORT_XPC_API -D constant. r=glandium.
...
--HG--
extra : rebase_source : c3d2776c68f3ea207d93d9e7575b51976f298c31
2013-09-25 19:49:07 -07:00
Nicholas Nethercote
afb2c845ab
Bug 920818 (part 1) - Remove dead JSFILE -D constant. r=glandium.
...
--HG--
extra : rebase_source : 6979db199a850f38e07349fad08c9c00a6a83fde
2013-09-25 19:47:58 -07:00
Nicholas Nethercote
9c1dfff707
Bug 913260 (part 4) - Use distinguished amounts for all the memory measurements done by telemetry. r=mccr8.
...
CLOSED TREE
2013-09-19 15:52:30 -07:00
Nicholas Nethercote
e670fcccd8
Bug 913260 (part 3) - Formalize the concept of "distinguished amounts" in the memory reporter manager. r=mccr8.
2013-09-19 15:52:28 -07:00
Phil Ringnalda
f2d9988dbb
Backed out 3 changesets (bug 913260)
...
CLOSED TREE
Backed out changeset 9195be8a50cb (bug 913260)
Backed out changeset 09c71a3e7b85 (bug 913260)
Backed out changeset 8a8691a26012 (bug 913260)
2013-09-24 20:31:00 -07:00
Bobby Holley
7d352bf1c1
Bug 916945 - Tests. r=bz
2013-09-24 19:02:56 -07:00
Nicholas Nethercote
6a709f70b8
Bug 913260 (part 4) - Use distinguished amounts for all the memory measurements done by telemetry. r=mccr8.
...
--HG--
extra : rebase_source : 0e9db51b137770ba7db15a99a4ec1e87071d2f47
2013-09-19 15:52:30 -07:00
Nicholas Nethercote
8bd7f32128
Bug 913260 (part 3) - Formalize the concept of "distinguished amounts" in the memory reporter manager. r=mccr8.
...
--HG--
extra : rebase_source : cc6f50d85f384ed665d44b2e8850618fd8a56fa5
2013-09-19 15:52:28 -07:00
Dan Gohman
a08337eb0c
Bug 918023 - SpiderMonkey: Const-qualify various static variables. r=njn
2013-09-24 08:21:22 -07:00
Gregory Szorc
160a20817c
Bug 901990 - Part 2: Upgrade xpcshell manifests; r=ted
...
--HG--
rename : toolkit/mozapps/extensions/test/xpcshell-unpack/head_unpack.js => toolkit/mozapps/extensions/test/xpcshell/head_unpack.js
2013-09-24 11:50:08 -07:00
Ryan VanderMeulen
9fa464d752
Backed out changeset 2c3d1c9241d7 (bug 918023) for Windows debug TestEndian failures.
...
CLOSED TREE
2013-09-24 14:09:15 -04:00
Dan Gohman
f4b8189f4a
Bug 918023 - SpiderMonkey: Const-qualify various static variables. r=njn
2013-09-24 08:21:22 -07:00
Bobby Holley
497e849a07
Bug 915613 - Introduce a mechanism to get a default context for a runtime, and use that in js-ctypes. r=jorendorff
...
This causes us to use the SafeJSContext on main thread, and the singleton
JSContext on workers. I opted for the slightly-heavier-weight dynamic callback,
rather than just setting it as a member on the runtime, because we like to delay
the creation of the SafeJSContext a bit, so I didn't want to spin it up right
when we spin up the runtime.
2013-09-24 08:03:23 -07:00
Masayuki Nakano
835a1fca99
Bug 912956 part.3 Create mozilla/BasicEvents.h r=roc
2013-09-24 19:04:14 +09:00
Jon Coppeard
2b0c3a4661
Bug 912567 - Split HashMap/HashSet::rekey() into rekey() and rekeyIfMoved() r=terrence
2013-09-24 10:03:32 +01:00
Olli Pettay
e8366cd084
Bug 919717, in preparation for WebIDL EventListener, fix nsWrappedJS' JSObject handling, r=mccr8
...
--HG--
extra : rebase_source : 0ff6855c2283b6b395e5ad1cfcdd813b7467ac43
2013-09-24 00:08:35 +03:00
Ehsan Akhgari
dee6c12c6f
Bug 918923 - Part 2: Switch to #including nsString.h in code using the internal strings API; r=bsmedberg
2013-09-23 13:25:00 -04:00
Phil Ringnalda
2546eef4df
Merge m-c to fx-team
2013-09-22 09:16:05 -07:00
Gabor Krizsanits
aa291bb455
Bug 892214 - atob and btoa for Sandbox. r=bholley
2013-09-21 15:25:47 +02:00
Gabor Krizsanits
8fd8a5f18d
Bug 892214 - Moving atob to xpcprivate. r=bholley
2013-09-21 15:25:47 +02:00
Gabor Krizsanits
8994014ca6
Bug 892214 - Rename DOMConstructors to GlobalProperties in SandboxOptions. r=bholley, r=mossop
2013-09-21 15:25:46 +02:00
Jim Blandy
ea4cc8c15b
Bug 916845: Reindent ReadSourceFromFilename to match the surrounding style. r=bz
2013-09-20 21:49:42 -07:00
Jim Blandy
ce940e5536
Bug 916845: Change sourceHook to a nice C++ object with a destructor. r=jorendorff
2013-09-20 21:44:46 -07:00
Jim Blandy
08cf3f0cc8
Bug 916845: Use size_t to describe length of source code in SpiderMonkey SourceHook lazy source hook. r=jorendorff
2013-09-20 21:44:46 -07:00
Bobby Holley
401f1b3747
Backed out changeset 86128d3eac88 (bug 916939) for breaking the web. r=me
2013-09-20 10:32:32 -07:00
Jon Coppeard
60622be6ee
Bug 918373 - GC: Handlify various public APIs r=sfink r=bholley r=smaug
2013-09-20 10:22:59 +01:00
Jon Coppeard
f1d686be98
Bug 917757 - Don't trigger Heap<T> post barriers in XPConnect shutdown r=bholley
2013-09-20 10:22:58 +01:00
Cykesiopka
5c68328e57
Bug 914272 - Move IS_COMPONENT to mozbuild. r=joey
2013-09-19 17:29:32 -04:00
Benoit Jacob
43fcdc2ede
Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan
2013-09-19 09:54:42 -04:00
Jon Coppeard
dffe7f475b
Bug 917798 - Handlify JS exception APIs r=terrence r=bz
2013-09-19 08:54:01 +01:00
Wes Kocher
ee41ec25e3
Backed out changeset 040522aacba4 (bug 913847)
2013-09-18 17:18:56 -07:00
Benoit Jacob
af97fdd40d
Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan
2013-09-18 18:50:32 -04:00
Mike Hommey
7371888973
Bug 917086 - Disallow DIRS, PARALLEL_DIRS and TEST_DIRS under TOOL_DIRS and TEST_TOOL_DIRS, and adapt moz.build files accordingly. r=gps
...
Also mark TOOL_DIRS/TEST_TOOL_DIRS directories in backend.mk and recurse them normally instead of forcing make -C dir libs for them.
2013-09-19 07:43:02 +09:00
Bobby Holley
cd5f077305
Bug 916939 - Drop support for named and indexed access on cross-origin windows. r=bz
2013-09-18 08:39:48 -07:00
Bobby Holley
61cbfaf31f
Bug 914939 - Don't assert against OOM in XPCWrappedJS QI hooks. r=gabor
2013-09-18 08:34:12 -07:00
Eddy Bruel
4e10124da3
Make Debugger.Source load the source text if it is not retained (bug 916845). r=jimb
2013-09-17 15:37:00 +03:00
Dan Gohman
29e3d034ae
Bug 916683 - SpiderMonkey: Tidy up misc preprocessor stuff. r=n.nethercote
2013-09-17 15:44:42 -07:00
Bobby Holley
8f78b2faeb
Bug 905926 - Remove workaround in xpcshell. r=billm
2013-09-17 09:46:33 -07:00
Bobby Holley
c8872347c9
Bug 905926 - Be more explicit about GCing twice in the nsXPConnect destructor. r=billm
...
In the current setup, we'll end up GCing once when destroying the SafeJSContext,
and then once again immediately after in the explicit GC we do before destroying
the XPCJSRuntime. It would be nice to avoid the first GC entirely, but we
currently need both to avoid leaking.
All in all, these patches cause us to GC three times during shutdown, rather
than twice as we did before, because the second GC was rolled together with
the runtime destruction GC when we destroyed the last JSContext. There are a
number of ways to eliminate these, at least in opt builds, but mccr8 thinks
it probably doesn't matter, since there shouldn't be much left in the heap after
the second GC.
We can probably get away with eliminating rambo GC entirely at some point. But
this might become irrelevant for the browser if we end up doing bug 662444.
It would also be interesting to see what, if anything, the rambo GC actually
collects. We might even be able to get away with asserting that all the zones
are gone and removing the GC entirely.
We also take the opportunity to kill mOwnSafeJSContext, which no longer holds
any meaning.
2013-09-17 09:46:32 -07:00
Bobby Holley
ac7034ec92
Bug 905926 - Invoke JS_DestroyRuntime before we totally tear down the XPCJSRuntime. r=billm
2013-09-17 09:46:31 -07:00