Allow AppWebMessagePort mHandler to be reset to null.
Nothing currently prevents a WebView application calling setWebMessageCallback multiple times. If a handler has previously been set via setMessageCallback, then it is currently impossible to reset it back to null, meaning that the effect of passing null for handler differs depending on previous calls. Bug: 798449 Change-Id: I93dd8fbb3a5dce7be0b787ee78fecf739f7c4199 Reviewed-on: https://chromium-review.googlesource.com/847486 Commit-Queue: Tobias Sargeant <tobiasjs@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#526525}
Showing
Please register or sign in to comment