[Webkit-unassigned] [Bug 164762] UIScriptController: script with no async tasks fails if an earlier script registered a callback
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 14 21:15:21 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=164762
Simon Fraser (smfr) <simon.fraser at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simon.fraser at apple.com
--- Comment #1 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Partial fix:
diff --git a/Tools/TestRunnerShared/UIScriptContext/UIScriptContext.cpp b/Tools/TestRunnerShared/UIScriptContext/UIScriptContext.cpp
index e2e7b0d1375c4def7e0592faf02c4d65fd9ed887..bb5c9e8becaea698f785a3e5bde20842e6549af7 100644
--- a/Tools/TestRunnerShared/UIScriptContext/UIScriptContext.cpp
+++ b/Tools/TestRunnerShared/UIScriptContext/UIScriptContext.cpp
@@ -117,6 +117,9 @@ unsigned UIScriptContext::registerCallback(JSValueRef taskCallback, CallbackType
if (m_callbacks.contains(type))
unregisterCallback(type);
+ if (JSValueIsUndefined(m_context.get(), taskCallback))
+ return 0;
+
return prepareForAsyncTask(taskCallback, type);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161115/7487cf2f/attachment-0001.html>
More information about the webkit-unassigned
mailing list