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

Commit 7a3a51d0 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Send correct cookies for HTML5 video when incognito"

parents e6c52402 09407b48
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");
            }