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

Unified Diff: Source/core/html/forms/URLInputType.h

Issue 836113002: Input type url with line break and leading-trailing whitespace should be stripped. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update 1 : Used testharness.js for LayoutTests. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/forms/URLInputType.h
diff --git a/Source/core/html/forms/URLInputType.h b/Source/core/html/forms/URLInputType.h
index df2b4ba70f533102cfae212ef8e0b3665294704e..5e6ab1c9fd17d6bd5ff2ea6770131c15301fbfe4 100644
--- a/Source/core/html/forms/URLInputType.h
+++ b/Source/core/html/forms/URLInputType.h
@@ -43,6 +43,7 @@ private:
URLInputType(HTMLInputElement& element) : BaseTextInputType(element) { }
virtual void countUsage() override;
virtual const AtomicString& formControlType() const override;
+ virtual String sanitizeValue(const String&) const override;
virtual bool typeMismatchFor(const String&) const override;
virtual bool typeMismatch() const override;
virtual String typeMismatchText() const override;
« no previous file with comments | « LayoutTests/fast/forms/url-with-line-break-and-whitespace.html ('k') | Source/core/html/forms/URLInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698