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

Commit be1304f0 authored by Elliott Slaughter's avatar Elliott Slaughter
Browse files

Tweak fix for setXSSAuditorEnabled in LayoutTestController.

Change-Id: Iba9b67da8628e3880e8f6b18d2dc51337b9c58fb
parent c0b14c73
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1237,6 +1237,7 @@ public class WebSettings {
    /**
     * Sets whether XSS Auditor is enabled.
     * @param flag Whether XSS Auditor should be enabled.
     * @hide Only used by LayoutTestController.
     */
    public synchronized void setXSSAuditorEnabled(boolean flag) {
        if (mXSSAuditorEnabled != flag) {
+1 −2
Original line number Diff line number Diff line
@@ -281,8 +281,7 @@ public class CallbackProxy extends Handler implements EventSender, LayoutTestCon
            break;

        case SET_XSS_AUDITOR_ENABLED:
            mLayoutTestController.setXSSAuditorEnabled(
                msg.arg1 == 1 ? true : false);
            mLayoutTestController.setXSSAuditorEnabled(msg.arg1 == 1);
            break;
        }
    }
+1 −0
Original line number Diff line number Diff line
@@ -838,6 +838,7 @@ public class TestShellActivity extends Activity implements LayoutTestController
        settings.setDatabasePath(getDir("databases",0).getAbsolutePath());
        settings.setDomStorageEnabled(true);
        settings.setWorkersEnabled(false);
        settings.setXSSAuditorEnabled(false);
    }

    private WebView mWebView;