Boris Zbarsky
10bf49ff92
Bug 1172246. Make sure CallSetup's handling of exceptions it wants to deal with itself works even when the callable is a JSNative that uses the JS_Report*Error APIs instead of throwing exceptions in the usual way. r=bholley
2015-06-08 16:16:27 -04:00
Boris Zbarsky
44be0e2b6a
Back out bug 1172246 because of mochitest-JP bustage. Who needs tests that we care about running on try anyway?
2015-11-20 18:00:27 -05:00
Boris Zbarsky
72da573d4d
Bug 1172246. Make sure CallSetup's handling of exceptions it wants to deal with itself works even when the callable is a JSNative that uses the JS_Report*Error APIs instead of throwing exceptions in the usual way. r=bholley
2015-06-08 16:16:27 -04:00
Jan de Mooij
eae167fd59
Bug 1125423 part 2 - Rename stopAtOuter argument to *Unwrap functions to stopAtWindowProxy. r=bz
2015-11-06 19:03:52 +01: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
Bobby Holley
53f8074964
Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz
2015-09-24 14:02:41 -07:00
Tom Tromey
5acaf7f263
Bug 1148593 - Create async stack in callback objects. r=bz, r=fitzgen
2015-07-24 07:01:00 -04:00
Ryan VanderMeulen
99eb81305b
Backed out changesets fa9fe193778f and 3eaf867930dd (bug 1148593) for test_async_setTimeout_stack.html and test_async_setTimeout_stack_across_globals.html failures.
2015-07-17 12:37:24 -04:00
Tom Tromey
d5e041af26
Bug 1148593 - Create async stack in callback objects. r=bz, r=fitzgen
2015-07-17 07:48:00 -04:00
Boris Zbarsky
c1f194a08d
Bug 1180525. Run callbacks whose window is no longer current as long as its document is the active document in the browsing context. r=bholley
...
The distinction only matters when document.open() makes a different
window current without changing the active document.
2015-07-07 17:38:07 -04:00
Boris Zbarsky
25376f934f
Bug 1173593. Make it possible to throw TypeError (or, in fact, any other Error from the content compartment) from js-implemented webidl. r=bholley
2015-06-15 20:09:36 -04:00
Olli Pettay
8c5ee7d3e8
Bug 1149891, backout bug 1081038 because it made us run mutation observer callbacks against the spec, part 2, r=bholley
2015-05-29 19:11:09 +03:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Jim Blandy
f94dd3b1df
Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
2015-04-08 21:23:48 -04:00
Eddy Bruël
ee4da668fb
Bug 1092102 - Implement a WorkerDebuggerGlobalScope;r=khuey
2015-03-04 00:51:53 +01:00
Boris Zbarsky
fa61b85fe1
Bug 1107953 part 1. Change the invariants around aCompartment in CallSetup to allow passing it even when the exception handling mode is eRethrowExceptions. r=bholley
2015-01-15 17:39:01 -05:00
Boris Zbarsky
b438a3bd36
Bug 1107592 part 2. Allow chrome JS to directly throw content DOMExceptions that will propagate out to the web script. r=peterv
2015-01-02 17:08:33 -05:00
Gabor Krizsanits
a75febb214
Bug 1081038 - part2: Removing nsAutoMicroTask where we have AutoEntryScript. r=bholley
2014-11-14 16:46:26 +01:00
Carsten "Tomcat" Book
5e52e24113
Backed out changeset 9243c59c3e56 (bug 1081038)
2014-11-13 11:48:00 +01:00
Gabor Krizsanits
6eaf9f4cb9
Bug 1081038 - part 2: Removing nsAutoMicroTask where we have AutoEntryScript. r=bholley
2014-11-13 09:50:15 +01:00
Bobby Holley
8ff0a8449b
Bug 1070696 - Rename xpc::GetNativeForGlobal to xpc::NativeGlobal and make it accept non-global JSObjects. r=smaug
...
The method is infallible, and making the callers invoke
js::GetGlobalForObjectCrossCompartment manually is dumb.
2014-09-21 21:31:53 +02:00
Bobby Holley
b2b763cb29
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
df43fcf12d
Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage.
2014-08-14 17:23:10 -04:00
Bobby Holley
10dec58cfc
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 12:54:34 -07:00
Seth Fowler
ea2c64d748
Bug 913586 (Part 4) - Update Maybe users in dom. r=bz
2014-08-13 15:39:41 -07:00
Boris Zbarsky
a90f9e668f
Bug 1019149. For calls into JS-implemented WebIDL, don't check whether it's OK to run the script (it is) and whether the script lives in a window (it doesn't). r=bholley
2014-06-03 11:38:37 -04:00
Boris Zbarsky
246836714b
Bug 1019091. Do less work in the CallSetup destructor when we have no exception. r=bholley
2014-06-03 11:38:37 -04:00
Terrence Cole
d0ab3e3410
Bug 1013531 - Clarify the naming of the rooting analysis supression guards; r=sfink
2014-05-28 17:34:36 -07:00
Ryan VanderMeulen
02a1779237
Backed out changeset 0d61bcf08362 (bug 1013531) for bustage.
...
CLOSED TREE
2014-05-29 13:26:55 -04:00
Terrence Cole
3756031f7e
Bug 1013531 - Clarify the naming of the rooting analysis supression guards; r=sfink
2014-05-28 17:34:36 -07:00
Nick Lebedev
73bcee2ac4
Bug 998002 - Rename nsContentUtils::Get{Subject,Object}Principal to nsContentUtils::{Subject,Object}Principal. r=bholley
2014-05-13 11:58:00 +02:00
Boris Zbarsky
7cd57a86a4
Bug 978618. Fix error reporting for unintended XPConnect exceptions thrown by JS-implemented webidl to actually work correctly. r=bholley
2014-03-05 08:32:27 -05:00
Bobby Holley
923c529636
Bug 975419 - Trace the Incumbent Global from a CallbackObject (but check it too, just to be safe). r=bz,mccr8
2014-03-03 08:53:42 -08:00
Bobby Holley
726a217158
Bug 968335 - Implement GetCallerPrincipalOverride. r=bz
2014-02-14 22:36:44 -08:00
Phil Ringnalda
e9a6a87759
Back out 4fc776ee6852:6a0ebe4ddd01 (bug 968335) and e7d697004921 (bug 923904) for b2g emulator build bustage
...
CLOSED TREE
2014-02-14 18:35:30 -08:00
Bobby Holley
dc70024a38
Bug 968335 - Implement GetCallerPrincipalOverride. r=bz
2014-02-14 16:13:38 -08:00
Olli Pettay
e54cf65be2
Bug 963285 - CallSetup may set context options but not restore them , r=bz
2014-01-24 00:56:50 +02:00
Terrence Cole
88f7b71c52
Bug 955660 - Fix an exact rooting hazard in CallSetup; r=bz
2013-12-31 08:30:57 -08:00
Steve Fink
e633294ba4
Backed out changeset f71e6905567f (bug 952688)
2013-12-20 16:46:31 -08:00
Steve Fink
20eec334f3
Bug 952688 - Root CallbackObject's CallSetup around GlobalScope() call, r=terrence
2013-12-20 16:07:00 -08:00
Bobby Holley
4591293bc0
Bug 950909 - Forward native aggregation to the root XPCWrappedJS. r=mccr8,sr=smaug
2013-12-19 18:08:07 -08:00
Bobby Holley
3d665e01ac
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-11 17:51:58 -08:00
Bobby Holley
c3a450ec6c
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-11 17:51:57 -08:00
Bobby Holley
702aa30e76
Bug 937317 - Factor out the shareable parts of CallSetup into AutoEntryScript and AutoIncubentScript. r=bz
2013-12-11 17:51:57 -08:00
Phil Ringnalda
52ab05db1f
Back out 35371620801a:bf2019278b77 (bug 937317) for gaia-ui-test bustage and frequent timeouts in its own test
2013-12-07 11:08:56 -08:00
Bobby Holley
6633eddfa0
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-06 12:01:42 -08:00
Bobby Holley
77a7c0d5ed
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-06 12:01:42 -08:00
Bobby Holley
c4062515ad
Bug 937317 - Factor out the shareable parts of CallSetup into AutoEntryScript and AutoIncubentScript. r=bz
2013-12-06 12:01:41 -08:00
Carsten "Tomcat" Book
97cdb39d20
Backed out changeset f65970fe598f (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:42:48 +01:00
Carsten "Tomcat" Book
c85c537ac9
Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:42:07 +01:00