OSDN Git Service

Maintain a reference to the Java object when WebView.removeJavascriptInterface()...
authorSteve Block <steveblock@google.com>
Fri, 1 Jul 2011 16:55:51 +0000 (17:55 +0100)
committerSteve Block <steveblock@google.com>
Mon, 4 Jul 2011 11:19:17 +0000 (12:19 +0100)
commit2cb978e507efbf70470761cdb15ea0a9c740f3f3
tree125c076a54a3d0b4f54cfbdb85b269ba4f313ccf
parent54fa6196b0058933a68cffde17b4413b098630d3
Maintain a reference to the Java object when WebView.removeJavascriptInterface() is called

The Java object should remain usable until the WebView is navigated
away from the current page. The native side holds only a weak
reference, so we need to keep a reference Java-side.

Bug: 4990734
Change-Id: I40bd078f779228480cfe6f52d9feb4e60c963b4b
core/java/android/webkit/BrowserFrame.java