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
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
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
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
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
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
Jan de Mooij
0dfc221719
Bug 1286159 - Clean up FinishOffThread* APIs for off-thread parsing. r=jonco
2016-07-19 09:19:54 +02:00
Jan de Mooij
f1ef5969c3
Bug 1274915. Switch JS::DescribeScriptedCaller to walk through saved frames when walking the JS stack. r=bzbarsky
2016-05-26 20:36:09 -04:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Tooru Fujisawa
19440c925e
Bug 1153978 - Part 2: Clear pending exception thrown from XDR related APIs when ignoring ReadCachedScript failure. r=bz
2016-03-22 16:48:38 +09:00
Benjamin Bouvier
e9e5750ced
Bug 1251308; r=luke
...
MozReview-Commit-ID: AqsMX4m7Qh9
2016-03-09 11:20:11 +01:00
Luke Wagner
786af33c6f
Bug 1239601 - improve the UniquePtr situation (r=jandem)
2016-01-15 18:26:20 -06:00
Yury Delendik
9d66bcc1d8
Bug 1218029 - Adds ScriptLoadHandler and implements OnIncrementalData callback. r=djvj
2015-12-01 08:00:58 -06:00
Yury Delendik
e2f6e193ca
Bug 1218029 - Adds IncrementalStreamLoader interface stubs. r=djvj
2015-11-30 08:54:11 -06:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Christoph Kerschbaumer
22c292db5a
Bug 1206149 - Use channel->AsyncOpen2() js/xpconnect/loader/mozJSSubScriptLoader.cpp (r=sicking)
2015-09-19 20:26:09 -07:00
Fabrice Desré
c4e3562ccd
Bug 1179102 - The async version of loadSubscript doesn't get the right JS version. r=bholley
2015-07-01 16:26:08 -07:00
Shu-yu Guo
6254376e59
Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley)
2015-06-21 11:49:57 -07:00
Ryan VanderMeulen
323bd259e9
Backed out 14 changesets (bug 1165486) for causing frequent crashes/asserts in automation.
...
Backed out changeset 1db9723f1617 (bug 1165486)
Backed out changeset 662ec8b0561e (bug 1165486)
Backed out changeset 97352c48fb98 (bug 1165486)
Backed out changeset 4143cca42cc7 (bug 1165486)
Backed out changeset 5abb37cb0495 (bug 1165486)
Backed out changeset 7b157964c572 (bug 1165486)
Backed out changeset 5c01ab1d9790 (bug 1165486)
Backed out changeset 0e00d8a3ca1d (bug 1165486)
Backed out changeset 5e88d482f5e8 (bug 1165486)
Backed out changeset 513bbca6fb6c (bug 1165486)
Backed out changeset 64fa28f0255a (bug 1165486)
Backed out changeset 7a404929c74c (bug 1165486)
Backed out changeset 1dc0d6adf6ed (bug 1165486)
Backed out changeset 381003ca79a3 (bug 1165486)
CLOSED TREE
2015-06-18 13:05:10 -04:00
Shu-yu Guo
949b384d4f
Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley)
2015-06-17 21:26:57 -07:00
Carsten "Tomcat" Book
0fc0c58d92
Backed out changeset 8031242fe5e5 (bug 1165486)
2015-06-16 10:45:29 +02:00
Shu-yu Guo
fbbcb38408
Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley)
2015-06-15 21:32:30 -07:00
Wes Kocher
1eb8d1d335
Backed out 12 changesets (bug 1165486) for windows spidermonkey failures CLOSED TREE
...
Backed out changeset ce3c302864bf (bug 1165486)
Backed out changeset f69852001c61 (bug 1165486)
Backed out changeset 06cc09729bf4 (bug 1165486)
Backed out changeset 52772afc023e (bug 1165486)
Backed out changeset 502ddf7d2268 (bug 1165486)
Backed out changeset b04ab7bd78af (bug 1165486)
Backed out changeset 53fcddbe4cfb (bug 1165486)
Backed out changeset 63bd369e5349 (bug 1165486)
Backed out changeset 1e35269a8062 (bug 1165486)
Backed out changeset e3c11d517e18 (bug 1165486)
Backed out changeset ccd90228daf6 (bug 1165486)
Backed out changeset eb11e655d223 (bug 1165486)
2015-06-15 18:07:52 -07:00
Shu-yu Guo
2d039b7d50
Bug 1165486 - Use JS::CompileForNonSyntacticScope in Gecko where we used to set polluted global scope. (r=bz, rs=bholley)
2015-06-15 17:38:01 -07:00
Fabrice Desré
98ca7e722f
Bug 1150106 - Async loadSubscript - Part 1, add async to loadSubscriptWithOptions r=bholley,mcrr8
2015-05-20 22:14:49 -07:00
Boris Zbarsky
a08d9d8ed6
Bug 679939 part 8. Drop the now-unused compileAndGo from CompileOptions. r=luke
2015-04-01 12:05:29 -04:00
Wes Kocher
21348ea148
Backed out 8 changesets (bug 679939) for test failures
...
Backed out changeset 4a1a45bc093a (bug 679939)
Backed out changeset 5336ae0fe919 (bug 679939)
Backed out changeset 4cbcb40e0ef4 (bug 679939)
Backed out changeset 3bc68cf4610b (bug 679939)
Backed out changeset ec2d863a3df9 (bug 679939)
Backed out changeset 4425a55312c6 (bug 679939)
Backed out changeset d3793e00b41f (bug 679939)
Backed out changeset 872edd1aedf7 (bug 679939)
2015-04-01 10:24:42 -07:00
Boris Zbarsky
f177c80b16
Bug 679939 part 8. Drop the now-unused compileAndGo from CompileOptions. r=luke
2015-04-01 12:05:29 -04:00
Jan de Mooij
c6596c5fa8
Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff
2015-03-28 23:22:11 +01:00
Phil Ringnalda
1a1c158706
Backed out changeset 0c030f97a04f (bug 1144366) for being on top of patches being backed out
...
CLOSED TREE
2015-03-28 10:39:56 -07:00
Jan de Mooij
369ef1b850
Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff
2015-03-28 12:08:37 +01:00
Boris Zbarsky
c26813e6f3
Bug 1144743 part 3. Set hasPollutedGlobalScope when we're compiling scripts we know will be executed with a non-global scope without cloning them. r=luke
2015-03-20 00:34:07 -04:00
Boris Zbarsky
6535e4ba5f
Bug 1143793 part 6. Drop the obj argument of JS::Compile. r=luke
...
This is technically a behavior change for the shell's disfile() function, but
I really doubt anyone is doing disfile.call(someObj).
2015-03-19 10:13:34 -04:00
Boris Zbarsky
081c4e9bd1
Bug 1097987 part 6. Require callers of JS_ExecuteScript to either use the global as the scope or pass in an explicit scopechain. r=waldo
2015-03-14 01:36:16 -04:00