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

Issue 172043002: Fix a crash of the Content Shell for Android when showing videos in a ContentVideoView. (Closed)

Created:
6 years, 10 months ago by Sungmann Cho
Modified:
6 years, 10 months ago
Reviewers:
Ted C, Yaron
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch_chromium.org
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Fix a crash of the Content Shell for Android when showing videos in a ContentVideoView. The Content Shell for Android crashes when it attempts to show a ContentVideoView(see below logs for details). It only happens in the child Shell that newly opened, not in the initial Shell. Because a ContentViewClient is set only for the initial Shell, but not the others. Steps to reproduces: 1. Go to http://www.google.com and search YouTube. 2. Click the link of YouTube in the result pages. Then YouTube page is opened in a new Shell. 3. Click a play button on a video clip. java.lang.NullPointerException at org.chromium.content.browser.ContentVideoView.showContentVideoView(ContentVideoView.java:176) at org.chromium.content.browser.ContentVideoViewLegacy.showContentVideoView(ContentVideoViewLegacy.java:128) at org.chromium.content.browser.ContentVideoView.<init>(ContentVideoView.java:150) at org.chromium.content.browser.ContentVideoViewLegacy.<init>(ContentVideoViewLegacy.java:57) at org.chromium.content.browser.ContentVideoView.createContentVideoView(ContentVideoView.java:378) at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:24) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252530

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -31 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/Shell.java View 1 4 chunks +7 lines, -1 line 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 1 3 chunks +34 lines, -2 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 1 2 3 chunks +0 lines, -28 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Sungmann Cho
6 years, 10 months ago (2014-02-20 00:12:07 UTC) #1
Ted C
Nice catch! Some small refactoring suggestions, but looks good. https://codereview.chromium.org/172043002/diff/1/content/shell/android/java/src/org/chromium/content_shell/Shell.java File content/shell/android/java/src/org/chromium/content_shell/Shell.java (right): https://codereview.chromium.org/172043002/diff/1/content/shell/android/java/src/org/chromium/content_shell/Shell.java#newcode89 content/shell/android/java/src/org/chromium/content_shell/Shell.java:89: ...
6 years, 10 months ago (2014-02-20 00:54:08 UTC) #2
Sungmann Cho
Thank you for your comments and suggestions. I submit revised patches.
6 years, 10 months ago (2014-02-20 02:43:41 UTC) #3
Ted C
On 2014/02/20 02:43:41, mann wrote: > Thank you for your comments and suggestions. > I ...
6 years, 10 months ago (2014-02-20 17:23:15 UTC) #4
Ted C
The CQ bit was checked by tedchoc@chromium.org
6 years, 10 months ago (2014-02-20 17:23:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/172043002/70001
6 years, 10 months ago (2014-02-20 17:28:10 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 19:10:46 UTC) #7
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=117081
6 years, 10 months ago (2014-02-20 19:10:46 UTC) #8
Sungmann Cho
The CQ bit was checked by sungmann.cho@navercorp.com
6 years, 10 months ago (2014-02-20 21:51:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/172043002/70001
6 years, 10 months ago (2014-02-20 21:53:30 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 22:55:37 UTC) #11
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=117191
6 years, 10 months ago (2014-02-20 22:55:37 UTC) #12
Sungmann Cho
The CQ bit was checked by sungmann.cho@navercorp.com
6 years, 10 months ago (2014-02-21 01:05:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/172043002/70001
6 years, 10 months ago (2014-02-21 01:10:52 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 02:33:00 UTC) #15
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=152690
6 years, 10 months ago (2014-02-21 02:33:01 UTC) #16
Sungmann Cho
I omitted some import statements. Sorry about that.
6 years, 10 months ago (2014-02-21 03:38:31 UTC) #17
Sungmann Cho
The CQ bit was checked by sungmann.cho@navercorp.com
6 years, 10 months ago (2014-02-21 04:41:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/172043002/510001
6 years, 10 months ago (2014-02-21 04:41:24 UTC) #19
Sungmann Cho
The CQ bit was unchecked by sungmann.cho@navercorp.com
6 years, 10 months ago (2014-02-21 09:39:31 UTC) #20
Sungmann Cho
The CQ bit was checked by sungmann.cho@navercorp.com
6 years, 10 months ago (2014-02-21 09:39:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/172043002/510001
6 years, 10 months ago (2014-02-21 09:40:21 UTC) #22
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 10:02:21 UTC) #23
Message was sent while issue was closed.
Change committed as 252530

Powered by Google App Engine
This is Rietveld 408576698