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

Commit 09407b48 authored by John Reck's avatar John Reck
Browse files

Send correct cookies for HTML5 video when incognito

 Bug: 3489551

Change-Id: Ic35ec725e72e97830afff2fb0392b2300d8c45f6
parent e4dcf094
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -184,12 +184,13 @@ class HTML5VideoViewProxy extends Handler
            mVideoView.setWillNotDraw(false);
            mVideoView.setMediaController(new MediaController(proxy.getContext()));

            String cookieValue = CookieManager.getInstance().getCookie(url);
            boolean isPrivate = mCurrentProxy.getWebView().isPrivateBrowsingEnabled();
            String cookieValue = CookieManager.getInstance().getCookie(url, isPrivate);
            Map<String, String> headers = new HashMap<String, String>();
            if (cookieValue != null) {
                headers.put(COOKIE, cookieValue);
            }
            if (mCurrentProxy.getWebView().isPrivateBrowsingEnabled()) {
            if (isPrivate) {
                headers.put(HIDE_URL_LOGS, "true");
            }