Commit Graph

1070 Commits

Author SHA1 Message Date
Blake Kaplan
a9e26d46d0 Bug 535079 - Get the XPCNativeWrapper class without compiling and running JS code. r=jst sr=sicking 2009-12-16 16:51:06 -08:00
Blake Kaplan
c907eb155f Bug 522621 - Use namespaces in the wrapper code and generally clean up the internal interfaces between the wrappers. r=jst 2009-10-20 17:21:39 -07:00
Benjamin Smedberg
2efe22a0e4 Merge only plugin changes from e10s to mozilla-central. 2009-12-16 09:19:07 -05:00
Benjamin Smedberg
ffeebc91f0 Merge mozilla-central into electrolysis 2009-12-16 08:38:42 -05:00
Dietrich Ayala
40aa9b0a88 Bug 532563 - XPCOMUtils has anonymous functions (r=sdwilsh) 2009-12-15 23:25:38 -08:00
Benjamin Smedberg
ce3386b2d4 Electrolysis-plugin-only bookkeeping commit. 2009-12-15 20:33:05 -05:00
Benjamin Smedberg
999be86ac2 Merge mozilla-central into electrolysis. 2009-12-14 08:01:18 -05:00
Benjamin Smedberg
422b4b28d2 Merge mozilla-central into electrolysis. One code change was required: in nsDocShell::CreateStaticClone I replaced EnsureDocShell with MaybeCreateDocShell. 2009-12-12 13:38:25 -05:00
Boris Zbarsky
8c7d101795 Bug 533636. Speed up IsSecurityWrapper. r=mrbkap 2009-12-11 22:36:35 -08:00
Benjamin Smedberg
767eb11cb4 Merge mozilla-central into electrolysis 2009-12-04 11:28:50 -05:00
Blake Kaplan
c8044d3215 Bug 532259 - Protect against a null script. r=jst a=sayrer
--HG--
extra : rebase_source : 926c94ac7dca681c195e4bd013db0331e79f78ca
2009-12-03 14:52:56 -08:00
Blake Kaplan
9699e0ff2d Bug 531222 - Don't access the SSM off the main thread. r=bent sr+a=jst 2009-12-02 12:06:18 -08:00
Benjamin Smedberg
a819191110 End the electrolysis-plugins-only branch: merge in the remaining changes from electrolysis head in preparation for pushing to mozilla-central. 2009-12-14 09:56:08 -05:00
Benjamin Smedberg
b55b15dccf Merge additional changes from electrolysis and mozilla-central into the electrolysis-plugins-only tracking branch.
--HG--
branch : electrolysis-plugins-only
2009-12-04 11:42:28 -05:00
Benjamin Smedberg
3cfccc2b20 Straight revert of xpcshell to its mozilla-central state.
--HG--
branch : electrolysis-plugins-only
2009-11-30 14:17:24 -05:00
Benjamin Smedberg
737515b2c8 Merge mozilla-central into electrolysis. 2009-11-19 12:41:46 -05:00
Robert Sayre
33427c24cd Merge mozilla-central to tracemonkey. 2009-11-19 01:21:34 +01:00
Benjamin Smedberg
453514dea2 Bug 523769 - Don't call into plugin hooks (specifically NPObject.deallocate) while mid-GC, r=jst+mrbkap 2009-11-17 14:51:46 -05:00
Benjamin Smedberg
17cf638aac Merge mozilla-central into electrolysis. 2009-11-11 12:35:42 -05:00
Chris Jones
0807e5c7e2 bug 527871: fix shutdown assertion and leaking TestShellParent. still leaking ContentProcessParent's GeckoChildProcess, but needs discussion before fixing 2009-11-11 02:34:08 -06:00
Ben Turner
6b2f085492 Bustage fix, r=mrbkap 2009-12-11 14:30:27 -08:00
Jeff Walden
e7b84ff7fb Bug 504078 - Always guard on the class of iterator objects, not just when the iterator object is native at record time. r=brendan
--HG--
extra : rebase_source : 018075a7776016733ca9d91f79b76fa54a84bad3
2009-11-05 23:41:37 -08:00
Benjamin Smedberg
281b9fd4a8 Merge from mozilla-central. 2009-11-06 09:54:28 -05:00
Chris Jones
35f31a72c3 don't init gtk in xpcshell, it's a relic of a darker era 2009-11-05 20:06:05 -06:00
Robert Sayre
e08b99cf18 bustage fix 2009-10-29 11:48:18 -07:00
Olli Pettay
513478ce73 Bug 517665 - XPCJSStackFrame::CreateStack cause permanent memory, r=peterv,mrbkap 2009-10-29 13:48:06 +02:00
Benjamin Smedberg
eba77abeb6 Merge mozilla-central into e10s. 2009-10-28 11:32:00 -04:00
Benjamin Smedberg
15de24f35e Merge mozilla-central to electrolysis. 2009-10-20 12:08:28 -04:00
Daniel Holbert
16d6c9d4d9 Bug 521677: Use fputs instead of printf/fprintf in a few cases, to fix "format not a string literal and no format arguments" build warnings. r=dbaron 2009-10-19 08:03:00 -07:00
Benjamin Smedberg
47962706bf Bug 523097 - Turn off MOZ_IPC for platforms where we currently don't build, and fix up ifdefs so that everything builds
--HG--
extra : rebase_source : 9da68ad54e7c378a4c9bbaac7b2166630827ec60
2009-10-19 09:55:03 -04:00
Blake Kaplan
c5601bd36b Make this message not catch the tinderbox's error parser. 2009-10-16 18:03:54 -07:00
Atul Varma
bdb1e8e0d6 Bug 522764 - Add mochitests for COWs. r=mrbkap 2009-10-16 15:19:01 -07:00
Benjamin Smedberg
fa058fc1f1 Merge mozilla-central to electrolysis to pick up bug 515436. 2009-10-12 10:51:38 -04:00
Ben Turner
62534891fc Merge mozilla-central 2009-10-05 16:08:52 -07:00
Olli Pettay
bc14675f76 Bug 519932 - Quickstub commonly used DOMEvent methods and properties, r=peterv
--HG--
extra : rebase_source : 6fba39740c9c7a391499f90030fe865000e8efe4
2009-10-05 22:32:19 +03:00
Marco Bonardo
87d521d9ce test for lazy getters scope, bug 508850, r=sdwilsh 2009-10-05 12:12:28 +02:00
Peter Van der Beken
886612c189 Backed out changeset 542fa9413bd0, fix for bug 517196 (The JSClass of wrappers shouldn't change when morphing from slim to XPCWrappedNative), to try to fix orange. 2009-10-08 13:41:44 -07:00
Chris Jones
08de77b6a4 Backed out changeset 8cbc47eee659 2009-10-02 18:09:08 -05:00
Chris Jones
3e5fef214c bug 441324: implement infallible ::operator new(), malloc() and friends. make |new Foo()| infallible, but leave |malloc()| fallible for the time being. r=blassey sr=bsmedberg,vlad 2009-10-01 21:50:09 -05:00
Blake Kaplan
1b993d3f38 Bug 518991 - Implement access controls in COWs. For now, this is opt-in default unsafe. r=jst 2009-09-30 19:38:57 -07:00
Ben Newman
c68af46729 Bug 518003 - implement function to check whether element matches a CSS selector. r+sr=bzbarsky
--HG--
extra : rebase_source : 67a7867a5cca52c867a8ee7daeea1bd1e613f1bc
2009-09-30 15:17:14 -07:00
Honza Bambas
25cfd349ac Bug 510234 - localStorage.clear() doesn't actually delete its properties, r+sr=jst 2009-11-11 21:39:34 +01:00
Ben Turner
66a36315ce Merging mozilla-central once more to hopefully clear windows unit tests 2009-09-20 10:47:21 -07:00
Neil Rashbrook
e4cac4353a Bug 508780 Followup to make qsgen.py compatible with Python 2.4 r=peterv 2009-09-19 18:10:09 +01:00
Phil Ringnalda
e62c83fdc6 Bug 495228 - Remove checks for mac MOZ_WIDGET_TOOLKIT, r=ted 2009-09-18 19:59:53 -07:00
Benjamin Smedberg
d44f878b56 Merge mozilla-central into Electrolysis. 2009-09-18 16:47:18 -04:00
Peter Van der Beken
e2e773f880 Fix for bug 517196 (The JSClass of wrappers shouldn't change when morphing from slim to XPCWrappedNative). r=mrbkap.
--HG--
extra : rebase_source : 95898b5ab53d60200058374c52cdb8161aabf78b
2009-09-18 12:43:48 +02:00
Taras Glek
bfe943ded9 Bug 412796: Optimize fastload system (mmap fileIO) r=brendan
--HG--
extra : rebase_source : 425e1c4254b8e5c7c3b9fc98efb91c06805d1f02
2009-10-08 10:30:21 -07:00
Ben Hsieh
3eab496287 Bug 510991 - NS_GetURLSpecFromFile does a stat(). r=biesi 2009-10-06 15:43:59 +02:00
Peter Van der Beken
996b501faf Fix for bug 534341 (XPConnect should not unroot globals of non-main thread contexts). r=bent. 2009-12-13 16:58:04 -08:00
Peter Van der Beken
9a6bc55b64 Fix for bug 508780 (Stop using tearoff from quickstubs for nsDOMCSSDeclaration/nsComputedDOMStyle), part 1. r=jst.
--HG--
extra : rebase_source : c08832cbf78e54b82a7bc3dd22e7bc8710ed8b29
2009-09-18 15:09:53 +02:00
Blake Kaplan
67c44c0769 Backed out changeset a01f270b961a to fix tinderbox orange. 2009-09-17 21:47:50 -07:00
Blake Kaplan
6d09f51003 Bug 505915 - Throw exceptions eagerly when we try to convert a cross-origin security wrapper to a C++ object. r=jst 2009-09-02 17:25:25 -07:00
Blake Kaplan
5e85bedc27 Bug 517163 - Add missing call to morph slim wrappers when wrapping them in XPCNativeWrappers. r+sr=jst 2009-09-17 18:51:10 -07:00
Benjamin Smedberg
667f14f6d4 Bug 503451 - remove GeckoActiveXObject/COMObject, and similar functions which aren't usable by content except that content can still detect which COM objects are present on the system r=mrbkap sr=jst 2009-08-27 12:38:33 -07:00
Blake Kaplan
afba815d74 Merge tracemonkey to mozilla-central. 2009-09-16 16:15:59 -07:00
Blake Kaplan
5ee9e532ef Bug 516102 - Refactor XPCNativeWrapper's constructor into callable-from-JS and callable-from-C++ functions. r+sr=jst 2009-09-14 18:26:18 -07:00
Blake Kaplan
7615f61052 Fix bustage. 2009-09-11 17:03:53 -07:00
Blake Kaplan
3598007c8f Fix bustage from bug 509557. 2009-09-11 14:43:22 -07:00
Peter Van der Beken
44e0950903 Don't morph when not needed in GetWrapperForObject. r=mrbkap.
--HG--
extra : rebase_source : ebde1385b163dc11a6f976b6c2a0de1b617cf8b4
2009-11-09 15:12:47 +01:00
Blake Kaplan
bfebb50319 Bug 509557 - Initialize the prototype's flags so that we can always assume that an XPCNativeWrapper's flags are integers. r=jst sr=bzbarsky 2009-08-18 21:02:05 -07:00
Blake Kaplan
439954f9eb Bug 509557 - Don't do a bunch of extra work and create a bunch of extra objects during window creation. 2009-08-18 21:02:05 -07:00
Blake Kaplan
79c31490dc Bug 515475 - Get rid of a spurious security check in js_InternalGetOrSet that isn't needed anymore. r=brendan 2009-09-10 14:47:19 -07:00
Blake Kaplan
71d5ed8b0d Bug 514554 - Don't skip state transitions without initializing members. r=peterv sr=jst 2009-09-10 14:09:35 -07:00
Shawn Wilsher
993694805d Bug 513710 - Places toolkit JS should use XPCOMUtils.defineLazy[Service]Getter
r=sayrer for XPCOMUtils change
r=mak for places changes

--HG--
extra : rebase_source : 70367abfaf16fcf37aab6f55f024b95ff3d269fa
2009-09-02 13:55:16 -07:00
Shawn Wilsher
287d6992b8 Bug 508850 - XPCOMUtils should provide a convenient way to define lazy getters
r=sayrer
sr=bsmedberg
2009-08-31 09:32:05 -07:00
Ben Newman
e5a024bacf Bug 500644 - PAC: crash when using PAC-based manual proxy config and the attached testcase. r=mrbkap sr=brendan
--HG--
extra : rebase_source : 68dbf79d8e257f3915b817723ca51deb840e4298
2009-08-27 18:07:44 -07:00
Ben Turner
6e6fa8eaec Enable ipcshell tests 2009-09-02 12:35:15 -07:00
Chris Jones
146dcb9c2d endow xpcshell with the power of GTK 2009-09-01 18:18:40 -05:00
Ben Turner
99f1c34f15 Rework ipcshell to become xpcshell 2009-08-28 16:16:19 -07:00
Peter Van der Beken
8b5c239aac Fix for bug 510677 (Avoid XPCCallContext for WrapNativeToJSVal). r/sr=jst.
--HG--
extra : rebase_source : 647f360f5603a2f9ade579a9911ba51af1db91b5
2009-08-14 21:00:24 +02:00
Peter Van der Beken
e20a909c30 Remove debugging code for setters and methods to avoid weird behaviour from calling the native setters and methods twice.
--HG--
extra : rebase_source : bc087eb4c541411d5adc696b267295d4d172614e
2009-08-24 08:44:16 -07:00
Peter Van der Beken
06a3290ed7 Fix for bug 510673 (Add a quickstub for document.write). r/sr=jst.
--HG--
extra : rebase_source : 10b08ef2c45a0db19122851cd105a7580e499d0a
2009-08-14 19:55:43 +02:00
Peter Van der Beken
8b2510f3f2 Part 3 of fix for bug 459452 (Add support for optional arg count for IDL methods): add support for [optional_argc] to quickstubs. r=jst.
--HG--
extra : rebase_source : 59f7c2481353bbd2bd00397c6faf5f0860d32c8e
2009-08-10 16:41:15 +02:00
Johnny Stenback
039b7eb41d Part 2 of fix for bug 459452 (Add support for optional arg count for IDL methods): use [optional_argc] for DOM methods. r=peterv.
--HG--
extra : rebase_source : c0bc25842b2645fe9f42c9ed5d57567f8e6b5279
2009-08-10 16:41:12 +02:00
Johnny Stenback
3a9c44dbda Part 1 of fix for bug 459452 (Add support for optional arg count for IDL methods): add support for [optional_argc] to xpidl and XPConnect. r=sicking.
--HG--
extra : rebase_source : 3057c5af37ccb1bbdb022a0a3070122df3019d13
2009-08-10 16:41:07 +02:00
Taras Glek
0f83b72143 Bug 524313: crash [@ RaiseException ] nsFastLoadFileReader::ReadFooter r=brendan
--HG--
extra : rebase_source : d9f2f41d0c2dfc0e7a2d90c97789e66a38c3f43f
2009-10-26 12:35:12 -07:00
Blake Kaplan
2a51726b39 bug 504877 - Track a last minute change made to make more mochitests happy. 2009-10-27 04:22:07 -07:00
Blake Kaplan
fa51c49e3b Bug 504877 - Check for UniversalXPConnect access further down on the stack chain. r=jst sr=bzbarsky 2009-08-06 20:25:13 -07:00
timeless@mozdev.org
ecfc12513e Bug 514073 - [@ XPCIDispatchExtension::Enumerate], r=mrbkap 2009-10-26 18:39:24 -07:00
Boris Zbarsky
5ca7066094 Bug 523817. Make optional out params actually work and allow [retval] after [optional]. r=shaver 2009-10-23 16:24:47 -04:00
Robert Sayre
9eda7abe2f Merge tracemonkey to mozilla-central. 2009-08-25 09:52:56 -07:00
Benjamin Smedberg
2e9438fd2f Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted 2009-08-25 08:59:31 -07:00
David Anderson
744033066f Removed JSStackFrame::callee (bug 512029, r=brendan). 2009-08-24 17:09:44 -07:00
Serge Gautherie
3c1ea54617 Bug 495730 - xpcshell-tests: each test leaks 3 nsStringBuffer, after (harness) bug 483062 landing; (Ev1) xpcshell.cpp: s/null/nsnull/; bustage fix 2009-08-20 18:07:23 +02:00
Serge Gautherie
915501a755 Bug 495730 - xpcshell-tests: each test leaks 3 nsStringBuffer, after (harness) bug 483062 landing; (Dv2a) xpcshell.cpp: call crashReporter->SetEnabled(PR_FALSE); r=ted.mielczarek 2009-08-20 17:35:30 +02:00
Blake Kaplan
7073411c9d Bug 509075 - Update this function to use shiny new APIs that don't require multiple searches for the property. r=jorendorff sr=jst 2009-08-18 20:55:30 -07:00
Robert Sayre
86100e21e2 Merge mozilla-central to tracemonkey. 2009-08-20 18:02:17 -04:00
Andreas Gal
81c28c4fe8 Notify JS_CommenceRuntimeShutdown from CycleCollector (511522, r=graydon). 2009-08-19 15:13:02 -07:00
Andreas Gal
c438241025 Backout bug 506125. 2009-08-18 17:30:05 -07:00
Andreas Gal
1982bae71c Build fix for bug 506125. 2009-08-18 17:14:34 -07:00
Andreas Gal
57285268f7 Schedule GC based on process memory pressure (506125, r=igor,waldo). 2009-08-18 16:38:02 -07:00
Andreas Gal
ebc6f01967 Add an API to notify the JS engine that we are about to destroy the runtime (511252, r=brendan). 2009-08-18 16:31:20 -07:00
Robert Sayre
c582767e79 Merge mozilla-central to tracemonkey. 2009-08-14 17:49:42 -04:00
Hashem Masoud
c8f711113e Bug 489502 - Replace NS_ASSERTION(0, ...) by NS_ERROR(...) in mozilla-central; r=benjamin 2009-08-14 16:09:00 +02:00
Blake Kaplan
fd26ee6ac1 Fix bug 508752. r+sr=jst 2009-08-10 18:07:00 -07:00
Blake Kaplan
392333159f Bug 509824 - Don't call into the script security manager off the main thread. r=bent sr=jst 2009-08-18 20:53:15 -07:00
Jason Orendorff
eb983a642d Bug 509103 - Drop support for assigning to parameterized properties. r=shaver.
--HG--
extra : rebase_source : 1c1d756ed4a510414a561546d73d3989204c16cb
2009-08-13 16:05:25 -05:00
Brad Lassey
14569d27f4 bug 503137 - xpcshell.exe needs an --environ cli option to work with xpcshell unittests on windows mobile r+sr=mrbkap 2009-08-28 10:16:30 -04:00
Blake Kaplan
e6ad9883bf Bug 512589 - Initialize some more members. r=peterv sr=peterv 2009-08-27 12:45:34 -07:00
Benjamin Smedberg
0df64c6bc4 Additional followup to bug 398573 - remove REQUIRES from the tree even when they are in makefile conditional blocks
--HG--
extra : rebase_source : cc65c34a414e6c67a5651fc9cf0b6bd709ebcdbd
2009-08-27 08:53:13 -07:00
Zelgadis
c42718629c Bug 519926. When the string is an optional argument and isn't passed, pval is null. r=jorendorff 2009-10-14 14:27:34 -04:00
Blake Kaplan
04032a8e05 Bug 519901 - Add mochitests. 2009-10-13 14:14:24 -07:00
Blake Kaplan
99e0f23d60 Bug 519901 - Allow deleting props from XPCNativeWrappers. r=bzbarsky 2009-10-01 15:31:16 -07:00
Peter Van der Beken
cc92a01a8e Try to fix orange. 2009-10-13 11:01:02 +02:00
Peter Van der Beken
9929c9c84d Part 2 of fix for bug 517196 (The JSClass of wrappers shouldn't change when morphing from slim to XPCWrappedNative). r=mrbkap.
--HG--
extra : rebase_source : 8f79c1e9dfd541b9412bf7b7813acec6437f3f50
2009-10-12 17:16:31 +02:00
Peter Van der Beken
0398910587 Fix for bug 517196 (The JSClass of wrappers shouldn't change when morphing from slim to XPCWrappedNative). r=mrbkap.
--HG--
extra : rebase_source : 4f7978e3ed1335fc4f58478afc038fb63576581b
2009-09-18 12:43:48 +02:00
Robert Sayre
c8a923e58e Merge mozilla-central to tracemonkey. 2009-08-12 12:18:38 -07:00
Peter Van der Beken
16bf42fce4 Fix for bug 499199 (Try to avoid XPCCallContexts in quickstubs for wrapper-cached things). r/sr=jst.
--HG--
extra : rebase_source : 8fc828106f3cf5e82e902cefd79e55df2b8721c3
2009-08-10 12:12:59 +02:00
timeless@mozdev.org
6028fe0d79 Bug 505804 XPC_SJOW_Call leaks args if JS_GetFunctionObject(callWrapper) yields null
r=mrbkap
2009-08-12 11:49:53 +02:00
Boris Zbarsky
99d0bce640 Hack to make bug 509557 less annoying. 2009-08-11 13:25:14 -04:00
Igor Bukanov
6bfe4771cc bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff 2009-09-05 19:59:11 +04:00
Luke Wagner
6bfe9f9329 Bug 460904 - rename/tweak JSTraceableFunction (take 2) 2009-09-04 13:44:31 -07:00
Igor Bukanov
b919139e8d bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan 2009-08-28 09:53:26 +04:00
Atul Varma
169e0bf289 Bug 505494 - Unwrap invisible wrappers when they're passed to Function.prototype.apply. r=mrbkap 2009-08-06 20:48:57 -07:00
Igor Bukanov
ef90f6f522 bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden 2009-08-04 23:06:55 +02:00
Robert Sayre
7ddae3093a Merge mozilla-central to tracemonkey. 2009-08-02 15:27:09 -07:00
Mark Steele
ff339aa3b6 Bug 497999: collect context-specific TraceVis data in JS objects, r=jorendorff 2009-07-30 11:48:02 -07:00
Boris Zbarsky
46de150a80 Backed out changeset 03c40c5a2d4b (bug 505988) to fix password manager test orange.
--HG--
extra : rebase_source : c88519859e51b9d49d0f2269085dbb17edabd1c1
2009-07-30 11:01:01 -04:00
Michael Kohler
13d4cc6cbd Bug 106386 - Correct misspellings in source code (old); Misspellings in /js/; r=mrbkap 2009-07-27 10:46:54 +02:00
Robert Sayre
710cad8b2a Merge tracemonkey to mozilla-central. 2009-07-24 13:42:38 -04:00
Robert Sayre
a181aec2ed Merge mozilla-central to tracemonkey. 2009-07-23 16:49:14 -04:00
Makoto Kato
240dd42e43 Bug 505680 - xpcshell for Symbian. r=mrbkap 2009-07-24 19:05:57 +09:00
Igor Bukanov
9534c3d315 bug 504033 - avoiding calling JSFinalizeStub. r=brendan 2009-07-22 18:23:21 +02:00
timeless@mozdev.org
145236e39f Bug 504474 JS_ValueToBoolean is void
r=brendan
2009-07-22 17:31:04 -05:00
timeless@mozdev.org
4ce3e7f582 Bug 496774 XPCJSRuntime::XPCJSRuntime shouldn't touch mJSRuntime without null checking something
r=bent sr=jst
2009-07-22 17:31:03 -05:00
timeless@mozdev.org
1f6f60b919 Bug 501593 update TestXPC to use Request Model
r=jorendorff sr=mrbkap
2009-07-22 17:31:02 -05:00
Benjamin Smedberg
4965608501 Bug 483202 - Load chrome from the GRE directory in xpcshell, r=ted 2009-07-17 10:41:26 -04:00
Daniel Jeter II
8f9209bc4f Bug 503186 - DeprecationWarning using Python 2.6, r=bsmedberg 2009-07-17 10:20:11 -04:00
Jesse Ruderman
2979b4fd10 Make uneval(window) always return something that can be evaled (bug 380959). r=mrbkap. 2009-07-14 13:30:32 -07:00
Peter Van der Beken
b831933504 Fix for bug 503170 (Make QS argument unwrapping use thisptr offsets). r=jorendorff, sr=jst.
--HG--
extra : rebase_source : 1bf030e9ea24fd8efa3fd14feef3632020a3a359
2009-07-09 16:26:19 +02:00
Peter Van der Beken
9eeb6bea74 Fix for bug 504146 (Crash [@ nsGenericElement::cycleCollection::Traverse] with focus() method, popup, menulist, treecols). r=jst, sr=mrbkap.
--HG--
extra : rebase_source : ccd7a76cceab3f1ab593e2918d3847e14e8c5c22
2009-07-17 12:17:46 +02:00
Vladimir Vukicevic
9b3959126b b=500472; flash activex shunt for Windows CE; r=jst 2009-07-16 14:13:29 -07:00
Peter Van der Beken
5a3a242c13 Fix for bug 503167 (Replace xpc_qsReadOnlySetter with js_GetterOnlyPropertyStub). r=jorendorff, sr=jst.
--HG--
extra : rebase_source : 448b7e44111c8261736156e76c9936030457c40a
2009-07-09 16:26:19 +02:00
Peter Van der Beken
2f1f9cb597 Fix for bug 503166 (XPCStringConvert::ReadableToJSString shouldn't allocate for empty string). r/sr=jst.
--HG--
extra : rebase_source : 76c08ffb3bced708ad8af9626b7dfcb3c3fae28f
2009-07-09 14:46:39 +02:00
Blake Kaplan
6e8862dc1e Add a crashtest for bug 503286. r=gal 2009-07-14 01:59:37 -07:00
Benjamin Smedberg
350cc29383 Bug 501657 - Put local python modules at the beginning of the python path, not the end, tested by Jory Pratt 2009-07-13 12:28:59 -04:00
L. David Baron
9a8d97752d Make some of the DEBUG_CC code accessible to code in non-debug builds so it can be used by memory tools for Web developers. (Bug 500233) r+sr=peterv 2009-07-08 18:10:29 -07:00
Blake Kaplan
d97fd15843 Bug 505988. Don't unwrap when we shouldn't. r=bz
--HG--
extra : rebase_source : d251c442ba2fae0f9ffcae99c2c84d780c99ea52
2009-07-30 15:26:59 +12:00
Siddharth Agarwal
1d4cdaa8e3 Part of bug 503756 -- Rename the js/ mozilla-config.h to js-confdefs.h. r=bsmedberg, jimb
--HG--
extra : rebase_source : 8b0956fef406cde43c329c76bf63594a882216e4
2009-07-30 00:05:05 +05:30
David Zbarsky
aca9dc4bae Bug 392526. Some callers of nsID::ToString use a mismatched allocator to free the string. r=bsmedberg 2009-07-29 13:54:44 -04:00
Blake Kaplan
ece0649965 Bug 480205 - Implement a wrapper for exposing chrome objects to content (aka COWs). r+sr=jst sr=bzbarsky on some parts. 2009-05-21 01:17:51 -07:00
Blake Kaplan
a81a467be4 Bug 503926 - Don't call QueryInterface on content JS objects. r=bzbarsky sr=jst 2009-07-23 14:41:16 -07:00
L. David Baron
929be1c2f9 Add temporary debugging code to dump entire JS heap at shutdown to debug bug 538462. 2010-04-30 22:46:13 -07:00
Phil Ringnalda
51b3042614 Backed out changeset 9b18eada106e (bug 531303) on suspicion of orange 2010-04-30 20:23:18 -07:00
timeless@mozdev.org
dfa786fdd0 Bug 531303 - Instantiating a JS component from a background thread crashes (JS_ASSERT), r=mrbkap 2010-03-17 06:09:00 -07:00
Peter Van der Beken
2ea151221c Fix for bug 558979 ("ASSERTION: What kind of object is this" with appendChild, setting __proto__). r=mrbkap.
--HG--
extra : rebase_source : 8d120423afd4c296878dea5da95d5623abb1bf5e
2010-04-15 10:28:54 +02:00
Blake Kaplan
00cd76535d Finish merging. 2009-08-10 19:32:28 -07:00
Blake Kaplan
eab38938f1 Backed out changeset 577258550954. Fixing mochitest-chrome bustage. 2009-08-10 19:32:15 -07:00
Blake Kaplan
9af6523aeb Bug 509583 - Deal with empty arrays the same way we deal with regular arrays. r+sr=jst 2009-08-10 18:08:13 -07:00
Blake Kaplan
7b08162c95 Bug 506838 - Deal with GetCxSubjectPrincipalAndFrame returning a non-scripted frame. r+sr=jst 2009-08-10 18:07:47 -07:00
Blake Kaplan
9515b85185 Fix bug 508752. r+sr=jst 2009-08-10 18:07:00 -07:00
Blake Kaplan
41dc1bdf6b Bug 508982 - Don't try to double-rewrap properties. It's a very expensive no-op. r+sr=jst 2009-08-10 16:01:42 -07:00
Blake Kaplan
674602e2c9 Bug 505217 - Don't wrap slim wrappers in SOWs. r+sr=peterv 2009-08-10 16:01:42 -07:00
Jacek Caban
f7ded6371a Bug 505729 - nsXPConnect.cpp fails to build on MinGW. r=bz 2009-08-09 16:45:00 +02:00
Blake Kaplan
492422a92a Merge backout of orange-causing changeset. 2009-08-06 23:52:14 -07:00
Blake Kaplan
ab354b731d Backed out changeset 5ea7f2882982. It's causing mochitest orange. 2009-08-06 23:52:01 -07:00
Blake Kaplan
3f98edd6fe Bug 502959 - Restore code to make caps allow wrapping same-origin wrappedjs objects. r=jst sr=bzbarsky 2009-08-06 20:26:33 -07:00
Blake Kaplan
f4d931d00a Bug 504877 - Check for UniversalXPConnect access further down on the stack chain. r=jst sr=bzbarsky 2009-08-06 20:25:13 -07:00
Blake Kaplan
5f7e2721c6 Fix bug 505988. r=bzbarsky sr=jst 2009-08-04 15:04:53 -07:00
Blake Kaplan
6c0c17f88a Bug 508483 - Don't try to create XPCNativeWrappers around a double-wrapped object. r+sr=jst 2009-08-04 20:52:10 -07:00
Blake Kaplan
87be09d504 Bug 507047. Remove unnecessary toString override from COWs. r=jst
--HG--
extra : rebase_source : 676013a9567ae59c1dba863a7975467f3cf4d847
2009-08-05 14:39:05 +12:00
Johnny Stenback
c4f6146af5 Fixing bug 501531. Make some functions static. r+sr=mrbkap@gmail.com
--HG--
extra : rebase_source : ef972db0100f2856724af0c9a958cada10a8e2c4
2009-07-06 14:01:45 -07:00
Peter Van der Beken
b805317eeb Try to fix orange. 2009-07-05 20:03:52 +02:00
Peter Van der Beken
ca8ccf47e0 Fix for bug 482788 (Lightweight DOM wrappers). r=jst, sr=mrbkap. 2009-05-12 22:20:42 +02:00
Blake Kaplan
6307e86103 Bug 500931 - Ensure that weak reference wrappers return the right object when called upon. r=bent sr=jst 2009-07-02 17:00:21 -07:00
Blake Kaplan
9b28e7922b Bug 501577 - Add a missing call to Release in nsXPCWrappedJS::GetNewOrUsed. Also remove a hack needed to get around the missing release. r+sr=peterv 2009-07-02 17:00:20 -07:00
Blake Kaplan
3f48024026 Bug 500691 - Call JS_ClearScope before XPConnect tries to update our outer window's scope's concept of what {Function,Object}.prototype are so that we forward correctly to the inner window's versions. r=jst sr=bzbarsky 2009-07-01 16:43:50 -07:00
Blake Kaplan
434bedc0de Bug 496441 - Random cleanup: only calculate the callee once. r+sr=jst 2009-07-01 12:12:04 -07:00
Blake Kaplan
2f5c19b4ba Bug 496441 - Some random cleanup: remove an unnecessary macro. r+sr=jst 2009-07-01 12:12:04 -07:00
Blake Kaplan
8cddc0e049 Bug 498000 - Throw a better error when toString is called cross-origin on an XPCNativeWrapper from an unprivileged context. r+sr=bzbarsky 2009-07-01 12:12:04 -07:00
Blake Kaplan
e70a8f1ac4 Merge backout. 2009-06-30 16:22:43 -07:00
Blake Kaplan
aac9f0431d Backed out changeset 291552e67a3b due to leaks. 2009-06-30 16:22:20 -07:00
Johnny Stenback
a511964116 Fixing bug 442399. Remove LiveConnect from the tree. r=joshmoz@gmail.com, bclary@bclary.com, sr=brendan@mozilla.org 2009-06-30 15:55:16 -07:00
Blake Kaplan
920e1cabfe Bug 500931 - Ensure that weak reference wrappers return the right object when called upon. r=bent sr=jst
--HG--
extra : rebase_source : 5f73d1e92b912cf88c8a45a3ccd53de35c7b1e3d
2009-06-30 13:49:46 -07:00
Robert Sayre
5248dd661e Merge tracemonkey to mozilla-central. 2009-06-30 12:19:07 -07:00
Mike Hommey
52c585af70 Bug 501241 - xpcshell fails to build when setting EDITLINE. r=mrbkap
--HG--
extra : rebase_source : c41df07d7ccaf98a15335493aa9227788da323ee
2009-06-29 16:10:54 -07:00
Jason Duell
b92a22ef0f Bug 483689. Add fflush to print() and dump() in xpcshell, and do some cleanup. r=mrbkap
--HG--
extra : rebase_source : 4ad9ed9ddada4d6b6705c1f8a4a84c39213bf2f8
2009-06-29 11:01:42 +12:00
Olli Pettay
b0eab11c98 Bug 497780 - onmouseout's MouseEvent.relatedTarget is a chrome element and is completely inaccessible, r=mrbkap@gmail.com, sr=bz 2009-06-28 22:46:52 +03:00
Peter Van der Beken
876abb32f0 Fix for bug 499787 (Remove one AddRef/Release pair from GatherProtoScriptableCreateInfo). r/sr=mrbkap.
--HG--
extra : rebase_source : 2db51a8d57cf6bdb8c42e677a819e1d3687e3593
2009-06-23 12:09:13 +02:00
Olli Pettay
2e0f78e968 Bug 486990 - Context Menu can be disabled by stopping propagation, r=enn, sr=neil 2009-06-23 13:07:39 +03:00
Peter Van der Beken
3bc9cdbe64 Fix for bug 484821 (Have a separate hash for main-thread only XPCWrappedNativeProto). r/sr=mrbkap. 2009-03-24 11:14:43 +01:00
Peter Van der Beken
2cd9ab8291 Fix for bug 484764 (Set up DOM prototype chains from PostCreateProto instead of PostCreate). r/sr=jst.
--HG--
extra : rebase_source : 8e24cbcede7e48e42c4c06a55d3bc7dd91603020
2009-06-03 17:30:18 +02:00
Boris Zbarsky
bad520da1f Bug 499235. Quickstub nsIDOMNodeSelector. r+sr=peterv 2009-06-19 13:10:30 -04:00
Olli Pettay
4f0aa79a1e backout Bug 486990
--HG--
extra : rebase_source : 5947dd5fcc29bfb333c53cc2f60a00895910e9bb
2009-06-17 16:22:37 +03:00
Olli Pettay
b4d60fb950 Bug 486990 - Context Menu can be disabled by stopping propagation, r=enn, sr=neil
--HG--
extra : rebase_source : a425f116d1350ff1204f1b031754a262ec73f8b1
2009-06-17 13:26:21 +03:00
Boris Zbarsky
eb5f032de5 Bug 495167. Make XPCOMUtils.generateQI deal with string interface names. r+sr=bsmedberg 2009-06-15 16:06:20 -07:00
Blake Kaplan
982c6e4162 Bug 496486 - Don't let our wrapped natives get garbage collected out from under us. r+sr=bzbarsky 2009-06-12 14:35:35 -07:00
arno renevier
7ba51c715c Bug 496891. Handle NSGetModule returning null. r=bzbarsky 2009-06-11 13:16:21 -04:00
Boris Zbarsky
9e286af994 Bug 484459. Give SandboxClass a convert method so it doesn't end up delegating that to the prototype. r+sr=mrbkap 2009-06-03 18:49:53 -04:00
Peter Van der Beken
580d491113 Fix for bug 495554 (crash [@ XPCNativeSet::NewInstance(XPCCallContext&, XPCNativeInterface**, unsigned short) ]). r/sr/a=jst.
--HG--
extra : rebase_source : 29b4e1b88da5e56d1c33e7c09697c9fb0a1f9936
2009-05-31 20:07:26 +02:00
Johnny Stenback
f635245925 Re-landing backed out part of bug 483672 for parity with 1.9.1 2009-05-22 15:59:33 -07:00
Peter Van der Beken
faf20b2693 Fix for bug 494445. r/sr=mrbkap.
--HG--
extra : rebase_source : 33e2bfe1c564abf2cad000ee62fb2d0520976585
2009-05-22 22:19:25 +02:00
Johnny Stenback
e58e630925 Backing out part of bug 483672 to see if this part is what caused the performance regression. 2009-05-21 20:27:30 -07:00
L. David Baron
3dd611372e Backed out changeset 1abeb6c87131 (Bug 480205 - Implement a wrapper for exposing chrome objects to content (aka COWs)) due to mochitest failures and leaks. 2009-05-21 06:54:41 -04:00
Blake Kaplan
83e011d635 Bug 480205 - Implement a wrapper for exposing chrome objects to content (aka COWs). r+sr=jst sr=bzbarsky on some parts. 2009-05-21 01:17:51 -07:00
Peter Van der Beken
e9612afa0d Fix quickstubs dependency problem, .h doesn't depend on any headers so don't add it to .dep and make .cpp depend on the interface files instead. rs=ted. 2009-05-20 14:07:20 +02:00
Olli Pettay
fd7e16f279 Bug 493366 - Assertion failure: (cx)->requestDepth || (cx)->thread == (cx)->runtime->gcThread, at mozilla/js/src/jsapi.cpp:5196, r+sr=mrbkap 2009-05-20 12:30:57 +03:00
Ben Turner
ba0f386cbd Bug 490718 - 'XPCWrappedNativeScope creates a needless cycle with its principal provider.' r=peterv, sr=jst. 2009-05-19 10:56:01 -07:00
Blake Kaplan
0163278d15 Bug 491219 - Make SOWs wrap more deeply. r+sr=jst 2009-05-18 16:52:12 -07:00
timeless@mozdev.org
b2e7596a82 Bug 491194 - fixing miscellaneous warnings. r=biesi 2009-05-18 12:43:55 +02:00
Peter Van der Beken
98633d5f16 Fix for bug 490592 (Possible to GC way too much during shutdown due to XUL and XBL prototypes). r/sr=bz. 2009-05-07 11:19:41 -07:00
Peter Van der Beken
e267b828d9 Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly). r=bent, sr=jst. 2009-05-07 11:19:36 -07:00
Peter Van der Beken
3c7951a396 Merge backout. 2009-05-16 16:17:50 +02:00
Peter Van der Beken
d7f8357ac2 Backed out changeset 0c8d4f846be8 (Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly).) to try to fix Tshutdown regression. 2009-05-16 16:16:55 +02:00
Honza Bambas
b1ee7471c1 Bug 492219 - localStorage's constructor should be Storage, r+sr=jst 2009-05-16 15:59:30 +02:00
Simon Fraser
9a33168aa0 Bug 74803 - Should make global data const where possible; xpconnect; r=brendan 2009-05-16 01:14:17 +02:00
Peter Van der Beken
e07ba2eafd Merge backout. 2009-05-15 16:39:20 +02:00
Peter Van der Beken
a45851d286 Backed out changeset 5e867032abe5 (Fix for bug 490592 (Possible to GC way too much during shutdown due to XUL and XBL prototypes).) to try to fix Tshutdown regression. 2009-05-15 14:49:21 +02:00
Olli Pettay
a26f88717b Bug 461861, r=mrbkap, sr=jst
--HG--
extra : rebase_source : a5aea484f992785a3d67bb03d7fe074ce4f7f95a
2009-05-14 10:03:15 +03:00
Blake Kaplan
3bab9bf56c Bug 483672 - Give regular JS objects that have been reflected into C++ a security policy that follows the same-origin model. Also teach caps about "same origin" for these cases. r=jst sr=bzbarsky 2009-05-13 15:01:01 -07:00
Peter Van der Beken
b865be6ac9 Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly). r=bent, sr=jst.
--HG--
extra : rebase_source : 459f24ea980bf4cab29bc88115138f6ed5144e49
2009-05-07 11:19:36 -07:00
Robert Sayre
75bb19d6c8 Merge tracemonkey to mozilla-central. 2009-05-14 21:37:49 -04:00
Igor Bukanov
92f94e451c bug 491126 - sharing object map for non-native objects. r=brendan 2009-05-14 12:35:23 +02:00
L. David Baron
8c38aba811 Switch HTML mochitests from using MochiKit.js to packed.js. (Bug 490955) r=sayrer 2009-05-06 13:46:04 -07:00
Daniel Holbert
f91679f7b6 Bug 478438 trivial follow-up: remove unneeded 'typedef' keyword to fix compile warning. r=bnewman sr=mrbkap 2009-05-04 13:08:48 -07:00
timeless@mozdev.org
b8ace0c61f Bug 485868 - Remove code duplication in xpcjsruntime.cpp.
Fixing XPC_TRACK_DEFERRED_RELEASES build bustage (DEBUG_timeless)
2009-04-30 18:50:24 +02:00
timeless@mozdev.org
7147aba324 Bug 485868 - Remove code duplication in xpcjsruntime.cpp.
Fixing XPC_TRACK_DEFERRED_RELEASES build bustage (DEBUG_timeless)
2009-04-30 16:43:32 +03:00
Robert Sayre
33a65e9684 Merge tracemonkey to mozilla-central. 2009-04-28 20:33:18 -04:00
Olli Pettay
bdb6b5dd69 backout Bug 486990 2009-04-28 06:42:59 -07:00
Andreas Gal
a51f22dbdf Need an API exposed to control code cache size (474497, r=bent,brendan, sr=mrbkap). 2009-04-22 16:52:59 -07:00
Igor Bukanov
e4bc4e81cb bug 488995 - fixing error reporting for getter-only properties. r=mrbkap sr=jst 2009-04-22 12:39:08 +02:00
Blake Kaplan
38b83aefae Bug 485868 - Remove code duplication in xpcjsruntime.cpp. r=jst sr=brendan
--HG--
extra : rebase_source : 68dbe531ff1dca8b436ae938be763ff3921a1c9a
2009-04-17 16:52:15 -07:00
Blake Kaplan
da5b280a51 Bug 484180 - Don't call the class getter (especially not the scriptable helper!) for functions. r+sr=jst
--HG--
extra : rebase_source : 15e927e3a4281a0d5ffd54b528c9c90c76b7c6ee
2009-04-17 16:52:10 -07:00
Blake Kaplan
f4e59bf91a Bug 479560, r+sr=jst 2009-04-17 12:41:42 +01:00
Benjamin Smedberg
c2ec582f57 Fix the PYTHONPATH bits of bug 436062 in a not-hacky way by using a script which can set up the path and then forward to the real script we're trying to run, r=ted 2009-04-15 09:06:09 -04:00
Ben Newman
17a2ceeaca Bug 484107 - XPCSafeJSObjectWrapper allows regexp variables to be clobbered. r=mrbkap+sr=brendan 2009-04-14 19:32:17 -07:00
Arpad Borsos
07dc31e45f Bug 485782 - get rid of nsSupportsArray; r=sicking, sr=bsmedberg 2009-04-14 10:02:58 +02:00
Jason Orendorff
b5d4ba583e Bug 487676 - Nesting deep-aborting trace calls don't work. r=gal.
--HG--
extra : rebase_source : 436164485bd5e981e5ae8997eed2c371f3ecd77b
2009-04-09 18:07:00 -05:00
Peter Van der Beken
8a43b9d5cc Fix for bug 486585 ("ASSERTION: bad!" in XPCCallContext::XPCCallContext with feed in frame, gc). r/sr=mrbkap.
--HG--
extra : rebase_source : c0977ba2150e1369b8397c45839058f542510ffd
2009-04-06 14:58:45 +02:00
Blake Kaplan
7d0b0d0a03 Bug 477128 - Add a mochitest. 2009-04-02 15:01:15 -07:00
Benjamin Smedberg
0a08800d0e Bug 486158 - Fix the quickstub dependencies: when multiple targets are listed for a single rule, GNU make doesn't run the rule once and combine the targets: instead, it builds each target separately. This only really matters in parallel builds where targets may be evaluated in parallel. r=ted 2009-03-30 17:29:41 -04:00
timeless@mozdev.org
15a540ba45 Bug 491192 - fixing xpcshell error message; r=ted.mielczarek sr=cbiesinger 2009-05-12 03:38:31 +02:00
Peter Van der Beken
1ec8d2bfcb Fix for bug 490592 (Possible to GC way too much during shutdown due to XUL and XBL prototypes). r/sr=bz.
--HG--
extra : rebase_source : 8a05db1e4aab7dde3b38c7613488314dde05f163
2009-05-07 11:19:41 -07:00
Olli Pettay
034f889291 Bug 486990, move contextmenu listener to system event group, r=enn, sr=neil 2009-04-25 11:45:30 +03:00
Peter Van der Beken
ab53b05c94 Fix for bug 488561 (Typo in dom_quickstubs.qsconf). r=bent, sr=mrbkap.
--HG--
extra : rebase_source : f1647690e279aea0134fbe0915fe81ca5a238b21
2009-04-24 12:36:14 +02:00
Blake Kaplan
b977562fb5 Bug 475864 - Distinguish between "there is no JS code running" and "there are only native frames on the stack." Also clean up the rest of the code's handling of null fp. 2009-04-23 00:21:22 -07:00
Blake Kaplan
54734b9d0b Bug 475864 - Move native anonymous content checks into a wrapper so that quickstubs don't sidestep them. r=jst sr=bzbarsky 2009-04-23 00:21:22 -07:00
Blake Kaplan
c845651c78 Bug 489440 - Don't call into JS when asked if we support a wrapper cache. r+sr=peterv 2009-04-22 13:19:42 -07:00
Robert Sayre
150436c482 Merge tracemonkey to mozilla-central. 2009-04-22 13:49:32 -04:00
Robert O'Callahan
d0c58fb22f Bug 340571. Removing getBoxObjectFor from non-XUL documents. r+sr=bzbarsky
--HG--
extra : rebase_source : a57cb7c4ebee2149a2cdc009400c133d4904409d
2009-03-30 13:44:48 +13:00
Blake Kaplan
fb9e760b6d Fix style inconsistency I just introduced in bug 485840 2009-03-29 22:09:57 -07:00
Blake Kaplan
888c327f3d Bug 485840 - Protect against reentrancy in deferred releases. r+sr=roc 2009-03-29 22:03:07 -07:00
Neil Rashbrook
00a79cf581 Bug 485605 Clean up JS ID code and fix allocators r=mrbkap sr=jag 2009-03-29 12:47:06 +01:00
Blake Kaplan
ef339102cf Bug 473262 - We can get an interface but no member without idispatch. r+sr=jst 2009-03-25 13:08:01 -07:00
Neil Rashbrook
5eb16a8164 Fix bogus debug assertions from bug 484692 r+sr=peterv 2009-03-25 13:12:13 +00:00
Arpad Borsos
b8ff8885f8 Bug 474369 - get rid of nsVoidArray, xpconnect part; r+sr=mrbkap 2009-03-24 14:23:30 +01:00
Robert Sayre
150b7d8a28 Merge tracemonkey to mozilla-central. 2009-03-24 13:49:05 -04:00
Igor Bukanov
a8094a7903 bug 437325 - JSThread is no longer shared between JSRuntime instances. r=brendan 2009-03-24 13:07:35 +01:00
Peter Van der Beken
84c8c07ff1 Fix for bug 484692 (Set/clear cached wrappers from within XPConnect). r/sr=jst.
--HG--
extra : rebase_source : 3b0d0174919c8fdd027cde9ab9913c3dcb4052e1
2009-03-24 12:02:23 +01:00