Commit Graph

263 Commits

Author SHA1 Message Date
Andrea Marchesini
e25e980526 Bug 876683 - DOMFile/DOMBlob refactoring, r=ehsan, r=bent 2014-06-26 09:47:44 -07:00
Jim Blandy
4d6a633bba 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
083f0e0cc1 Bug 1028588 - Fix dangerous public destructors in js/xpconnect - r=bholley 2014-06-23 14:49:08 -04:00
Bill McCloskey
78c2618e3d Bug 990729 - Add compartmentPerAddon option for XUL overlays (r=bholley) 2014-06-21 11:55:15 -07:00
Bobby Holley
6e05608e3e Bug 1026860 - Remove mThisObjects and use the function parent instead. r=luke,khuey 2014-06-18 22:36:42 -07:00
Jim Chen
3b5c74e922 Bug 1013326 - Move script principals APIs to jsfriendapi; r=luke 2014-06-06 18:39:40 -04:00
Carsten "Tomcat" Book
c3b1f0e8ad merge fx-team to mozilla-central 2014-05-22 15:17:20 +02:00
Gijs Kruitbosch
ec807623dd Bug 1012750 - nitfix, DONTBUILD because immaterial, rs=mak/firebot 2014-05-22 00:48:19 +01:00
Gijs Kruitbosch
b21f1e7aae 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
411a8639b4 Bug 869836 - Part 3: Use Append('c') instead of AppendLiteral("c"). r=ehsan 2014-05-22 06:48:51 +03:00
Girish Sharma
50fa2456f1 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
9086fb6ef0 Bug 1008006 - Use a helper to avoid repeated computations of various dependencies. r=gabor 2014-05-12 14:37:46 -07:00
Bobby Holley
e6386cc6a0 Bug 1006629 - Remove GetCalleeWrapper. r=gabor 2014-05-06 23:17:44 -07:00
Alexandre Poirot
d7778dca33 Bug 961777 - Disable reuseGlobal on Mulet. r=bholley 2014-05-05 06:53:00 -04:00
Bobby Holley
30f4f66d5d 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
097f6cd142 Bug 1003309 - remove JS component loader construction from mozJSSubScriptLoader; r=bholley 2014-04-29 13:28:23 -04:00
Rodrigo Rodriguez Jr.
ce08f289ef 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
ff8ce9bd42 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
eaba6c5a37 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
8d277b1250 Bug 987556 Part 10 Use JS::SourceBufferHolder in mozJSSubScriptLoader. r=bz 2014-04-25 10:11:57 -04:00
Jeremy Morton
efed059bea 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
415f46fd09 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
91dd463b40 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
61d6055556 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é
140000dc46 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
c97877c686 Bug 959787 - Handlify JS_DefineProperty; r=Waldo, r=bz
--HG--
extra : rebase_source : 87991ed47ed071550af4e4125eea54a66fdb0071
2014-01-21 18:11:17 -08:00
Jon Coppeard
2a5c843ea4 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
8daf887f60 Bug 980537 - Only store FakeBackstagePass instances in mThisObjects. r=khuey 2014-04-06 12:32:39 -07:00
Jon Coppeard
bb2e7cbea1 Bug 959787 - Handlify JS_ExecuteScript and JS::Evaluate APIs r=terrence r=bz 2014-04-01 11:34:39 +01:00
Dave Townsend
fdf690adfd Bug 986757: Defer firing OnNewGlobalObject until after the __URI__ property is set for JS Modules. r=bholley 2014-03-25 16:33:06 -07:00
Nathan Froyd
5aa819df66 Bug 984985 - avoid a useless stat call when loading JS components; r=bholley 2014-03-18 12:49:00 -04:00
Luke Wagner
731533e709 Bug 980180 - remove principals as an argument to compilation, part 1 (r=terrence)
--HG--
extra : rebase_source : 8bf0ff6974870d6772021aafa88dd8fd5132fc70
2014-03-06 16:28:05 -06:00
Bobby Holley
74a5406c5a Bug 977340 - Use an AutoJSContext when clearing modules. r=gabor 2014-03-04 10:05:08 -08:00
Jeff Walden
5a7db86560 Bug 972132 - Convert JS::EmptyValueArray to JS::HandleValueArray::empty(). r=terrence
--HG--
extra : rebase_source : 58b87df07373a7811136682b128aea67f04446cd
2014-02-12 23:38:36 -08:00
Luke Wagner
4c59cb92eb Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley)
--HG--
extra : rebase_source : 58387ce3e4c49d3140b92b84bf3577fc6584820e
2014-02-25 09:43:14 -06:00
Jon Coppeard
8136579d75 Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz 2014-02-13 15:33:04 +00:00
Masatoshi Kimura
9306836991 Backed out changeset d7d447cac91b (bug 969762) for tp5 regression. 2014-02-12 06:01:29 +09:00
Jon Coppeard
60baf94ae8 Bug 965830 - Convert use of JS_CallFunction and related APIs uses to HandleValueArray r=terrence r=smaug 2014-02-11 10:59:16 +00:00
Ehsan Akhgari
b870bb3fe9 Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
Masatoshi Kimura
84b0ee5c63 Bug 969762 - Support non-ASCII dump() messages on Windows. r=jimm 2014-02-11 05:50:16 +09:00
Jon Coppeard
50e1f34d5a Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Carsten "Tomcat" Book
2a6caad1f0 Backed out changeset e2c75ec7f3d4 (bug 959787) for breaking b2g builds on a CLOSED TREE 2014-01-31 12:11:23 +01:00
Jon Coppeard
858370c616 Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Jon Coppeard
e5c29b7f9d Bug 959787 - Handlify some misc JS APIs r=sfink r=smaug 2014-01-29 10:00:40 +00:00
Zack Weinberg
77460d628b Bug 933885 part 1: make xpcshell dump() and print() handle non-ASCII characters correctly. r=bz 2014-01-25 23:27:11 -05:00
Tom Schuster
57f15ea1e2 Bug 958119 - Some cleanup for XPConnect. r=gabor 2014-01-22 18:50:32 +01:00
Terrence Cole
10295353cd Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 4; r=sfink,r=bz
--HG--
extra : rebase_source : 8e1ff566f47795cd82e3f4c0a6fa37b88e7847b4
2014-01-17 10:08:51 -08:00
Terrence Cole
f017da90d9 Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Andrew McCreight
f0ad35822f Bug 959484 - de-THREADSAFE XPConnect. r=bholley 2014-01-16 08:49:26 -08:00
Tom Schuster
e64b35e141 Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence 2014-01-09 18:39:36 +01:00