[Webkit-unassigned] [Bug 138142] New: Unregistering and re-registering a user message handler does not work
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 28 12:05:16 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=138142
Bug ID: 138142
Summary: Unregistering and re-registering a user message
handler does not work
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore JavaScript
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aperez at igalia.com
User script messages sent with “window.webkit.messageHandlers.<name>.postMessage()”
will not work (i.e. “WebScriptMessageHandler::Client::didPostMessage()” is not called)
after performing the following sequence of operations:
1. Register a handler with “WebUserContentControllerProxy::addUserScriptMessageHandler()”
2. Unregister the handler with “WebUserContentControllerProxy::removeUserMessageHandlerForName()”
3. Register again a handler with the same name as in step (1) using
“WebUserContentControllerProxy::addUserScriptMessageHandler()”
This probably means that either removing the handler does not do all the cleanup it
should and the logic for installing a handler fails when trying to add one with a
name used previously.
I have found this issue while writing the unit tests for the API of the GTK+
port, being worked in bug #133730
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141028/1da9434a/attachment-0002.html>
More information about the webkit-unassigned
mailing list