Andrea Marchesini
43a1cd6c16
Bug 1277226 - Implement MainThreadWorkerRunnable, r=sicking
2016-06-08 07:12:05 +02:00
Kyle Huey
406bdf1bee
Bug 1272066: Slap the compiler. r=khuey
2016-05-11 11:46:36 -07:00
Wes Kocher
5949ec87d1
Bug 1272066 - Try to stop assertions until a better fix can land rs=khuey
...
--HG--
extra : rebase_source : 188bad42f87f23026315146d059fc36fbe07063c
2016-05-11 11:37:59 -07:00
Andrea Marchesini
067604a67d
Bug 1268253 - MainThreadStopSyncLoopRunnable doesn't need to be exposed, r=khuey
2016-05-11 08:05:38 +02:00
Andrea Marchesini
59521d1cef
Bug 1268252 - XHR doesn't need to use MainThreadStopSyncLoopRunnable, r=khuey
2016-05-11 08:05:08 +02:00
Andrea Marchesini
6bf6e9c639
Bug 1268231 - Get rid of StopSyncLoopRunnable, r=khuey
2016-05-03 10:21:59 +02:00
Andrea Marchesini
513590a1ac
Bug 1267904 - Add telemetry for WorkerMainThreadRunnable, r=khuey
2016-05-03 09:09:47 +02:00
Kyle Huey
1cc02aa8c6
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Wes Kocher
7d2cebe912
Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
...
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)
MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey
f13a6fc866
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Boris Zbarsky
272e533b18
Bug 1262630. Replace workers::GetGlobalObjectForGlobal with xpc::NativeGlobal. r=khuey
2016-04-07 21:58:21 -04:00
Boris Zbarsky
e3b2de6aa9
Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley
2016-03-23 11:44:54 -04:00
Boris Zbarsky
36d4079be7
Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley
2016-03-09 19:02:03 -05:00
Boris Zbarsky
1538f85b56
Bug 1072144
part 6. Switch WorkerRunnable::Run to calling TakeOwnershipOfErrorReporting on its AutoJSAPI/AutoEntryScript and remove the remaining JS_ReportPendingException callers in worker code. r=khuey
2016-03-01 16:52:27 -05:00
Boris Zbarsky
7d17080433
Bug 1072144
part 5. Stop fiddling with compartments on the JSContext before calling PostRun in WorkerRunnable::Run. Add some documentation explaining what's going on. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
9679610dbb
Bug 1072144
part 4. Add a WorkerRunnable::PreRun so that we can move worker global creation to it and always have an AutoEntryScript by the time we're evaluating the main worker script. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
7a1819b93a
Bug 1072144
part 3. Hoist the exception reporting out of WorkerRunnable::PostRun into WorkerRunnable::Run and make it unconditional. r=khuey
2016-03-01 16:52:26 -05:00
Wes Kocher
af73c13ee2
Backed out 6 changesets (bug 1072144
) for test_recursion.html failures
...
Backed out changeset ac15fe0e71fd (bug 1072144
)
Backed out changeset b666d48a267d (bug 1072144
)
Backed out changeset 0f0464ef08ed (bug 1072144
)
Backed out changeset 7ba5f3b95022 (bug 1072144
)
Backed out changeset 1912f838fcaa (bug 1072144
)
Backed out changeset 145c9bb59b97 (bug 1072144
)
MozReview-Commit-ID: 7cl4RtpHSfl
2016-03-01 15:41:24 -08:00
Boris Zbarsky
e733e4d4fb
Bug 1072144
part 6. Switch WorkerRunnable::Run to calling TakeOwnershipOfErrorReporting on its AutoJSAPI/AutoEntryScript and remove the remaining JS_ReportPendingException callers in worker code. r=khuey
2016-03-01 16:52:27 -05:00
Boris Zbarsky
79b91b672b
Bug 1072144
part 5. Stop fiddling with compartments on the JSContext before calling PostRun in WorkerRunnable::Run. Add some documentation explaining what's going on. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
de208d989a
Bug 1072144
part 4. Add a WorkerRunnable::PreRun so that we can move worker global creation to it and always have an AutoEntryScript by the time we're evaluating the main worker script. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
dae479317b
Bug 1072144
part 3. Hoist the exception reporting out of WorkerRunnable::PostRun into WorkerRunnable::Run and make it unconditional. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
29b29c72bd
Bug 1251697 part 3. Remove the JSContext argument of StopSyncLoopRunnable::MaybeSetException. r=khuey
2016-02-26 21:15:57 -05:00
Boris Zbarsky
7345c5edb1
Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey
2016-02-26 15:23:12 -05:00
Boris Zbarsky
878fd26e89
Bug 1251045 part 3. Remove the JSContext argument of WorkerRunnable::PostDispatch and its overrides. r=khuey
2016-02-26 15:23:12 -05:00
Boris Zbarsky
d0b2f4eeda
Bug 1251045 part 2. Remove the JSContext argument of ModifyBusyCountFromWorker. r=khuey
2016-02-26 15:23:12 -05:00
Boris Zbarsky
cc6606ed0d
Bug 1250975. Stop passing a JSContext argument to WorkerRunnable::PreDispatch and its overrides. r=khuey
2016-02-25 16:05:39 -05:00
Boris Zbarsky
f0afee106b
Bug 1250963 part 2. Remove the unused JSContext argument of WorkerPrivate::ModifyBusyCount. r=khuey
2016-02-25 16:05:39 -05:00
Wes Kocher
56ccaea947
Backed out 2 changesets (bug 1250963) for build bustage CLOSED TREE
...
Backed out changeset 257324c2ae17 (bug 1250963)
Backed out changeset 0e868ee89abc (bug 1250963)
--HG--
extra : commitid : HglxXI0Tb1b
2016-02-25 13:41:42 -08:00
Wes Kocher
d66f0ad3fc
Backed out changeset bb404647f14c (bug 1250975) for build bustage CLOSED TREE
...
--HG--
extra : commitid : KyFNIQ1ugVq
2016-02-25 13:41:09 -08:00
Boris Zbarsky
683b099eb9
Bug 1250975. Stop passing a JSContext argument to WorkerRunnable::PreDispatch and its overrides. r=khuey
2016-02-25 16:05:39 -05:00
Boris Zbarsky
47ec3963e4
Bug 1250963 part 2. Remove the unused JSContext argument of WorkerPrivate::ModifyBusyCount. r=khuey
2016-02-25 16:05:39 -05:00
Boris Zbarsky
5c76831b32
Bug 1250291 part 3. Stop pretending to report exceptions in WorkerDebuggerRunnable::PostDispatch. r=khuey
2016-02-23 15:02:43 -05:00
Boris Zbarsky
446267bf04
Bug 1250291 part 2. Stop pretending to report exceptions in MainThreadWorkerSyncRunnable::PostDispatch. r=khuey
2016-02-23 15:02:42 -05:00
Boris Zbarsky
27b59f54f7
Bug 1250291 part 1. Stop pretending to report exceptions in MainThreadStopSyncLoopRunnable::PostDispatch. r=khuey
2016-02-23 15:02:41 -05:00
Boris Zbarsky
13359b10de
Bug 1249102. Make overrides of WorkerRunnable::PostRun a bit more consistent. r=khuey
...
Specifically we make the following changes:
1) Remove WorkerSameThreadRunnable::PostRun, because it does exactly the same
things as WorkerRunnable::PostRun.
2) Always treat ModifyBusyCountFromWorker as infallible in terms of throwing
JS exceptions.
3) Change ExtendableFunctionalEventWorkerRunnable::PostRun to properly call
its superclass PostRun so we will correctly decrement the busy count our
PreDispatch incremented.
4) Document why some overrides of PreDispatch/PostDispatch are needed and
don't call into the superclass
2016-02-18 18:02:51 -05:00
Boris Zbarsky
2e83741081
Bug 1248737. Improve documentation for WorkerRunnable and associated classes. r=khuey
2016-02-18 18:02:51 -05:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Boris Zbarsky
a4e1fa37a6
Bug 1224596 part 17. Remove the old WorkerMainThreadRunnable::Dispatch signature. r=khuey
2015-11-24 00:04:21 -05:00
Boris Zbarsky
c30d4923b5
Bug 1224596 part 1. Add a version of WorkerMainThreadRunnable::Dispatch that takes an ErrorResult to report failure to dispatch on. r=khuey
2015-11-24 00:04:20 -05:00
Nathan Froyd
01583602a9
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
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Randell Jesup
c87c478f4f
Bug 1155059: Patch 1&2 - Convert Dispatch() and friends to already_AddRefed<> r=froydnj
...
Modify Dispatch IDL and code to deal with MSVC issues with overloaded templates r=froydnj
2015-07-09 23:21:46 -04:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Andrea Marchesini
8bef21375a
Bug 1155546 - Implement WorkerControlRunnable::Cancel(), r=bent
2015-04-22 09:03:52 +02:00
Jim Blandy
ebd83c9a61
Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
...
--HG--
extra : rebase_source : 8ab7a3628a5b4d94b957f24e23e4c5c7871db97c
2015-04-08 21:23:48 -04:00
Eddy Bruël
1b07dff8ae
Bug 1092102 - Implement worker debugger runnables;r=khuey
2015-03-04 15:11:32 +01:00
Seth Fowler
0fd6e994ae
Bug 913586 (Part 4) - Update Maybe users in dom. r=bz
...
--HG--
extra : rebase_source : 7b6159b00b3bf4f919b30f1bccc8939cc04fe526
2014-08-13 15:39:41 -07:00
Bobby Holley
c1d4da74d7
Bug 1052090 - Don't try to compute main-thread-ness until after we're done with cancel shenanigans. r=bkelly
2014-08-12 12:29:50 -07:00
Bob Owen
2acc59b07c
Bug 1050795 Part 1: Replace nsCxPusher in WorkerRunnable::Run. r=bholley
2014-08-08 16:06:33 +01:00