Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa6b9f55 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Do not show autofill++ or saved form data in incognito mode.

Bug:2968399

Also do not save the form data in incognito mode.

Change-Id: Ice6a1cb3620b5cf272b6b361ce11f8abef269a89
parent 8733bea4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -657,10 +657,11 @@ public class WebSettings {
    }

    /**
     *  Return whether the WebView is saving form data.
     *  Return whether the WebView is saving form data and displaying prior
     *  entries/autofill++.  Always false in private browsing mode.
     */
    public boolean getSaveFormData() {
        return mSaveFormData;
        return mSaveFormData && !mPrivateBrowsingEnabled;
    }

    /**