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

Issue 2536223002: Omnibox improvements and fixes. (Closed)

Created:
4 years ago by cjgrant
Modified:
4 years ago
Reviewers:
mthiesse, bajones, bshe
CC:
chromium-reviews, feature-vr-reviews_chromium.org, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Omnibox improvements and fixes. - Show the correct security icon on the omnibar when out of WebVR. This change uses the tab's security level to determine whether the security warnings are shown, rather than the secure origin flag that was plumbed through the WebVR code path. - Keep the omnibox visible at all times in 2D browsing. - Take URLs only from the main frame on a page. BUG=641508 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/340d1da550dbf8290c7da82add22af59b0fa47e4 Cr-Commit-Position: refs/heads/master@{#436974}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Unhook the original security warning control path. #

Total comments: 3

Patch Set 3 : Separate omnibox icon selection from webVR warning toggle. #

Total comments: 4

Patch Set 4 : CHECK -> DCHECK #

Patch Set 5 : Revert unintential Javascript change. #

Patch Set 6 : Rebase. #

Total comments: 1

Patch Set 7 : Rebase again. #

Patch Set 8 : Rebase to lkgr, not just master. #

Patch Set 9 : And, onto Michael's rename change. #

Patch Set 10 : Make unit tests compile by including chrome/browser and blink. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -26 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.cc View 1 2 3 4 5 6 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_web_contents_observer.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_web_contents_observer.cc View 1 2 3 4 5 6 7 8 3 chunks +26 lines, -4 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.js View 1 2 3 4 5 6 7 chunks +27 lines, -17 lines 1 comment Download

Messages

Total messages: 68 (36 generated)
cjgrant
https://codereview.chromium.org/2536223002/diff/1/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2536223002/diff/1/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode61 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:61: const auto* helper = SecurityStateTabHelper::FromWebContents(web_contents()); dcheng@ and clamy@: This ...
4 years ago (2016-11-29 16:33:52 UTC) #3
mthiesse
https://codereview.chromium.org/2536223002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2536223002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc#newcode916 chrome/browser/android/vr_shell/vr_shell.cc:916: // TODO(cjgrant): Remove this method, and all related plumbing ...
4 years ago (2016-11-29 16:40:19 UTC) #4
mthiesse
lgtm
4 years ago (2016-11-29 16:40:32 UTC) #5
cjgrant
Brandon, you had mentioned that this change should preserve "exceptions for localhost". Can you elaborate ...
4 years ago (2016-11-29 16:53:12 UTC) #6
bajones
LGTM, as long as the localhost scenario works. What I meant was that WebVR content ...
4 years ago (2016-11-29 17:53:23 UTC) #7
cjgrant
On 2016/11/29 17:53:23, bajones wrote: > LGTM, as long as the localhost scenario works. > ...
4 years ago (2016-11-29 17:57:42 UTC) #8
cjgrant
Conclusion: This CL would break the WebVR warnings as-is. I think I need to sync ...
4 years ago (2016-11-29 20:59:33 UTC) #9
cjgrant
Brandon, I reworked this to use the new security level query for omnibox, but the ...
4 years ago (2016-11-30 20:33:56 UTC) #10
bajones
On 2016/11/30 20:33:56, cjgrant wrote: > Brandon, I reworked this to use the new security ...
4 years ago (2016-11-30 21:27:43 UTC) #11
cjgrant
Adding Biao to check the UI JS change. Removing clamy@ and dcheng@ - that discussion ...
4 years ago (2016-12-01 14:45:54 UTC) #13
bshe
lgtm https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode62 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:62: CHECK(helper); Perhaps a DCHECK here so the code ...
4 years ago (2016-12-01 15:32:46 UTC) #14
cjgrant
https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode62 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:62: CHECK(helper); On 2016/12/01 15:32:46, bshe wrote: > Perhaps a ...
4 years ago (2016-12-01 21:21:51 UTC) #15
bshe
https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode62 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:62: CHECK(helper); On 2016/12/01 21:21:51, cjgrant wrote: > On 2016/12/01 ...
4 years ago (2016-12-02 14:21:37 UTC) #16
cjgrant
https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2536223002/diff/40001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode62 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:62: CHECK(helper); On 2016/12/02 14:21:36, bshe wrote: > On 2016/12/01 ...
4 years ago (2016-12-02 15:39:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2536223002/80001
4 years ago (2016-12-02 15:40:24 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/316562) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-02 15:43:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2536223002/100001
4 years ago (2016-12-02 19:33:10 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/316715) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-02 19:37:25 UTC) #27
estark
https://codereview.chromium.org/2536223002/diff/100001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2536223002/diff/100001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode40 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:40: SetSecurityLevel(); Drive-by (not intending to block this CL, just ...
4 years ago (2016-12-02 23:48:50 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2536223002/120001
4 years ago (2016-12-05 15:28:49 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/317450)
4 years ago (2016-12-05 15:31:00 UTC) #34
cjgrant
Dropping a couple people to limit noise while the patch conflicts are hammered out.
4 years ago (2016-12-05 20:53:44 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2536223002/160001
4 years ago (2016-12-06 14:45:28 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/175574)
4 years ago (2016-12-06 15:59:15 UTC) #51
cjgrant
This change is getting interesting. Unit tests exposed that my approach to obtaining security level ...
4 years ago (2016-12-06 18:35:51 UTC) #52
cjgrant
This change is getting interesting. Unit tests exposed that my approach to obtaining security level ...
4 years ago (2016-12-06 18:35:55 UTC) #53
cjgrant
Dropping bajones@. Michael and Biao, PTAL at the new unit test dependency change. I dislike ...
4 years ago (2016-12-07 15:02:07 UTC) #55
bshe
On 2016/12/07 15:02:07, cjgrant wrote: > Dropping bajones@. > > Michael and Biao, PTAL at ...
4 years ago (2016-12-07 15:06:13 UTC) #56
mthiesse
lgtm https://codereview.chromium.org/2536223002/diff/180001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2536223002/diff/180001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode350 chrome/browser/resources/vr_shell/vr_shell_ui.js:350: let secure = this.level == 2 || this.level ...
4 years ago (2016-12-07 15:53:48 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2536223002/180001
4 years ago (2016-12-07 16:18:27 UTC) #64
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-07 16:24:42 UTC) #66
commit-bot: I haz the power
4 years ago (2016-12-07 16:27:25 UTC) #68
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/340d1da550dbf8290c7da82add22af59b0fa47e4
Cr-Commit-Position: refs/heads/master@{#436974}

Powered by Google App Engine
This is Rietveld 408576698