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

Issue 2696683002: isShowingErrorPage should have really useful info (Closed)

Created:
3 years, 10 months ago by marcin
Modified:
3 years, 10 months ago
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

isShowingErrorPage should have really useful info currently: is not updated for example from didFinishNavigation in TabWebContentObserver.java (if errorCode!=0...) with patch: is updated in situation when error happen BUG=692810

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 2 chunks +3 lines, -0 lines 4 comments Download

Messages

Total messages: 19 (7 generated)
marcin
3 years, 10 months ago (2017-02-13 19:48:13 UTC) #3
Bernhard Bauer
Can you explain this patch in a bit more detail, ideally in a bug? In ...
3 years, 10 months ago (2017-02-13 22:51:30 UTC) #5
marcin
> Can you explain this patch in a bit more detail, ideally in a bug? ...
3 years, 10 months ago (2017-02-15 23:40:28 UTC) #8
marcin
https://codereview.chromium.org/2696683002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/2696683002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode1528 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:1528: setIsShowingErrorPage(showingErrorPage); On 2017/02/13 22:51:30, Bernhard Bauer wrote: > I ...
3 years, 10 months ago (2017-02-15 23:40:41 UTC) #9
Bernhard Bauer
+shaktisahu I still don't quite understand the rationale behind this change. Changing the value of ...
3 years, 10 months ago (2017-02-16 12:29:00 UTC) #11
shaktisahu
On 2017/02/13 22:51:30, Bernhard Bauer wrote: > Can you explain this patch in a bit ...
3 years, 10 months ago (2017-02-16 15:44:11 UTC) #12
marcin.wiacek_mwiacek.com
See if (errorCode != 0) { mTab.updateThemeColorIfNeeded(true); if (isInMainFrame) mTab.didFailPageLoad(errorCode); recordErrorInPolicyAuditor(url, errorDescription, errorCode); } This ...
3 years, 10 months ago (2017-02-16 18:27:48 UTC) #13
marcin
> marcin@ - Can you rebase this CL and verify if the bug exists? I ...
3 years, 10 months ago (2017-02-16 18:48:56 UTC) #14
shaktisahu
On 2017/02/16 18:27:48, marcin.wiacek_mwiacek.com wrote: > See > > > > if (errorCode != 0) ...
3 years, 10 months ago (2017-02-16 18:54:41 UTC) #16
shaktisahu
https://codereview.chromium.org/2696683002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/2696683002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode1566 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:1566: setIsShowingErrorPage(false); Why is this false? It should reflect the ...
3 years, 10 months ago (2017-02-16 18:54:53 UTC) #17
shaktisahu
On 2017/02/16 18:48:56, marcin wrote: > > marcin@ - Can you rebase this CL and ...
3 years, 10 months ago (2017-02-16 18:57:24 UTC) #18
marcin
3 years, 10 months ago (2017-02-16 22:14:02 UTC) #19
On 2017/02/16 18:57:24, shaktisahu wrote:
> On 2017/02/16 18:48:56, marcin wrote:
> > > marcin@ - Can you rebase this CL and verify if the bug exists? I think I
> have
> > > fixed this bug yesterday.
> > > https://codereview.chromium.org/2695843003/
> > 
> > After short looking into code I see, that you setup this variable only when
> > isInMainFrame is true.
> > 
> > What in situation when it's false ?
> > 
> > I'm doing it in both cases.
> 
> We shouldn't be showing an error page if the error happens only in a subframe
> and main frame should still show the contents.

OK, I think, that I can close my patch now. thx

Powered by Google App Engine
This is Rietveld 408576698