WebHTTPBody: Keep track of whether the data includes passwords.
[WebKit-https.git] / Source / WebCore / ChangeLog
index bf06ab0..e44d48d 100644 (file)
@@ -1,3 +1,22 @@
+2012-03-14  Marja Hölttä  <marja@google.com>
+
+        WebHTTPBody: Keep track of whether the data includes passwords.
+        https://bugs.webkit.org/show_bug.cgi?id=81003
+
+        Reviewed by Darin Fisher.
+
+        This change enables Chrome to save HTTP bodies selectively, only
+        if they don't contain passwords.
+
+        * loader/FormSubmission.cpp:
+        (WebCore::FormSubmission::create): Check if the data contains passwords.
+        * platform/network/FormData.cpp:
+        (WebCore::FormData::FormData): Added containsPasswordData, setContainsPasswordData.
+        * platform/network/FormData.h:
+        (WebCore::FormData::containsPasswordData): Added.
+        (WebCore::FormData::setHasPasswordData): Added.
+        (FormData):
+
 2012-03-14  Vsevolod Vlasov  <vsevik@chromium.org>
 
         Web Inspector: Add snippets tab to scripts navigator.