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

Issue 2515373003: Post tasks for sensitive input visibility notifications (Closed)

Created:
4 years, 1 month ago by estark
Modified:
4 years ago
Reviewers:
haraken, dcheng
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, esprehn, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Post tasks for sensitive input visibility notifications If password inputs are hidden and shown multiple times in the same task (as apparently happens when processing a stylesheet), we don't want to the omnibox warning to flicker in and out. Thus, this CL posts sensitive input visibility notifications to the end of the task queue, so that the omnibox warning updates get coalesced. BUG=664194 TEST=Visit http://http-password.badssl.com and observe that the omnibox warning does not flicker in and out twice. Committed: https://crrev.com/7bdbe352cdbd7cc1dec2b71653e60b47688bd9e1 Cr-Commit-Position: refs/heads/master@{#434340}

Patch Set 1 #

Total comments: 7

Patch Set 2 : dcheng, haraken comments #

Patch Set 3 : move cancellable task to PasswordInputType, not Document #

Total comments: 1

Patch Set 4 : revert back to patchset 2 #

Total comments: 7

Patch Set 5 : dcheng, haraken comments round 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -41 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 3 chunks +43 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp View 1 3 2 chunks +2 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/PasswordInputTypeTest.cpp View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (26 generated)
estark
dcheng does this look remotely reasonable to you? Thanks!
4 years, 1 month ago (2016-11-21 20:15:21 UTC) #4
dcheng
Currently, this will post a task for every change, but we can do better by ...
4 years, 1 month ago (2016-11-22 01:53:25 UTC) #7
haraken
https://codereview.chromium.org/2515373003/diff/1/third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp File third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp (right): https://codereview.chromium.org/2515373003/diff/1/third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp#newcode51 third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp:51: void SendSensitiveInputVisibility(Document* document) { sendSensitiveInputVisibility https://codereview.chromium.org/2515373003/diff/1/third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp#newcode56 third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp:56: mojo::GetProxy(&sensitiveInputServicePtr)); Isn't ...
4 years, 1 month ago (2016-11-22 01:57:34 UTC) #9
dcheng
https://codereview.chromium.org/2515373003/diff/1/third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp File third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp (right): https://codereview.chromium.org/2515373003/diff/1/third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp#newcode56 third_party/WebKit/Source/core/html/forms/PasswordInputType.cpp:56: mojo::GetProxy(&sensitiveInputServicePtr)); On 2016/11/22 01:57:34, haraken wrote: > > Isn't ...
4 years, 1 month ago (2016-11-22 02:00:31 UTC) #10
estark
> But we've been deprecating one shot timers in favor of postCancellableTask [1]: > would ...
4 years ago (2016-11-23 08:14:29 UTC) #12
haraken
On 2016/11/23 08:14:29, estark wrote: > > But we've been deprecating one shot timers in ...
4 years ago (2016-11-23 13:51:48 UTC) #16
estark
On 2016/11/23 13:51:48, haraken wrote: > On 2016/11/23 08:14:29, estark wrote: > > > But ...
4 years ago (2016-11-23 17:57:44 UTC) #17
estark
Moved the cancellable task to PasswordInputType, not Document.
4 years ago (2016-11-23 21:46:57 UTC) #20
dcheng
I think it would be nice to dedupe on a Document level though... I guess ...
4 years ago (2016-11-24 00:43:36 UTC) #23
estark
On 2016/11/24 00:43:36, dcheng wrote: > I think it would be nice to dedupe on ...
4 years ago (2016-11-24 00:46:24 UTC) #24
dcheng
On 2016/11/24 00:46:24, estark wrote: > On 2016/11/24 00:43:36, dcheng wrote: > > I think ...
4 years ago (2016-11-24 00:49:15 UTC) #25
haraken
On 2016/11/24 00:49:15, dcheng wrote: > On 2016/11/24 00:46:24, estark wrote: > > On 2016/11/24 ...
4 years ago (2016-11-24 01:35:44 UTC) #26
estark
Ok, I reverted back to patchset 2 that does it on Document. I'll have to ...
4 years ago (2016-11-24 01:43:03 UTC) #29
haraken
LGTM You don't need to try hard to prove that the Document-level dedupe makes some ...
4 years ago (2016-11-24 01:52:40 UTC) #30
dcheng
LGTM with comments addressed https://codereview.chromium.org/2515373003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2515373003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4335 third_party/WebKit/Source/core/dom/Document.cpp:4335: m_sensitiveInputVisibilityTask = Let's guard this ...
4 years ago (2016-11-24 01:54:08 UTC) #31
estark
https://codereview.chromium.org/2515373003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2515373003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4335 third_party/WebKit/Source/core/dom/Document.cpp:4335: m_sensitiveInputVisibilityTask = On 2016/11/24 01:54:08, dcheng wrote: > Let's ...
4 years ago (2016-11-24 03:24:48 UTC) #32
dcheng
https://codereview.chromium.org/2515373003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2515373003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4344 third_party/WebKit/Source/core/dom/Document.cpp:4344: if (!frame()) On 2016/11/24 03:24:48, estark wrote: > On ...
4 years ago (2016-11-24 03:48:30 UTC) #35
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/2515373003/80001
4 years ago (2016-11-24 06:49:10 UTC) #40
commit-bot: I haz the power
Exceeded global retry quota
4 years ago (2016-11-24 08:22:30 UTC) #42
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/2515373003/80001
4 years ago (2016-11-24 15:30:14 UTC) #44
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-24 16:31:09 UTC) #46
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/7bdbe352cdbd7cc1dec2b71653e60b47688bd9e1 Cr-Commit-Position: refs/heads/master@{#434340}
4 years ago (2016-11-24 16:32:48 UTC) #48
tapted
4 years ago (2016-11-24 22:25:20 UTC) #49
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2531683002/ by tapted@chromium.org.

The reason for reverting is: Suspected for flaky failures on browser_tests for
Mac 10.9 asan, Mac 10.10

E.g.
SecurityStateTabHelperTestWithPasswordCcSwitch/SecurityStateTabHelperTestWithPasswordCcSwitch.PasswordSecurityLevelDowngradedFromIframe/0
SecurityStateTabHelperTest.PasswordSecurityLevelNotDowngradedWithoutSwitch

https://uberchromegw.corp.google.com/i/chromium.memory/builders/Mac%20ASan%20...
https://uberchromegw.corp.google.com/i/chromium.mac/builders/Mac10.10%20Tests...

Errors like

../../chrome/browser/ssl/security_state_tab_helper_browser_tests.cc:966: Failure
Value of: security_info.security_level
  Actual: 0
Expected: security_state::HTTP_SHOW_WARNING
Which is: 1
../../chrome/browser/ssl/security_state_tab_helper_browser_tests.cc:971: Failure
Value of: entry->GetSSL().content_status &
content::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP
  Actual: false
Expected: true.

Powered by Google App Engine
This is Rietveld 408576698