mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 00:07:30 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
bac9ec9a84
39 changed files with 541 additions and 108 deletions
|
|
@ -241,6 +241,7 @@ private:
|
|||
WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override
|
||||
{
|
||||
nsresult rv = mWrappedRunnable->Run();
|
||||
mWrappedRunnable = nullptr;
|
||||
if (NS_FAILED(rv)) {
|
||||
if (!JS_IsExceptionPending(aCx)) {
|
||||
Throw(aCx, rv);
|
||||
|
|
@ -259,6 +260,7 @@ private:
|
|||
MOZ_ASSERT(cancelable); // We checked this earlier!
|
||||
rv = cancelable->Cancel();
|
||||
nsresult rv2 = WorkerRunnable::Cancel();
|
||||
mWrappedRunnable = nullptr;
|
||||
return NS_FAILED(rv) ? rv : rv2;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue