Description[Android] Fix GinJavaBridgeMessageFilter registration issue in Java Bridge.
With current implementation for Java Bridge, there are 2 user scenarios related
to renderer freeze caused as message filter registration not working as
intended, namely:
A. On web page opened in tab Render process getting exited silently (or manually
killed from adb console) and user opt to reload on same tab so that new sandbox
renderer associates with the opened tab.
B. On web page opened in tab user opens a "chrome://" schema page and navigates
back (this triggers creation of new sandbox renderer for navigation to
"chrome://" and creation of another renderer on navigating back).
This patch addresses both these problems by overriding the RenderProcessGone()
and RenderViewHostChanged() WebContentsObserver interfaces respectively, and
initiates the re-registration and filter object creation if required.
BUG=572053
Committed: https://crrev.com/5678b791281d722542a8a4b64fabe9e97dafff8e
Cr-Commit-Position: refs/heads/master@{#367165}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Addresses mnaganov's inputs. #
Total comments: 10
Patch Set 3 : Addresses review inputs. #
Messages
Total messages: 17 (7 generated)
|