Tom Tromey
134358e46e
Bug 1334278 - change JS_smprintf to return UniqueChars; r=froydnj
...
This changes JS_smprintf to return UniqueChars, rather than relying on
manual memory management.
MozReview-Commit-ID: ENjQJODYdD1
2017-03-03 15:10:11 -07:00
Wes Kocher
e66b36fd81
Merge inbound to m-c a=merge
2017-04-19 17:10:04 -07:00
Andrew McCreight
2254360dc9
Bug 1357828 - Remove B2G-specific code from mozJSComponentLoader::ReallyInit(). r=mrbkap
...
MozReview-Commit-ID: I0h6Y9VQETJ
2017-04-19 10:33:04 -07:00
Kris Maglione
959e20ef00
Bug 1356810: Use noScriptRval option by default for loadSubScript. r=billm
...
MozReview-Commit-ID: 50QVvrG4lzV
2017-04-15 09:32:34 -07:00
Andrew McCreight
3ce95981b4
Bug 1356799, part 4 - Remove unused argument to ReadScript. r=mrbkap
...
MozReview-Commit-ID: I5Jf0Fan7VN
2017-04-14 16:43:08 -07:00
Andrew McCreight
4bc465b680
Bug 1356799, part 3 - Handlify the target argument to ReadScript{,Async}. r=mrbkap
...
MozReview-Commit-ID: GOodGQ647qI
2017-04-14 16:35:34 -07:00
Andrew McCreight
dcf2af66d9
Bug 1356799, part 2 - Don't use JS:: for handle types in subscript loader. r=mrbkap
...
Also, be consistent with the rest of the code and use a handle
typedef in one place.
MozReview-Commit-ID: KY3cnLemoUl
2017-04-15 06:47:07 -07:00
Andrew McCreight
5dc71271b3
Bug 1356799, part 1 - Use one line per arg for methods with many args in subscript loader. r=mrbkap
...
MozReview-Commit-ID: BPZp6I0LSBH
2017-04-15 06:44:35 -07:00
Andrew McCreight
6b953d11e8
Bug 1356666, part 4 - Use handles as arguments in mozJSSubscriptLoader. r=mrbkap
...
MozReview-Commit-ID: 9fClU6BIWfT
2017-04-14 14:38:51 -07:00
Andrew McCreight
4001c0589d
Bug 1356666, part 3 - Mark some functions in mozJSSubscriptLoader static. r=mrbkap
...
MozReview-Commit-ID: 7JsyR6B84Gz
2017-04-14 14:33:17 -07:00
Andrew McCreight
e96634ee68
Bug 1356666, part 2 - Fix some style issues in mozJSSubScriptLoader. r=mrbkap
...
mSystemPrincipal is an nsCOMPtr so it does not need to be explicitly
initialized.
Fields don't have to be lined up.
Empty function bodies don't need to be commented as such.
The blank line at the start of mozJSComponentLoader.cpp prevents Emacs
from using the mode line.
MozReview-Commit-ID: 7Az1x8jmxTI
2017-04-14 14:13:19 -07:00
Andrew McCreight
30ea73f258
Bug 1356666, part 1 - Rename target_obj to targetObj in mozJSSubscriptLoader. r=mrbkap
...
MozReview-Commit-ID: 89WugjhzPLk
2017-04-14 14:10:40 -07:00
Andrew McCreight
2644f2ca46
Bug 1353580 - Remove support for !HAVE_PR_MEMMAP in mozJSComponentLoader. r=mrbkap
...
This was only ever used for BeOS and OS2, which have likely long ago
stopped working for other reasons.
MozReview-Commit-ID: AT1jNEB1ydY
2017-04-04 16:53:56 -07:00
David Teller
9b479e9e2c
Bug 1305950 - Extend XPCOMUtils.defineLazyPreferenceGetter to be informed upon preference change. r=billm
...
This is a pretty common use case of preferences.
MozReview-Commit-ID: 7tkdylPZxpY
2016-09-28 16:33:20 +02:00
Eric Rahm
1e0c3b8864
Bug 1351831 - Build more xpconnect code in unified sources. r=bholley
...
These files were being excluding because we thought they used plarena.h, but it
turns out they did not. A few tweaks needed to be made to clarify whether we
wanted to use mozilla::UniquePtr or js::UniquePtr.
MozReview-Commit-ID: 1su5dO3rR0T
2017-03-31 15:21:27 -07:00
Ryan VanderMeulen
d2be944949
Backed out changeset 42ea3fb4b694 (bug 1351831) for Windows bustage.
2017-03-31 14:58:03 -04:00
Eric Rahm
f5ba87ac9f
Bug 1351831 - Build more xpconnect code in unified sources. r=bholley
...
These files were being excluding because we thought they used plarena.h, but it
turns out they did not. A few tweaks needed to be made to clarify whether we
wanted to use mozilla::UniquePtr or js::UniquePtr.
MozReview-Commit-ID: 1su5dO3rR0T
2017-03-31 11:00:11 -07:00
Phil Ringnalda
cb0c00c5c1
Backed out 2 changesets (bug 1351831, bug 1351820) for Windows build bustage
...
CLOSED TREE
Backed out changeset 91c2f1592df1 (bug 1351831)
Backed out changeset f825bdbb2ece (bug 1351820 )
2017-03-30 19:21:06 -07:00
Eric Rahm
ba249b4bf0
Bug 1351831 - Build more xpconnect code in unified sources. r=bholley
...
These files were being excluding because we thought they used plarena.h, but it
turns out they did not. A few tweaks needed to be made to clarify whether we
wanted to use mozilla::UniquePtr or js::UniquePtr.
MozReview-Commit-ID: 1su5dO3rR0T
2017-03-30 18:32:18 -07:00
Kris Maglione
3118688b94
Bug 1349989: Correctly handle errors for OMT-compiled scripts. r=shu
...
MozReview-Commit-ID: 3FpoUmu9ijI
2017-03-23 22:13:07 -07:00
Kris Maglione
4899bf6f1f
Bug 1333990: Follow-up: Return before wrapping result value on error. r=bz
...
MozReview-Commit-ID: AwGVr3gjzd0
2017-03-17 14:34:55 -07:00
Kris Maglione
8006ffc56d
Bug 1333990: Follow-up: Use safer conversion functions when creating error message JS strings. r=bz
...
MozReview-Commit-ID: FimoWFIgUxL
2017-03-17 16:53:04 -07:00
Kris Maglione
9c4ce2fcac
Bug 1333990: Follow-up: Add cycle collection and comments where unnecessary. r=bz
...
MozReview-Commit-ID: 70omvafFFFH
2017-03-17 13:54:32 -07:00
Kris Maglione
c7bc8231f7
Bug 1333990: Part 1a - Add an async script pre-loading utility. r=billm,shu
...
MozReview-Commit-ID: 4vJF2drLeHS
2017-03-16 19:10:40 -07:00
Andrew McCreight
4abe3378d0
Bug 1344527 - Give up in ReadScriptAsync if we can't create a promise. r=bholley
...
MozReview-Commit-ID: Hq4vJZmfDpc
2017-03-09 09:24:28 -08:00
Jan Varga
2e688f6e8b
Bug 1311057 - Part 1: Remove support for packaged apps from asmjscache; r=luke
2017-03-06 18:38:40 +01:00
Sylvestre Ledru
d808465292
no bug - Fix a misleading indentation
...
MozReview-Commit-ID: 4yvVRRxoxC8
2017-02-19 14:27:57 +01:00
Sylvestre Ledru
4c790b3a90
Bug 1338086 - Remove useless else blocks in order to reduce complexity in js/ r=bbouvier
...
MozReview-Commit-ID: Giwp0K1YoBH
2017-02-14 15:50:56 +01:00
Brian Hackett
672894a957
Bug 1337112 - Remove links from JSRuntime to its single context and zone group, r=jandem,jonco.
2017-02-10 16:47:50 -07:00
Brian Hackett
6a2580c190
Bug 1324002 - Mark atoms separately in each zone, r=jonco,mccr8,peterv.
2017-01-30 06:31:47 -07:00
Olli Pettay
3898f7d882
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
2017-01-03 21:47:55 +02:00
Shu-yu Guo
314651e95b
Bug 1315592 - Handle JS compilation errors in the async subscript loader. (r=bholley)
2016-12-02 17:36:42 -08:00
Tom Schuster
9dbf6d683f
Bug 755821 - Parse arguments of Function constructor properly. r=shu
2016-10-15 11:47:00 +09:00
Ryan VanderMeulen
531ffb06e2
Merge autoland to m-c on a CLOSED TREE. a=merge
2016-10-21 17:12:27 -04:00
Tom Tromey
fad2c810d6
Bug 553032 - use MOZ_FORMAT_PRINTF in js; r=evilpie
...
MozReview-Commit-ID: DD3DJRkOxmC
2016-10-11 12:44:40 -06:00
Sebastian Hengst
ac4e31ada2
Backed out changeset 2bfd163f23f9 (bug 553032)
2016-10-19 18:29:36 +02:00
Tom Tromey
371584f1db
Bug 553032 - use MOZ_FORMAT_PRINTF in js; r=evilpie
...
MozReview-Commit-ID: DD3DJRkOxmC
2016-10-11 12:44:40 -06:00
Nicolas B. Pierron
be7a3936c3
Bug 1286009 - Distinguish failure reasons of JS_{En,De}codeScript. r=luke
2016-10-12 12:13:22 +00:00
Jan de Mooij
3e15c0a397
Bug 1303754 - Don't use lazy source code if the startup cache is not available (i.e. content processes). r=bholley
2016-10-12 11:51:02 +02:00
Andi-Bogdan Postelnicu
f23965a760
Bug 1308884 - clean return from functions that use variable number of arguments. r=bholley
...
MozReview-Commit-ID: JXvNwPJyOvb
2016-10-10 14:31:16 +03:00
Tooru Fujisawa
0d9fa152d8
Bug 1289050 - Part 3.1: Add mozJSComponentLoader::Location and use UTF8 variant of JS_ReportError in mozJSComponentLoader. r=jwalden
2016-09-30 12:34:44 +09:00
Tooru Fujisawa
4de1d48315
Bug 1289050 - Part 2.1: Use JS_ReportErrorLatin1 in mozJSComponentLoader::LoadModule. r=jwalden
2016-09-30 12:34:43 +09:00
Nicolas B. Pierron
06c4de4a43
Bug 1288104 part 1 - Move XDR buffer to the caller. r=luke
...
Add a typedef on top of mozilla::Vector to define the TranscodeBuffer which owns
the encoded content of a Script / Function.
This modification renames JS_EncodeScript, into JS::EncodeScript, and change its
prototype to have a JSContext, a TranscodeBuffer, and a Handle on a script that
we want to encode.
Similar modifications are made to JS_EncodeInterpretedFunction, and the Decode
variant of these.
2016-10-20 09:44:33 +00:00
Jan de Mooij
5fffa22a11
Backed out changeset aad183efb09a (bug 1303754) for regressions.
2016-09-23 09:50:47 +02:00
Jan de Mooij
c30490800b
Bug 1303754 - Don't use the lazySource option for JSMs, so we can benefit from syntax parsing. r=bholley
2016-09-22 10:15:36 +02:00
Jan de Mooij
21f6f04f90
Bug 1302448 part 2 - Rename XPCJSRuntime to XPCJSContext. r=mrbkap
2016-09-14 15:48:17 +02:00
Nicholas Nethercote
d2598a3a5e
Bug 1297300 - Add missing checks to GetSpec() calls in caps/ and js/. r=mrbkap.
...
This required making GetScriptLocation() fallible.
2016-08-30 14:22:04 +10:00
Shu-yu Guo
45f2e559d8
Bug 1263355 - Rewrite the frontend: bindings. (r=jorendorff,Waldo)
2016-08-25 01:28:47 -07:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Jan de Mooij
bfe36450fc
Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence
2016-08-11 14:39:23 +02:00