[webkit-reviews] review requested: [Bug 87579] [BlackBerry] http authentication crash the browser when user commit or cancel the http authentication dialog : [Attachment 144842] assertion fix
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 30 09:41:25 PDT 2012
Joe Mason <jmason at rim.com> has asked for review:
Bug 87579: [BlackBerry] http authentication crash the browser when user commit
or cancel the http authentication dialog
https://bugs.webkit.org/show_bug.cgi?id=87579
Attachment 144842: assertion fix
https://bugs.webkit.org/attachment.cgi?id=144842&action=review
------- Additional Comments from Joe Mason <jmason at rim.com>
2012-05-30 Joe Mason <jmason at rim.com>
[BlackBerry] Fix assertion fail on redirect due to multiple jobs per
handle
https://bugs.webkit.org/show_bug.cgi?id=87579
Reviewed by NOBODY (OOPS!).
RIM PR #158892:
When we start a redirect, we now call cancelJob instead of just
deleting it immediately to make sure
that all cleanup is performed. However, we also reassign the
ResourceHandle to the new job, and
since cancelJob is asynchronous it is now assigned to two jobs
simultaneously.
Work around this by only returning handles that have not been cancelled
from findJobForHandle.
Cancelled jobs still technically exist in the jobs list, but they're
invisible to callers. This is
safe because there is literally nothing that can be done with a
cancelled job - it is supposed to
merely consume any notifications that are already in progress and then
kill itself off - so no
callers of findJobForHandle are expecting a cancelled job. (All
existing callers call methods on the
returned job which are no-ops for cancelled jobs, so there is no
behaviour change.)
No new tests because there is no behaviour change (fixes a regression).
* platform/network/blackberry/NetworkManager.cpp:
(WebCore::NetworkManager::findJobForHandle):
More information about the webkit-reviews
mailing list