mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1256424 followup to actually address the review comments
This commit is contained in:
parent
3ff438ab43
commit
ce7543e0ed
@ -9,12 +9,12 @@
|
||||
#include "DOMError.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "DOMCursor.h"
|
||||
#include "mozilla/CycleCollectedJSRuntime.h"
|
||||
#include "mozilla/ErrorResult.h"
|
||||
#include "mozilla/dom/Event.h"
|
||||
#include "mozilla/dom/Promise.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
#include "jsfriendapi.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
using mozilla::dom::AnyCallback;
|
||||
using mozilla::dom::DOMError;
|
||||
@ -301,7 +301,7 @@ class FireSuccessAsyncTask : public nsRunnable
|
||||
FireSuccessAsyncTask(DOMRequest* aRequest,
|
||||
const JS::Value& aResult) :
|
||||
mReq(aRequest),
|
||||
mResult(CycleCollectedJSRuntime::Get()->Runtime(), aResult)
|
||||
mResult(nsContentUtils::RootingCxForThread(), aResult)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -1764,7 +1764,6 @@ public:
|
||||
|
||||
AutoJSAPI jsapi;
|
||||
if (!jsapi.Init(mValues)) {
|
||||
// Now what?
|
||||
return;
|
||||
}
|
||||
jsapi.TakeOwnershipOfErrorReporting();
|
||||
|
Loading…
Reference in New Issue
Block a user