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

Issue 2949593003: Move navigation-induced hiding of form-validation-bubble to the browser process. (Closed)

Created:
3 years, 6 months ago by Łukasz Anforowicz
Modified:
3 years, 6 months ago
CC:
chromium-reviews, sof, creis+watch_chromium.org, eae+blinkwatch, nasko+codewatch_chromium.org, jam, blink-reviews-dom_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-html_chromium.org, rwlbuis, Evan Stade
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move navigation-induced hiding of form-validation-bubble to the browser process. Moving hiding of the form validation bubble to the browser process has the following benefits: - It allows simplifying/removing code from Blink (in particular it allows removing some of the code added in r459701). - It makes the hiding immune against compromised renderers. - It makes the hiding work even if ViewHostMsg_HideValidationMessage IPC gets filtered out (i.e. see CanSendWhileSwappedOut method in content::SwappedOutMessages). This in turn will allow relanding of r479538. BUG=733940 TEST=Manually verified that bugs 733940, 704560, 673163 are still fixed. Review-Url: https://codereview.chromium.org/2949593003 Cr-Commit-Position: refs/heads/master@{#481681} Committed: https://chromium.googlesource.com/chromium/src/+/15399f887a0e8498253dc4496446eee83158e96a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove now unnecessary call from WebContentsImpl::RenderViewTerminated to delegate_->HideValidation… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -43 lines) Patch
M content/browser/web_contents/web_contents_impl.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 chunk +74 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentTest.cpp View 3 chunks +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormControlElementTest.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/Page.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/page/ValidationMessageClient.h View 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/page/ValidationMessageClientImpl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/ValidationMessageClientImpl.cpp View 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
Łukasz Anforowicz
tkent@, could you PTAL? This CL replaces some of renderer-side changes from your r459701 with ...
3 years, 6 months ago (2017-06-20 17:27:19 UTC) #8
tkent
third_party/WebKit lgtm. Looks very simple. Thanks!
3 years, 6 months ago (2017-06-20 23:14:52 UTC) #9
Łukasz Anforowicz
alexmos@, could you PTAL?
3 years, 6 months ago (2017-06-20 23:28:22 UTC) #11
Łukasz Anforowicz
+estade@ On 2017/06/20 23:14:52, tkent wrote: > Looks very simple. Thanks! All the credit for ...
3 years, 6 months ago (2017-06-21 00:53:18 UTC) #13
Evan Stade
hurray for -40 production LOC https://codereview.chromium.org/2949593003/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2949593003/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode4681 content/browser/web_contents/web_contents_impl.cc:4681: delegate_->HideValidationMessage(this); I think we ...
3 years, 6 months ago (2017-06-21 15:47:31 UTC) #15
Łukasz Anforowicz
https://codereview.chromium.org/2949593003/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2949593003/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode4681 content/browser/web_contents/web_contents_impl.cc:4681: delegate_->HideValidationMessage(this); On 2017/06/21 15:47:30, Evan Stade wrote: > I ...
3 years, 6 months ago (2017-06-21 16:31:13 UTC) #18
alexmos
This looks good, but one sanity check: CancelActiveAndPendingDialogs is called when any frame on the ...
3 years, 6 months ago (2017-06-21 21:32:27 UTC) #21
Łukasz Anforowicz
On 2017/06/21 21:32:27, alexmos wrote: > This looks good, but one sanity check: CancelActiveAndPendingDialogs is ...
3 years, 6 months ago (2017-06-22 17:47:17 UTC) #22
alexmos
LGTM. Thanks for filing the OOPIF bug! On 2017/06/22 17:47:17, Łukasz A. wrote: > On ...
3 years, 6 months ago (2017-06-22 18:06:46 UTC) #23
Łukasz Anforowicz
avi@, can you PTAL @ the question / concern below? On 2017/06/22 18:06:46, alexmos wrote: ...
3 years, 6 months ago (2017-06-22 18:19:54 UTC) #25
Avi (use Gerrit)
On 2017/06/22 18:19:54, Łukasz A. wrote: > avi@, can you PTAL @ the question / ...
3 years, 6 months ago (2017-06-22 18:37:02 UTC) #26
Łukasz Anforowicz
On 2017/06/22 18:37:02, Avi (ping after 24h) wrote: > On 2017/06/22 18:19:54, Łukasz A. wrote: ...
3 years, 6 months ago (2017-06-22 19:18:28 UTC) #27
Avi (use Gerrit)
On 2017/06/22 19:18:28, Łukasz A. wrote: > On 2017/06/22 18:37:02, Avi (ping after 24h) wrote: ...
3 years, 6 months ago (2017-06-22 19:22:11 UTC) #28
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/2949593003/20001
3 years, 6 months ago (2017-06-22 19:23:18 UTC) #31
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/15399f887a0e8498253dc4496446eee83158e96a
3 years, 6 months ago (2017-06-22 21:59:33 UTC) #34
dcheng
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2956593003/ by dcheng@chromium.org. ...
3 years, 6 months ago (2017-06-23 08:34:15 UTC) #35
dcheng
3 years, 6 months ago (2017-06-23 08:35:16 UTC) #37
Message was sent while issue was closed.
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Trusty...
is a failure.

Repro command:
testing/xvfb.py third_party/WebKit/Tools/Scripts/run-webkit-tests --seed 4
--no-show-results --full-results-html --clobber-old-results
--exit-after-n-failures 5000 --exit-after-n-crashes-or-timeouts 100
--additional-expectations third_party/WebKit/LayoutTests/LeakExpectations
--time-out-ms 48000 --enable-leak-detection
fast/forms/file/file-input-empty-validation.html -t builder

GN args:
is_component_build = false
is_debug = false
strip_absolute_paths_from_debug_symbols = true
use_goma = true

Powered by Google App Engine
This is Rietveld 408576698