Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
For the Quatum DOM project, it's better to work in terms of event targets than threads. This patch converts DOM code to operate on event targets rather than threads, when possible. MozReview-Commit-ID: 5FgvpKadUA2
This commit is contained in:
@@ -120,7 +120,7 @@ FileReader::FileReader(nsIGlobalObject* aGlobal,
|
||||
if (NS_IsMainThread()) {
|
||||
mTarget = aGlobal->EventTargetFor(TaskCategory::Other);
|
||||
} else {
|
||||
mTarget = do_GetCurrentThread();
|
||||
mTarget = GetCurrentThreadSerialEventTarget();
|
||||
}
|
||||
|
||||
SetDOMStringToNull(mResult);
|
||||
|
||||
Reference in New Issue
Block a user