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

Commit a7f0ed46 authored by Ben Murdoch's avatar Ben Murdoch
Browse files

Add a flag to force suppression of the auth dialog.

Requires external/webkit change:
If8c6f22e8307e1e13b8f7ad29f79305ce24b3255

Requires packages/apps/Browser change:
Id901855830bbe17ede8a18293cff2bbc0aad4ba8

Bug: 5094761
Change-Id: Ida5708aad7cbe5633106e9ae2997c9231aaf95b8
parent bd391ba1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1129,7 +1129,8 @@ class BrowserFrame extends Handler {
     * synchronous call and unable to pump our MessageQueue.
     */
    private void didReceiveAuthenticationChallenge(
            final int handle, String host, String realm, final boolean useCachedCredentials) {
            final int handle, String host, String realm, final boolean useCachedCredentials,
            final boolean suppressDialog) {

        HttpAuthHandler handler = new HttpAuthHandler() {

@@ -1147,6 +1148,11 @@ class BrowserFrame extends Handler {
            public void cancel() {
                nativeAuthenticationCancel(handle);
            }

            @Override
            public boolean suppressDialog() {
                return suppressDialog;
            }
        };
        mCallbackProxy.onReceivedHttpAuthRequest(handler, host, realm);
    }
+8 −0
Original line number Diff line number Diff line
@@ -50,4 +50,12 @@ public class HttpAuthHandler extends Handler {
     */
    public void proceed(String username, String password) {
    }

    /**
     * return true if the prompt dialog should be suppressed.
     * @hide
     */
    public boolean suppressDialog() {
        return false;
    }
}