Title: [209589] tags/Safari-603.1.14.3/Source/WebCore
Revision
209589
Author
[email protected]
Date
2016-12-08 17:51:17 -0800 (Thu, 08 Dec 2016)

Log Message

Merged r209415.  rdar://problem/29509424

Modified Paths

Diff

Modified: tags/Safari-603.1.14.3/Source/WebCore/ChangeLog (209588 => 209589)


--- tags/Safari-603.1.14.3/Source/WebCore/ChangeLog	2016-12-09 01:48:06 UTC (rev 209588)
+++ tags/Safari-603.1.14.3/Source/WebCore/ChangeLog	2016-12-09 01:51:17 UTC (rev 209589)
@@ -1,3 +1,22 @@
+2016-12-08  Babak Shafiei  <[email protected]>
+
+        Merge r209415.
+
+    2016-12-06  Chris Dumez  <[email protected]>
+
+            Add HTML interactive form validation blacklist for some WebKit-specific sites
+            https://bugs.webkit.org/show_bug.cgi?id=165470
+            <rdar://problem/29509424>
+
+            Reviewed by Simon Fraser.
+
+            Add HTML interactive form validation blacklist for some WebKit-specific sites
+            expecting our old behavior, until they get a chance to be updated.
+
+            * html/HTMLFormElement.cpp:
+            (WebCore::isURLBlacklistedForInteractiveFormValidation):
+            (WebCore::HTMLFormElement::prepareForSubmission):
+
 2016-12-05  Babak Shafiei  <[email protected]>
 
         Merge r209379.

Modified: tags/Safari-603.1.14.3/Source/WebCore/html/HTMLFormElement.cpp (209588 => 209589)


--- tags/Safari-603.1.14.3/Source/WebCore/html/HTMLFormElement.cpp	2016-12-09 01:48:06 UTC (rev 209588)
+++ tags/Safari-603.1.14.3/Source/WebCore/html/HTMLFormElement.cpp	2016-12-09 01:51:17 UTC (rev 209589)
@@ -254,6 +254,14 @@
     return false;
 }
 
+static bool isURLBlacklistedForInteractiveFormValidation(const URL& url)
+{
+    // FIXME: Remove this workaround once <rdar://problem/29518605> is fixed.
+    if (url.host() == "idmsa.apple.com")
+        return true;
+    return false;
+}
+
 void HTMLFormElement::prepareForSubmission(Event& event)
 {
     Frame* frame = document().frame();
@@ -263,7 +271,7 @@
     m_isSubmittingOrPreparingForSubmission = true;
     m_shouldSubmit = false;
 
-    bool shouldValidate = document().page() && document().page()->settings().interactiveFormValidationEnabled() && !noValidate();
+    bool shouldValidate = document().page() && document().page()->settings().interactiveFormValidationEnabled() && !noValidate() && !isURLBlacklistedForInteractiveFormValidation(document().url());
 
     HTMLFormControlElement* submitElement = submitElementFromEvent(event);
     if (submitElement && submitElement->formNoValidate())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to