RESOLVED FIXED 133921
invalidateCallbackMap doesn’t pass the error parameter on to invalidate(), so script completion handler is passed the wrong error
https://bugs.webkit.org/show_bug.cgi?id=133921
Summary invalidateCallbackMap doesn’t pass the error parameter on to invalidate(), so...
mitz
Reported 2014-06-14 16:06:29 PDT
invalidateCallbackMap in GenericCallback.h doesn’t pass its error parameter on to the callbacks’ invalidate function. Therefore the error passed into -[WKWebView evaluateJavaScript:completionHandler:]’s completion handler is always WKErrorUnknown, and the completion handler is called synchronously in the PageInvalidated case, even though it’s supposed to be deferred.
Attachments
Patch (16.05 KB, patch)
2014-06-15 10:24 PDT, Anders Carlsson
mitz: review+
mitz
Comment 1 2014-06-14 16:08:25 PDT
Anders Carlsson
Comment 2 2014-06-15 10:24:07 PDT
Anders Carlsson
Comment 3 2014-06-15 11:07:36 PDT
Note You need to log in before you can comment on or make changes to this bug.