Chris Peterson
d126c3c24f
Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem
2014-07-21 21:43:21 -07:00
Bobby Holley
87c9e0954f
Bug 1062077 - Remove now-no-op error reporter munging in mozJSSubScriptLoader.cpp. r=bz
...
In the past this might theoretically have switched us from
NS_ScriptErrorReporter to xpc::SystemErrorReporter, but those have now been
merged.
2014-09-08 16:30:12 -07:00
Ehsan Akhgari
4966506563
Bug 1060977 - Fix more bad implicit constructors in xpconnect; r=smaug
2014-08-31 21:06:35 -04:00
Bobby Holley
e70ddb7476
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
30ae466592
Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage.
2014-08-14 17:23:10 -04:00
Bobby Holley
3e4d70a655
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 12:54:34 -07:00
Seth Fowler
c617ac43cc
Bug 913586 (Part 6) - Update Maybe users in js. r=luke
...
--HG--
extra : rebase_source : c5d23a7874de49e61b43f79b8eda744db0523c6e
2014-08-13 15:42:00 -07:00
Bob Owen
3f8ae37d6e
Bug 1047509 - Part 9: Remove final uses of mozJSComponentLoader's own JSContext and tidy up. r=bholley
2014-08-07 19:36:31 +01:00
Bob Owen
d2c8747c63
Bug 1047509 - Part 8: Add an AutoJSAPI into mozJSComponentLoader::ImportInto. r=bholley
2014-08-08 13:52:16 +01:00
Bob Owen
09d975cd3e
Bug 1047509 - Part 7: Change mozJSComponentLoader::LoadModule to use AutoJSAPI and SafeJSContext instead of JSCLContextHelper and its own JSContext. r=bholley
2014-08-07 19:28:16 +01:00
Bob Owen
45bacdcb69
Bug 1047509 - Part 6: Change mozJSComponentLoader::ObjectForLocation to use AutoJSAPI and SafeJSContext instead of JSCLContextHelper and its own JSContext. r=bholley
2014-08-08 13:30:54 +01:00
Bob Owen
2b80218acb
Bug 1047509 - Part 5: Change mozJSComponentLoader::PrepareObjectForLocation to take JSContext* instead of JSCLContextHelper&. r=bholley
2014-08-07 19:16:47 +01:00
Nicholas Nethercote
a7cf4142b4
Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
...
* * *
imported patch rm-dummy-params
--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Jan de Mooij
b1697f7931
Bug 1031529 part 3 - Step defining JS_THREADSAFE, remove --disable-threadsafe. r=glandium
2014-07-24 11:56:45 +02:00
Mike Hommey
bc5d6801bb
Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal
2014-07-23 08:37:51 +09:00
Nicholas Nethercote
523362fec4
Bug 1039162 (attempt 2) - Don't use |for each| in XPCOMUtils.jsm. r=mrbkap.
2014-07-16 22:45:29 -07:00
Carsten "Tomcat" Book
ae1ff01d28
Backed out changeset 33ff09852b0a (bug 1039162) for ics emulator opt/debug test failures
2014-07-17 09:18:16 +02:00
Nicholas Nethercote
c6a865ac70
Bug 1039162 - Don't use |for each| in XPCOMUtils.jsm. r=mrbkap.
...
|for ... each| loops create an Iterator object each time they execute. They're
also an E4X hangover. Converting them to vanilla arrays avoids the creation of
almost 6,000 Iterator objects when starting up B2G, mostly due to makeQI().
--HG--
extra : rebase_source : f3a3fe2d64a045dacf70461611d9a0b72a38a210
2014-07-16 22:45:29 -07:00
Jan de Mooij
edbd6779df
Bug 1034627 part 2 - Fix xpconnect Dump and Print functions to work with Latin1 strings and nursery strings. r=bholley
2014-07-10 17:36:33 +02:00
Steve Fink
e0b7644d4e
Bug 1022773 - Switch all JS Compile functions to use MutableHandle, r=terrence
...
--HG--
extra : rebase_source : e7542a31e4818e6beafd2b1dab096606370534bb
2014-06-25 15:35:35 -07:00
Steve Fink
7b06fcf9bd
Bug 1022773 - Resolve hazard by switching Compile to MutableHandle, r=terrence,smaug,bholley
...
--HG--
extra : rebase_source : a6f4eb9138688c09bce15f36ffc0bdb5b6e3dc5f
2014-06-11 17:38:22 -07:00
Andrea Marchesini
6ec27357af
Bug 876683 - DOMFile/DOMBlob refactoring, r=ehsan, r=bent
2014-06-26 09:47:44 -07:00
Jim Blandy
7e20285e70
Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
...
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):
- Never set the buffer's mode.
Years ago, Emacs did not have a good JavaScript mode, so it made sense
to use Java or C++ mode in .js files. However, Emacs has had js-mode for
years now; it's perfectly serviceable, and is available and enabled by
default in all major Emacs packagings.
Selecting a mode in the -*- file variable line -*- is almost always the
wrong thing to do anyway. It overrides Emacs's default choice, which is
(now) reasonable; and even worse, it overrides settings the user might
have made in their '.emacs' file for that file extension. It's only
useful when there's something specific about that particular file that
makes a particular mode appropriate.
- Correctly propagate settings that establish the correct indentation
level for this file: c-basic-offset and js2-basic-offset should be
js-indent-level. Whatever value they're given should be preserved;
different parts of our tree use different indentation styles.
- We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
Remove tab-width: settings, at least in files that don't contain tab
characters.
- Remove js2-mode settings that belong in the user's .emacs file, like
js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Benoit Jacob
27fb6960a5
Bug 1028588 - Fix dangerous public destructors in js/xpconnect - r=bholley
2014-06-23 14:49:08 -04:00
Bill McCloskey
a461ef47a5
Bug 990729 - Add compartmentPerAddon option for XUL overlays (r=bholley)
2014-06-21 11:55:15 -07:00
Bobby Holley
b38a3a001d
Bug 1026860 - Remove mThisObjects and use the function parent instead. r=luke,khuey
2014-06-18 22:36:42 -07:00
Jim Chen
809db03f75
Bug 1013326 - Move script principals APIs to jsfriendapi; r=luke
2014-06-06 18:39:40 -04:00
Carsten "Tomcat" Book
886c128123
merge fx-team to mozilla-central
2014-05-22 15:17:20 +02:00
Gijs Kruitbosch
1dae1fff12
Bug 1012750 - nitfix, DONTBUILD because immaterial, rs=mak/firebot
2014-05-22 00:48:19 +01:00
Gijs Kruitbosch
08c675f07b
Bug 1012750 - defineLazyModuleGetter should log failing URL if there was an error loading, r=mak
2014-05-19 18:12:49 +01:00
Birunthan Mohanathas
0e6f3a6562
Bug 869836 - Part 3: Use Append('c')
instead of AppendLiteral("c")
. r=ehsan
2014-05-22 06:48:51 +03:00
Girish Sharma
5b1b3f4f0c
Bug 1004487 - Add Cu.isModuleLoaded method to know if a resource has been loaded via Cu.import, r=bholley
2014-05-15 23:52:45 +05:30
Bobby Holley
6b859b8e96
Bug 1008006 - Use a helper to avoid repeated computations of various dependencies. r=gabor
2014-05-12 14:37:46 -07:00
Bobby Holley
d0fda7850b
Bug 1006629 - Remove GetCalleeWrapper. r=gabor
2014-05-06 23:17:44 -07:00
Alexandre Poirot
d975eff099
Bug 961777 - Disable reuseGlobal on Mulet. r=bholley
2014-05-05 06:53:00 -04:00
Bobby Holley
2645da308a
Bug 1004295 - Hard abort if we try to unload modules when loader global reuse is enabled. r=mccr8
2014-05-01 11:02:59 -07:00
Nathan Froyd
0d23973e46
Bug 1003309 - remove JS component loader construction from mozJSSubScriptLoader; r=bholley
2014-04-29 13:28:23 -04:00
Rodrigo Rodriguez Jr.
281223c92e
Bug 952650 (part 2) - Remove JSVAL_IS_VOID. r=evilpies.
...
--HG--
extra : rebase_source : 0ae81cd69dc13d944927de906abc656536b4d425
2014-04-27 19:32:05 -07:00
Birunthan Mohanathas
5f1fde8824
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Birunthan Mohanathas
c48b86b0c6
Bug 866289 - Make mode lines consistent in js/xpconnect/ for 4 space indented files. r=Ms2ger
2014-04-03 07:58:00 -04:00
Ben Kelly
53eaab4b39
Bug 987556 Part 10 Use JS::SourceBufferHolder in mozJSSubScriptLoader. r=bz
2014-04-25 10:11:57 -04:00
Jeremy Morton
311814b5b8
Bug 998291 - Allow for relatively-loaded modules to be loaded into a given scope. r=bsmedberg
2014-04-22 23:37:26 +01:00
Bobby Holley
bef3900938
Bug 990353 - Make discardSource a Sandbox option and use it (even in Desktop) for the precompilation scope. r=luke
2014-04-22 14:08:29 -07:00
Bobby Holley
9766fa5987
Bug 990353 - Make the decision to discard source entirely per-global, rather than per-script. r=luke
...
This is effectively a policy decision based on the kind of code we expect to be
running somewhere. This is in contrast to lazy source, which is often a practical
per-script consideration of whether or not we can retrieve the source if requested.
More importantly, tracking this information on the global is much easier to
get right than tracking it on the script.
2014-04-22 14:08:27 -07:00
Bobby Holley
598e9fa905
Bug 993772 - Stop serializing principals along with scripts. r=mrbkap
...
The principal of a script is determined by the compartment these days, so this
field is useless.
2014-04-20 11:48:13 -07:00
Fabrice Desré
b6c050f2c2
Bug 965970 - Add support to compile asm.js code at install/update time r=luke,bholley,marco
2014-04-17 22:03:03 -07:00
Terrence Cole
581c606391
Bug 959787 - Handlify JS_DefineProperty; r=Waldo, r=bz
...
--HG--
extra : rebase_source : 87991ed47ed071550af4e4125eea54a66fdb0071
2014-01-21 18:11:17 -08:00
Jon Coppeard
173bd25321
Bug 993413 - Remove use of JS_Add/Remove*Root in favour of JS::PersistentRooted where possible r=terrence r=bz r=bholley
2014-04-16 09:47:53 +01:00
Bobby Holley
1383b4163b
Bug 980537 - Only store FakeBackstagePass instances in mThisObjects. r=khuey
2014-04-06 12:32:39 -07:00
Jon Coppeard
fb6ccb11db
Bug 959787 - Handlify JS_ExecuteScript and JS::Evaluate APIs r=terrence r=bz
2014-04-01 11:34:39 +01:00