<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[237647] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/237647">237647</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2018-10-31 13:08:43 -0700 (Wed, 31 Oct 2018)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add credit card autofill button
https://bugs.webkit.org/show_bug.cgi?id=191051
<rdar://problem/45657011>

Patch by Zach Li <zacharyli323@gmail.com> on 2018-10-31
Reviewed by Wenson Hsieh.

Source/WebCore:

Test: fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html

* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
* css/html.css:
(input::-webkit-credit-card-auto-fill-button):
Add credit card autofill button.
(input::-webkit-credit-card-auto-fill-button:hover):
(input::-webkit-credit-card-auto-fill-button:active):
* html/HTMLTextFormControlElement.h:
* html/TextFieldInputType.cpp:
(WebCore::autoFillButtonTypeToAccessibilityLabel):
(WebCore::autoFillButtonTypeToAutoFillButtonText):
(WebCore::autoFillButtonTypeToAutoFillButtonPseudoClassName):
(WebCore::isAutoFillButtonTypeChanged):
* platform/LocalizedStrings.cpp:
(WebCore::AXAutoFillCreditCardLabel):
* platform/LocalizedStrings.h:
* testing/Internals.cpp:
(WebCore::toAutoFillButtonType):
(WebCore::toInternalsAutoFillButtonType):
* testing/Internals.h:
* testing/Internals.idl:

Source/WebKit:

* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
(toAutoFillButtonType):
(toWKAutoFillButtonType):
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandlePrivate.h:
Introduce a new button type for credit card autofill.
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
(toAutoFillButtonType):
(toWKAutoFillButtonType):
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:

LayoutTests:

* fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt: Added.
* fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html: Added.
* fast/forms/auto-fill-button/last-auto-fill-button-type-expected.txt:
* fast/forms/auto-fill-button/last-auto-fill-button-type.html:
* platform/ios-simulator/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt: Added.
* platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png: Added.
* platform/win/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttonlastautofillbuttontypeexpectedtxt">trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttonlastautofillbuttontypehtml">trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type.html</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilitymacWebAccessibilityObjectWrapperMacmm">trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm</a></li>
<li><a href="#trunkSourceWebCorecsshtmlcss">trunk/Source/WebCore/css/html.css</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTextFormControlElementh">trunk/Source/WebCore/html/HTMLTextFormControlElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlTextFieldInputTypecpp">trunk/Source/WebCore/html/TextFieldInputType.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformLocalizedStringscpp">trunk/Source/WebCore/platform/LocalizedStrings.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformLocalizedStringsh">trunk/Source/WebCore/platform/LocalizedStrings.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsh">trunk/Source/WebCore/testing/Internals.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsidl">trunk/Source/WebCore/testing/Internals.idl</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlemm">trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlePrivateh">trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandlePrivate.h</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlecpp">trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlePrivateh">trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputcreditcardautofillbuttonexpectedtxt">trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputcreditcardautofillbuttonhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatorfastformsautofillbuttoninputcreditcardautofillbuttonexpectedtxt">trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacfastformsautofillbuttoninputcreditcardautofillbuttonexpectedpng">trunk/LayoutTests/platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformwinfastformsautofillbuttoninputcreditcardautofillbuttonexpectedtxt">trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/LayoutTests/ChangeLog 2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2018-10-31  Zach Li  <zacharyli323@gmail.com>
+
+        Add credit card autofill button
+        https://bugs.webkit.org/show_bug.cgi?id=191051
+        <rdar://problem/45657011>
+
+        Reviewed by Wenson Hsieh.
+
+        * fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt: Added.
+        * fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html: Added.
+        * fast/forms/auto-fill-button/last-auto-fill-button-type-expected.txt:
+        * fast/forms/auto-fill-button/last-auto-fill-button-type.html:
+        * platform/ios-simulator/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt: Added.
+        * platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png: Added.
+        * platform/win/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt: Added.
+
</ins><span class="cx"> 2018-10-31  Devin Rousso  <drousso@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Web Inspector: Audit: show metadata for results
</span></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputcreditcardautofillbuttonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt (0 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt                            (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt       2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x81
+  RenderBlock {HTML} at (0,0) size 800x81
+    RenderBody {BODY} at (8,16) size 784x57
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 582x18
+          text run at (0,0) width 196: "This tests that the Credit Card "
+          text run at (195,0) width 387: "AutoFill button renders. It can only be tested in the test tool."
+      RenderBlock {DIV} at (0,34) size 784x23
+        RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 113x13
+        RenderText {#text} at (149,2) size 5x18
+          text run at (149,2) width 5: " "
+        RenderTextControl {INPUT} at (155,2) size 147x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 113x13
+        RenderText {#text} at (303,2) size 5x18
+          text run at (303,2) width 5: " "
+        RenderTextControl {INPUT} at (309,2) size 147x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 113x13
+        RenderText {#text} at (457,2) size 5x18
+          text run at (457,2) width 5: " "
+        RenderTextControl {INPUT} at (463,2) size 147x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 113x13
+layer at (13,55) size 113x13
+  RenderBlock {DIV} at (0,0) size 113x13
+layer at (167,55) size 113x13
+  RenderBlock {DIV} at (0,0) size 113x13
+layer at (321,55) size 113x13
+  RenderBlock {DIV} at (0,0) size 113x13
+layer at (475,55) size 113x13
+  RenderBlock {DIV} at (0,0) size 113x13
+layer at (129,56) size 22x12
+  RenderBlock {DIV} at (115,0) size 23x13 [bgcolor=#000000]
+layer at (283,56) size 22x12
+  RenderBlock {DIV} at (115,0) size 23x13 [bgcolor=#000000]
+layer at (437,56) size 22x12
+  RenderBlock {DIV} at (115,0) size 23x13 [bgcolor=#000000]
+layer at (591,56) size 22x12
+  RenderBlock {DIV} at (115,0) size 23x13 [bgcolor=#000000]
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputcreditcardautofillbuttonhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html (0 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html                            (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html       2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<body>
+<p>This tests that the Credit Card  AutoFill button renders. It can only be tested in the test tool.</p>
+<div id="container">
+    <input type="text">
+    <input type="text" name="cc_number">
+    <input type="text" name="cc_holder">
+</div>
+<script>
+
+if (window.internals) {
+    var inputs = document.querySelectorAll("input");
+    for (var i = 0; i < inputs.length; ++i)
+        window.internals.setShowAutoFillButton(inputs[i], "CreditCard");
+
+    var dynamicInput = document.createElement("input");
+    window.internals.setShowAutoFillButton(dynamicInput, "CreditCard");
+    document.querySelector("#container").appendChild(dynamicInput);
+}
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttonlastautofillbuttontypeexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type-expected.txt (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type-expected.txt    2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type-expected.txt       2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -16,9 +16,12 @@
</span><span class="cx"> internals.setShowAutoFillButton(inputElement, 'Credentials')
</span><span class="cx"> PASS internals.autoFillButtonType(inputElement) is "Credentials"
</span><span class="cx"> PASS internals.lastAutoFillButtonType(inputElement) is "StrongPassword"
</span><ins>+internals.setShowAutoFillButton(inputElement, 'CreditCard')
+PASS internals.autoFillButtonType(inputElement) is "CreditCard"
+PASS internals.lastAutoFillButtonType(inputElement) is "Credentials"
</ins><span class="cx"> internals.setShowAutoFillButton(inputElement, 'None')
</span><span class="cx"> PASS internals.autoFillButtonType(inputElement) is "None"
</span><del>-PASS internals.lastAutoFillButtonType(inputElement) is "Credentials"
</del><ins>+PASS internals.lastAutoFillButtonType(inputElement) is "CreditCard"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttonlastautofillbuttontypehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type.html (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type.html    2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/last-auto-fill-button-type.html       2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -25,9 +25,12 @@
</span><span class="cx">     evalAndLog("internals.setShowAutoFillButton(inputElement, 'Credentials')");
</span><span class="cx">     shouldBeEqualToString("internals.autoFillButtonType(inputElement)", "Credentials");
</span><span class="cx">     shouldBeEqualToString("internals.lastAutoFillButtonType(inputElement)", "StrongPassword");
</span><ins>+    evalAndLog("internals.setShowAutoFillButton(inputElement, 'CreditCard')");
+    shouldBeEqualToString("internals.autoFillButtonType(inputElement)", "CreditCard");
+    shouldBeEqualToString("internals.lastAutoFillButtonType(inputElement)", "Credentials");
</ins><span class="cx">     evalAndLog("internals.setShowAutoFillButton(inputElement, 'None')");
</span><span class="cx">     shouldBeEqualToString("internals.autoFillButtonType(inputElement)", "None");
</span><del>-    shouldBeEqualToString("internals.lastAutoFillButtonType(inputElement)", "Credentials");
</del><ins>+    shouldBeEqualToString("internals.lastAutoFillButtonType(inputElement)", "CreditCard");
</ins><span class="cx"> }
</span><span class="cx"> </script>
</span><span class="cx"> </body>
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorfastformsautofillbuttoninputcreditcardautofillbuttonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt (0 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt                             (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt        2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x85
+  RenderBlock {HTML} at (0,0) size 800x85
+    RenderBody {BODY} at (8,16) size 784x61
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 582x19
+          text run at (0,0) width 196: "This tests that the Credit Card "
+          text run at (195,0) width 387: "AutoFill button renders. It can only be tested in the test tool."
+      RenderBlock {DIV} at (0,36) size 784x25
+        RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+          RenderFlexibleBox {DIV} at (6,3) size 123x15
+            RenderBlock {DIV} at (0,0) size 96x14
+        RenderText {#text} at (139,1) size 5x19
+          text run at (139,1) width 5: " "
+        RenderTextControl {INPUT} at (145,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+          RenderFlexibleBox {DIV} at (6,3) size 123x15
+            RenderBlock {DIV} at (0,0) size 96x14
+        RenderText {#text} at (282,1) size 5x19
+          text run at (282,1) width 5: " "
+        RenderTextControl {INPUT} at (288,2) size 137x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+          RenderFlexibleBox {DIV} at (6,3) size 123x15
+            RenderBlock {DIV} at (0,0) size 96x14
+        RenderText {#text} at (426,1) size 5x19
+          text run at (426,1) width 5: " "
+        RenderTextControl {INPUT} at (432,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+          RenderFlexibleBox {DIV} at (6,3) size 123x15
+            RenderBlock {DIV} at (0,0) size 96x14
+layer at (17,57) size 95x14
+  RenderBlock {DIV} at (0,0) size 96x14
+layer at (160,57) size 95x14
+  RenderBlock {DIV} at (0,0) size 96x14
+layer at (303,57) size 95x14
+  RenderBlock {DIV} at (0,0) size 96x14
+layer at (447,57) size 95x14
+  RenderBlock {DIV} at (0,0) size 96x14
+layer at (115,58) size 22x12
+  RenderBlock {DIV} at (98,1) size 23x12 [bgcolor=#000000]
+layer at (258,58) size 22x12
+  RenderBlock {DIV} at (98,1) size 23x12 [bgcolor=#000000]
+layer at (402,58) size 22x12
+  RenderBlock {DIV} at (98,1) size 23x12 [bgcolor=#000000]
+layer at (545,58) size 22x12
+  RenderBlock {DIV} at (98,1) size 23x12 [bgcolor=#000000]
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacfastformsautofillbuttoninputcreditcardautofillbuttonexpectedpng"></a>
<div class="binary"><h4>Added: trunk/LayoutTests/platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<span class="cx">Index: trunk/LayoutTests/platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png
</span><span class="cx">===================================================================
</span><del>--- trunk/LayoutTests/platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png  2018-10-31 20:05:46 UTC (rev 237646)
</del><ins>+++ trunk/LayoutTests/platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png   2018-10-31 20:08:43 UTC (rev 237647)
</ins><span class="cx">Property changes on: trunk/LayoutTests/platform/mac/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.png
</span><span class="cx">___________________________________________________________________
</span><a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<ins>+image/png
</ins><span class="cx">\ No newline at end of property
</span><a id="trunkLayoutTestsplatformwinfastformsautofillbuttoninputcreditcardautofillbuttonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt (0 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt                               (rev 0)
+++ trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-credit-card-auto-fill-button-expected.txt  2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x83
+  RenderBlock {HTML} at (0,0) size 800x83
+    RenderBody {BODY} at (8,16) size 784x59
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 568x18
+          text run at (0,0) width 191: "This tests that the Credit Card "
+          text run at (191,0) width 377: "AutoFill button renders. It can only be tested in the test tool."
+      RenderBlock {DIV} at (0,34) size 784x25
+        RenderTextControl {INPUT} at (2,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (2,3) size 145x15
+            RenderBlock {DIV} at (0,0) size 118x15
+        RenderText {#text} at (153,3) size 4x18
+          text run at (153,3) width 4: " "
+        RenderTextControl {INPUT} at (159,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (2,3) size 145x15
+            RenderBlock {DIV} at (0,0) size 118x15
+        RenderText {#text} at (310,3) size 4x18
+          text run at (310,3) width 4: " "
+        RenderTextControl {INPUT} at (316,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (2,3) size 145x15
+            RenderBlock {DIV} at (0,0) size 118x15
+        RenderText {#text} at (467,3) size 4x18
+          text run at (467,3) width 4: " "
+        RenderTextControl {INPUT} at (473,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (2,3) size 145x15
+            RenderBlock {DIV} at (0,0) size 118x15
+layer at (12,55) size 118x15
+  RenderBlock {DIV} at (0,0) size 118x15
+layer at (169,55) size 118x15
+  RenderBlock {DIV} at (0,0) size 118x15
+layer at (326,55) size 118x15
+  RenderBlock {DIV} at (0,0) size 118x15
+layer at (483,55) size 118x15
+  RenderBlock {DIV} at (0,0) size 118x15
+layer at (133,57) size 22x12
+  RenderBlock {DIV} at (121,1) size 22x13 [bgcolor=#000000]
+layer at (290,57) size 22x12
+  RenderBlock {DIV} at (121,1) size 22x13 [bgcolor=#000000]
+layer at (447,57) size 22x12
+  RenderBlock {DIV} at (121,1) size 22x13 [bgcolor=#000000]
+layer at (604,57) size 22x12
+  RenderBlock {DIV} at (121,1) size 22x13 [bgcolor=#000000]
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/ChangeLog      2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -1,3 +1,35 @@
</span><ins>+2018-10-31  Zach Li  <zacharyli323@gmail.com>
+
+        Add credit card autofill button
+        https://bugs.webkit.org/show_bug.cgi?id=191051
+        <rdar://problem/45657011>
+
+        Reviewed by Wenson Hsieh.
+
+        Test: fast/forms/auto-fill-button/input-credit-card-auto-fill-button.html
+
+        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
+        (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
+        * css/html.css:
+        (input::-webkit-credit-card-auto-fill-button):
+        Add credit card autofill button.
+        (input::-webkit-credit-card-auto-fill-button:hover):
+        (input::-webkit-credit-card-auto-fill-button:active):
+        * html/HTMLTextFormControlElement.h:
+        * html/TextFieldInputType.cpp:
+        (WebCore::autoFillButtonTypeToAccessibilityLabel):
+        (WebCore::autoFillButtonTypeToAutoFillButtonText):
+        (WebCore::autoFillButtonTypeToAutoFillButtonPseudoClassName):
+        (WebCore::isAutoFillButtonTypeChanged):
+        * platform/LocalizedStrings.cpp:
+        (WebCore::AXAutoFillCreditCardLabel):
+        * platform/LocalizedStrings.h:
+        * testing/Internals.cpp:
+        (WebCore::toAutoFillButtonType):
+        (WebCore::toInternalsAutoFillButtonType):
+        * testing/Internals.h:
+        * testing/Internals.idl:
+
</ins><span class="cx"> 2018-10-31  Eric Carlson  <eric.carlson@apple.com>
</span><span class="cx"> 
</span><span class="cx">         [MediaStream] Don't reveal device IDs until the user has granted permission to capture
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilitymacWebAccessibilityObjectWrapperMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm       2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm  2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -3110,6 +3110,8 @@
</span><span class="cx">             return @"contacts";
</span><span class="cx">         case AutoFillButtonType::StrongPassword:
</span><span class="cx">             return @"strong password";
</span><ins>+        case AutoFillButtonType::CreditCard:
+            return @"credit card";
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceWebCorecsshtmlcss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/html.css (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/html.css        2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/css/html.css   2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -602,6 +602,26 @@
</span><span class="cx">     background-color: rgb(0, 60, 219);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+input::-webkit-credit-card-auto-fill-button {
+    -webkit-mask-image: -webkit-image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAYCAYAAAC1Ft6mAAAAAXNSR0IArs4c6QAAAYlJREFUWAntmD1OA0EMhQMFBBACCRqq5F4cANHDAZAoaBB00NAiDkSXggvQIAp+JH7eVziYkZddKTOzKPAka2yPx/aLN5NVBoM5xKo4XUmeJB8VhDrUo24RkLwGkbQGdbNjQRn5xIbZM7cnfFbISnvYH49gQjwKfYH6WbGYNdsvSPZPqNIQblTnRbLXsR5xXDKcK3Zlj5R7M5GtpJ7MEK/y2jW/H0Z8Odm3WM5NDXPmWiETweeP9vEdSHxcEykm4+MOOewdOfVZCNHXkevtXfouTgfsN4n1fGx75si9zkqI/k5cwzRvpFIyxE2Rm4jl4/uSYlkO22ftgpTUpQ75yXwjQ0JfoLbehRAxpw19nkUJapPw9aJ+Ih9vFBcSfxY7fNPwQbX1qPkmH80zEa7mc0lIBickDGMpD2ZoHUruJDvOh7ouuZWMMBy2pU+c3aaGTbUd+mk/ffXZSIL59eUTSW+sR/mWJGsSj3tv9KGnE6rdQ5EJMYU+UKQuj9x1H2xK1p27P0l6GlCZsp/oV3aRfWEA1gAAAABJRU5ErkJggg==") 2x);
+    -webkit-mask-size: 22px 12px;
+    width: 22px;
+    height: 12px;
+    margin-left: 3px;
+    margin-right: 2px;
+    background-color: black;
+    flex: none;
+    -webkit-user-select: none;
+}
+
+input::-webkit-credit-card-auto-fill-button:hover {
+    background-color: rgb(0, 122, 255);
+}
+
+input::-webkit-credit-card-auto-fill-button:active {
+    background-color: rgb(0, 60, 219);
+}
+
</ins><span class="cx"> input::-webkit-caps-lock-indicator {
</span><span class="cx">     -webkit-appearance: caps-lock-indicator;
</span><span class="cx">     content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17"><path fill="black" fill-opacity="0.4" d="M12.5 0.5A 4 4 0 0 1 16.5 4.5L 16.5 12.5A 4 4 0 0 1 12.5 16.5L 4.5 16.5A 4 4 0 0 1 0.5 12.5L 0.5 4.5A 4 4 0 0 1 4.5 0.5L 12.5 0.5M 8.5 2L 4 7L 6.25 7L 6.25 10.25L 10.75 10.25L 10.75 7L 13 7L 8.5 2M 10.75 12L 6.25 12L 6.25 14.25L 10.75 14.25L 10.75 12"/></svg>');
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTextFormControlElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTextFormControlElement.h (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTextFormControlElement.h   2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/html/HTMLTextFormControlElement.h      2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx"> class TextControlInnerTextElement;
</span><span class="cx"> class VisiblePosition;
</span><span class="cx"> 
</span><del>-enum class AutoFillButtonType : uint8_t { None, Credentials, Contacts, StrongPassword };
</del><ins>+enum class AutoFillButtonType : uint8_t { None, Credentials, Contacts, StrongPassword, CreditCard };
</ins><span class="cx"> enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardDirection, SelectionHasBackwardDirection };
</span><span class="cx"> enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInputAndChangeEvent };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlTextFieldInputTypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/TextFieldInputType.cpp (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/TextFieldInputType.cpp 2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/html/TextFieldInputType.cpp    2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -480,6 +480,8 @@
</span><span class="cx">         return AXAutoFillCredentialsLabel();
</span><span class="cx">     case AutoFillButtonType::StrongPassword:
</span><span class="cx">         return AXAutoFillStrongPasswordLabel();
</span><ins>+    case AutoFillButtonType::CreditCard:
+        return AXAutoFillCreditCardLabel();
</ins><span class="cx">     case AutoFillButtonType::None:
</span><span class="cx">         ASSERT_NOT_REACHED();
</span><span class="cx">         return { };
</span><span class="lines">@@ -493,6 +495,7 @@
</span><span class="cx">     switch (autoFillButtonType) {
</span><span class="cx">     case AutoFillButtonType::Contacts:
</span><span class="cx">     case AutoFillButtonType::Credentials:
</span><ins>+    case AutoFillButtonType::CreditCard:
</ins><span class="cx">         return emptyString();
</span><span class="cx">     case AutoFillButtonType::StrongPassword:
</span><span class="cx">         return autoFillStrongPasswordLabel();
</span><span class="lines">@@ -513,6 +516,8 @@
</span><span class="cx">         return { "-webkit-credentials-auto-fill-button", AtomicString::ConstructFromLiteral };
</span><span class="cx">     case AutoFillButtonType::StrongPassword:
</span><span class="cx">         return { "-webkit-strong-password-auto-fill-button", AtomicString::ConstructFromLiteral };
</span><ins>+    case AutoFillButtonType::CreditCard:
+        return { "-webkit-credit-card-auto-fill-button", AtomicString::ConstructFromLiteral };
</ins><span class="cx">     case AutoFillButtonType::None:
</span><span class="cx">         ASSERT_NOT_REACHED();
</span><span class="cx">         return emptyAtom();
</span><span class="lines">@@ -529,6 +534,8 @@
</span><span class="cx">         return true;
</span><span class="cx">     if (attribute == "-webkit-strong-password-auto-fill-button" && autoFillButtonType != AutoFillButtonType::StrongPassword)
</span><span class="cx">         return true;
</span><ins>+    if (attribute == "-webkit-credit-card-auto-fill-button" && autoFillButtonType != AutoFillButtonType::CreditCard)
+        return true;
</ins><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLocalizedStringscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/LocalizedStrings.cpp (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/LocalizedStrings.cpp       2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/platform/LocalizedStrings.cpp  2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -625,6 +625,11 @@
</span><span class="cx">     return WEB_UI_STRING("strong password auto fill", "Label for the strong password auto fill button inside a text field.");
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String AXAutoFillCreditCardLabel()
+{
+    return WEB_UI_STRING("credit card auto fill", "Label for the credit card auto fill button inside a text field.");
+}
+
</ins><span class="cx"> String autoFillStrongPasswordLabel()
</span><span class="cx"> {
</span><span class="cx">     return WEB_UI_STRING("Strong Password", "Label for strong password.");
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLocalizedStringsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/LocalizedStrings.h (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/LocalizedStrings.h 2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/platform/LocalizedStrings.h    2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -216,6 +216,7 @@
</span><span class="cx">     String AXAutoFillCredentialsLabel();
</span><span class="cx">     String AXAutoFillContactsLabel();
</span><span class="cx">     String AXAutoFillStrongPasswordLabel();
</span><ins>+    String AXAutoFillCreditCardLabel();
</ins><span class="cx">     String autoFillStrongPasswordLabel();
</span><span class="cx"> 
</span><span class="cx">     String missingPluginText();
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp       2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/testing/Internals.cpp  2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -1778,6 +1778,8 @@
</span><span class="cx">         return AutoFillButtonType::Contacts;
</span><span class="cx">     case Internals::AutoFillButtonType::StrongPassword:
</span><span class="cx">         return AutoFillButtonType::StrongPassword;
</span><ins>+    case Internals::AutoFillButtonType::CreditCard:
+        return AutoFillButtonType::CreditCard;
</ins><span class="cx">     }
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx">     return AutoFillButtonType::None;
</span><span class="lines">@@ -1794,6 +1796,8 @@
</span><span class="cx">         return Internals::AutoFillButtonType::Contacts;
</span><span class="cx">     case AutoFillButtonType::StrongPassword:
</span><span class="cx">         return Internals::AutoFillButtonType::StrongPassword;
</span><ins>+    case AutoFillButtonType::CreditCard:
+        return Internals::AutoFillButtonType::CreditCard;
</ins><span class="cx">     }
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx">     return Internals::AutoFillButtonType::None;
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.h (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.h 2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/testing/Internals.h    2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -254,7 +254,7 @@
</span><span class="cx">     bool elementShouldAutoComplete(HTMLInputElement&);
</span><span class="cx">     void setEditingValue(HTMLInputElement&, const String&);
</span><span class="cx">     void setAutofilled(HTMLInputElement&, bool enabled);
</span><del>-    enum class AutoFillButtonType { None, Contacts, Credentials, StrongPassword };
</del><ins>+    enum class AutoFillButtonType { None, Contacts, Credentials, StrongPassword, CreditCard };
</ins><span class="cx">     void setShowAutoFillButton(HTMLInputElement&, AutoFillButtonType);
</span><span class="cx">     AutoFillButtonType autoFillButtonType(const HTMLInputElement&);
</span><span class="cx">     AutoFillButtonType lastAutoFillButtonType(const HTMLInputElement&);
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.idl (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.idl       2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebCore/testing/Internals.idl  2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -62,7 +62,8 @@
</span><span class="cx">     "None",
</span><span class="cx">     "Contacts",
</span><span class="cx">     "Credentials",
</span><del>-    "StrongPassword"
</del><ins>+    "StrongPassword",
+    "CreditCard"
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> enum UserInterfaceLayoutDirection {
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog    2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebKit/ChangeLog       2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2018-10-31  Zach Li  <zacharyli323@gmail.com>
+
+        Add credit card autofill button
+        https://bugs.webkit.org/show_bug.cgi?id=191051
+        <rdar://problem/45657011>
+
+        Reviewed by Wenson Hsieh.
+
+        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
+        (toAutoFillButtonType):
+        (toWKAutoFillButtonType):
+        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandlePrivate.h:
+        Introduce a new button type for credit card autofill.
+        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
+        (toAutoFillButtonType):
+        (toWKAutoFillButtonType):
+        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
+
</ins><span class="cx"> 2018-10-31  Chris Dumez  <cdumez@apple.com>
</span><span class="cx"> 
</span><span class="cx">         [PSON] When process-swapping for a POST request the HTTP body gets dropped
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm  2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm     2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -127,6 +127,8 @@
</span><span class="cx">         return WebCore::AutoFillButtonType::Credentials;
</span><span class="cx">     case _WKAutoFillButtonTypeStrongPassword:
</span><span class="cx">         return WebCore::AutoFillButtonType::StrongPassword;
</span><ins>+    case _WKAutoFillButtonTypeCreditCard:
+        return WebCore::AutoFillButtonType::CreditCard;
</ins><span class="cx">     }
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx">     return WebCore::AutoFillButtonType::None;
</span><span class="lines">@@ -143,6 +145,8 @@
</span><span class="cx">         return _WKAutoFillButtonTypeCredentials;
</span><span class="cx">     case WebCore::AutoFillButtonType::StrongPassword:
</span><span class="cx">         return _WKAutoFillButtonTypeStrongPassword;
</span><ins>+    case WebCore::AutoFillButtonType::CreditCard:
+        return _WKAutoFillButtonTypeCreditCard;
</ins><span class="cx">     }
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx">     return _WKAutoFillButtonTypeNone;
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlePrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandlePrivate.h (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandlePrivate.h    2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandlePrivate.h       2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -32,6 +32,7 @@
</span><span class="cx">     _WKAutoFillButtonTypeCredentials,
</span><span class="cx">     _WKAutoFillButtonTypeContacts,
</span><span class="cx">     _WKAutoFillButtonTypeStrongPassword,
</span><ins>+    _WKAutoFillButtonTypeCreditCard WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)),
</ins><span class="cx"> } WK_API_AVAILABLE(macosx(10.13.4), ios(11.3));
</span><span class="cx"> 
</span><span class="cx"> @interface WKWebProcessPlugInNodeHandle (WKPrivate)
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp       2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp  2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -48,6 +48,8 @@
</span><span class="cx">         return WebCore::AutoFillButtonType::Credentials;
</span><span class="cx">     case kWKAutoFillButtonTypeStrongPassword:
</span><span class="cx">         return WebCore::AutoFillButtonType::StrongPassword;
</span><ins>+    case kWKAutoFillButtonTypeCreditCard:
+        return WebCore::AutoFillButtonType::CreditCard;
</ins><span class="cx">     }
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx">     return WebCore::AutoFillButtonType::None;
</span><span class="lines">@@ -64,6 +66,8 @@
</span><span class="cx">         return kWKAutoFillButtonTypeCredentials;
</span><span class="cx">     case WebCore::AutoFillButtonType::StrongPassword:
</span><span class="cx">         return kWKAutoFillButtonTypeStrongPassword;
</span><ins>+    case WebCore::AutoFillButtonType::CreditCard:
+        return kWKAutoFillButtonTypeCreditCard;
</ins><span class="cx">     }
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx">     return kWKAutoFillButtonTypeNone;
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlePrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h (237646 => 237647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h  2018-10-31 20:05:46 UTC (rev 237646)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h     2018-10-31 20:08:43 UTC (rev 237647)
</span><span class="lines">@@ -40,6 +40,7 @@
</span><span class="cx">     kWKAutoFillButtonTypeCredentials,
</span><span class="cx">     kWKAutoFillButtonTypeContacts,
</span><span class="cx">     kWKAutoFillButtonTypeStrongPassword,
</span><ins>+    kWKAutoFillButtonTypeCreditCard,
</ins><span class="cx"> };
</span><span class="cx"> typedef uint8_t WKAutoFillButtonType;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>