Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Issue 1547043002: [Android] Fix GinJavaBridgeMessageFilter registration issue in Java Bridge. (Closed)

Created:
4 years, 12 months ago by Pritam Nikam
Modified:
4 years, 11 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
M content/browser/android/java/gin_java_bridge_dispatcher_host.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/android/java/gin_java_bridge_dispatcher_host.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/android/java/gin_java_bridge_message_filter.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/android/java/gin_java_bridge_message_filter.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Pritam Nikam
Hi Vivek, Ptal, thanks!
4 years, 12 months ago (2015-12-24 14:29:17 UTC) #3
mnaganov (inactive)
Ideally, it would also be great if you could come up with unit tests for ...
4 years, 12 months ago (2015-12-28 19:00:17 UTC) #5
Pritam Nikam
Thanks mnaganov for review inputs. I've addressed it in new patch, PTAL. I'll try to ...
4 years, 11 months ago (2015-12-29 11:24:46 UTC) #7
mnaganov (inactive)
Great job! Please address the comments for the new code. https://codereview.chromium.org/1547043002/diff/20001/content/browser/android/java/gin_java_bridge_message_filter.cc File content/browser/android/java/gin_java_bridge_message_filter.cc (right): https://codereview.chromium.org/1547043002/diff/20001/content/browser/android/java/gin_java_bridge_message_filter.cc#newcode173 ...
4 years, 11 months ago (2015-12-29 16:55:28 UTC) #8
Pritam Nikam
Thanks mnaganov! I've incorporated review inputs in new patch set, ptal. Thanks! https://codereview.chromium.org/1547043002/diff/20001/content/browser/android/java/gin_java_bridge_message_filter.cc File content/browser/android/java/gin_java_bridge_message_filter.cc ...
4 years, 11 months ago (2015-12-30 12:05:36 UTC) #9
mnaganov (inactive)
LGTM, thanks!
4 years, 11 months ago (2015-12-30 16:27:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547043002/40001
4 years, 11 months ago (2015-12-30 17:33:38 UTC) #12
Pritam Nikam
On 2015/12/30 16:27:48, mnaganov wrote: > LGTM, thanks! Thanks mnaganov :-) I'll go ahead with ...
4 years, 11 months ago (2015-12-30 17:41:09 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2015-12-30 18:36:26 UTC) #15
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 18:37:18 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5678b791281d722542a8a4b64fabe9e97dafff8e
Cr-Commit-Position: refs/heads/master@{#367165}

Powered by Google App Engine
This is Rietveld 408576698