|
|
Created:
4 years, 2 months ago by fgorski Modified:
4 years, 2 months ago Reviewers:
Ted C CC:
chromium-reviews, dewittj+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[Offline pages] Ensuring verbose Offline status does not show next to the security padlock
* Ensuring the verbose status is updated when the padlock animation ends
* Ensuring the URL is properly emphasized when that happens as well
BUG=648129
Committed: https://crrev.com/083092ef6ec00129ebf7d755b323a1cb90cdb659
Cr-Commit-Position: refs/heads/master@{#425140}
Patch Set 1 : [Offline pages] Ensuring verbose Offline status does not show next to the security padlock #
Total comments: 4
Patch Set 2 : Addressing feedback #Messages
Total messages: 20 (12 generated)
Patchset #1 (id:1) has been deleted
The CQ bit was checked by fgorski@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
fgorski@chromium.org changed reviewers: + tedchoc@chromium.org
Hey, Ted, this may not look the nicest, but I am not aware of a better place to put the code. Please review and advise if changes are necessary. thanks. Filip
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... File chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java (right): https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java:678: setUrlToPageUrl(); why setUrlToPageUrl? That doesn't look right to me. https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java:686: if (animation == mSecurityButtonShowAnimator) { should we ever be showing the verbose state during this animation? Wondering if we should trigger updateVerboseStatusVisibility here and on the end. Then just have && mNavigationButton.getVisibility() == VISIBLE && !mSecurityButton.getVisibility() == INVISIBLE in the update method.
The CQ bit was checked by fgorski@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
PTAL https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... File chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java (right): https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java:678: setUrlToPageUrl(); On 2016/10/12 23:46:22, Ted C wrote: > why setUrlToPageUrl? That doesn't look right to me. If we don't we can get padlock shown with a scheme stripped URL in situation, where the offline page is reloaded to an online version, which is https:// Per the second comment I am moving the whole code outside of if and straight to the animation end. Keeping the setUrlToPageUrl() after the updateVerboseStatusVisibility() with a comment, but if you prefer not to have it, I am fine with removing it. I can make that call from inside updateVerboseStatusVisibility() if you think that's better, but that is inconsistent with what the method is meant to do, and may cause problems in other places. https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java:686: if (animation == mSecurityButtonShowAnimator) { On 2016/10/12 23:46:22, Ted C wrote: > should we ever be showing the verbose state during this animation? > > Wondering if we should trigger updateVerboseStatusVisibility here and on the > end. > > Then just have > > && mNavigationButton.getVisibility() == VISIBLE > && !mSecurityButton.getVisibility() == INVISIBLE > > in the update method. Done, with exception of the last &&. Please check the change and let me know if that is what you where thinking about.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/10/13 18:04:35, fgorski wrote: > PTAL > > https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... > File > chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java > (right): > > https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... > chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java:678: > setUrlToPageUrl(); > On 2016/10/12 23:46:22, Ted C wrote: > > why setUrlToPageUrl? That doesn't look right to me. > > If we don't we can get padlock shown with a scheme stripped URL in situation, > where the offline page is reloaded to an online version, which is https:// > > Per the second comment I am moving the whole code outside of if and straight to > the animation end. > > Keeping the setUrlToPageUrl() after the updateVerboseStatusVisibility() with a > comment, but if you prefer not to have it, I am fine with removing it. > > I can make that call from inside updateVerboseStatusVisibility() if you think > that's better, but that is inconsistent with what the method is meant to do, and > may cause problems in other places. > > https://codereview.chromium.org/2412273002/diff/20001/chrome/android/java/src... > chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java:686: > if (animation == mSecurityButtonShowAnimator) { > On 2016/10/12 23:46:22, Ted C wrote: > > should we ever be showing the verbose state during this animation? > > > > Wondering if we should trigger updateVerboseStatusVisibility here and on the > > end. > > > > Then just have > > > > && mNavigationButton.getVisibility() == VISIBLE > > && !mSecurityButton.getVisibility() == INVISIBLE > > > > in the update method. > > Done, with exception of the last &&. Please check the change and let me know if > that is what you where thinking about. lgtm...yeah the last && was wrong as I started with == VISIBLE and then switched it. submit away and thanks for the explanation for setUrlToPageUrl. I was also concerned that could affect users if they had focused the omnibox, but I see we already check for that.
The CQ bit was checked by fgorski@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== [Offline pages] Ensuring verbose Offline status does not show next to the security padlock * Ensuring the verbose status is updated when the padlock animation ends * Ensuring the URL is properly emphasized when that happens as well BUG=648129 ========== to ========== [Offline pages] Ensuring verbose Offline status does not show next to the security padlock * Ensuring the verbose status is updated when the padlock animation ends * Ensuring the URL is properly emphasized when that happens as well BUG=648129 Committed: https://crrev.com/083092ef6ec00129ebf7d755b323a1cb90cdb659 Cr-Commit-Position: refs/heads/master@{#425140} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/083092ef6ec00129ebf7d755b323a1cb90cdb659 Cr-Commit-Position: refs/heads/master@{#425140}
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:40001) has been created in https://codereview.chromium.org/2423153004/ by fgorski@chromium.org. The reason for reverting is: Reverting per offline discussion with tedchoc@ as this patch introduced bug 655923. |