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

Issue 208263010: Fix a problem that FeedbackReportingView is stacked infinitely whenever navigating to chrome-distil… (Closed)

Created:
6 years, 9 months ago by Sungmann Cho
Modified:
6 years, 8 months ago
Reviewers:
nyquist, Yaron
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix a problem that FeedbackReportingView is stacked infinitely whenever navigating to chrome-distiller://. FeedbackReporter creates FeedbackReportingView when a given url is reportable and otherwise delete it. Everything is fine in normal flows, but if we navigate to a reportable url continuously, FeedbackReportingView is created and stacked as much as we did. The current call flows are as follows. A-1. navigating to http:// FeedbackReporter.TabObserver.onUpdateUrl() FeedbackReporter.dismissOverlay() FeedbackReporterAndroid::DidNavigateMainFrame() FeedbackReporter.dismissOverlay() B-1. navigating to chrome-distiller:// FeedbackReporter.TabObserver.onUpdateUrl() FeedbackReporter.showOverlay() FeedbackReporterAndroid::DidNavigateMainFrame() As we can see, there is no FeedbackReporter.dismissOverlay() call in the 2nd case. This patch changes the above call flows as follows. A-2. navigating to http:// FeedbackReporterAndroid::DidNavigateMainFrame() FeedbackReporter.dismissOverlay() B-2. navigating to chrome-distiller:// FeedbackReporterAndroid::DidNavigateMainFrame() FeedbackReporter.dismissOverlay() FeedbackReporter.showOverlay() Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261053

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Messages

Total messages: 14 (0 generated)
Sungmann Cho
Please take a look. Thanks.
6 years, 9 months ago (2014-03-23 23:21:48 UTC) #1
Sungmann Cho
+shashi Please take a look. Thanks.
6 years, 9 months ago (2014-03-25 05:28:59 UTC) #2
Sungmann Cho
+Yaron Please take a look. Thanks.
6 years, 8 months ago (2014-03-26 20:59:40 UTC) #3
nyquist
https://codereview.chromium.org/208263010/diff/1/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/FeedbackReporter.java File chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/FeedbackReporter.java (left): https://codereview.chromium.org/208263010/diff/1/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/FeedbackReporter.java#oldcode140 chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/FeedbackReporter.java:140: private static native boolean nativeIsReportableUrl(String url); Instead of removing ...
6 years, 8 months ago (2014-03-27 20:16:22 UTC) #4
Sungmann Cho
Thank you for your comments. I submit a revised patch. Please take a look. https://codereview.chromium.org/208263010/diff/1/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/FeedbackReporter.java ...
6 years, 8 months ago (2014-03-28 01:28:45 UTC) #5
Sungmann Cho
ping...
6 years, 8 months ago (2014-03-31 23:03:00 UTC) #6
nyquist
mostly lg https://codereview.chromium.org/208263010/diff/20001/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java File chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java (right): https://codereview.chromium.org/208263010/diff/20001/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java#newcode351 chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java:351: CHROME_DISTILLER_SCHEME, activeTab.getUrl())); Use |url| here. https://codereview.chromium.org/208263010/diff/20001/chrome/browser/android/dom_distiller/feedback_reporter_android.cc File ...
6 years, 8 months ago (2014-03-31 23:08:25 UTC) #7
Sungmann Cho
Please take a look. Thanks. https://codereview.chromium.org/208263010/diff/20001/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java File chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java (right): https://codereview.chromium.org/208263010/diff/20001/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java#newcode351 chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java:351: CHROME_DISTILLER_SCHEME, activeTab.getUrl())); On 2014/03/31 ...
6 years, 8 months ago (2014-04-01 07:51:38 UTC) #8
nyquist
lgtm with comment. thanks. https://codereview.chromium.org/208263010/diff/40002/chrome/browser/android/dom_distiller/feedback_reporter_android.cc File chrome/browser/android/dom_distiller/feedback_reporter_android.cc (right): https://codereview.chromium.org/208263010/diff/40002/chrome/browser/android/dom_distiller/feedback_reporter_android.cc#newcode60 chrome/browser/android/dom_distiller/feedback_reporter_android.cc:60: chrome::kDomDistillerScheme, url)) Since the conditional ...
6 years, 8 months ago (2014-04-01 20:09:13 UTC) #9
Sungmann Cho
I fixed above nits. Thank you for your guidance. https://codereview.chromium.org/208263010/diff/40002/chrome/browser/android/dom_distiller/feedback_reporter_android.cc File chrome/browser/android/dom_distiller/feedback_reporter_android.cc (right): https://codereview.chromium.org/208263010/diff/40002/chrome/browser/android/dom_distiller/feedback_reporter_android.cc#newcode60 chrome/browser/android/dom_distiller/feedback_reporter_android.cc:60: ...
6 years, 8 months ago (2014-04-01 22:11:59 UTC) #10
Sungmann Cho
The CQ bit was checked by sungmann.cho@navercorp.com
6 years, 8 months ago (2014-04-01 22:12:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/208263010/70001
6 years, 8 months ago (2014-04-01 22:54:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/208263010/70001
6 years, 8 months ago (2014-04-02 02:07:55 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 03:50:48 UTC) #14
Message was sent while issue was closed.
Change committed as 261053

Powered by Google App Engine
This is Rietveld 408576698