Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Issue 286993008: For media element fetches, remove user:pass components always. (Closed)

Created:
6 years, 7 months ago by sof
Modified:
6 years, 7 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

For media element fetches, remove user:pass components always. The compatible behavior for media element fetches is to ignore any authorization information embedded in the URL. Insist on that by removing the user and password components before starting the fetch. Not doing so currently asserts in DocumentThreadableLoader::loadRequest(), which expects that portion of the URL to have been processed already, and removed. Satisfy that expectation here. R=japhet@chromium.org,acolwell@chromium.org,philipj@opera.com BUG=357269 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174248

Patch Set 1 #

Total comments: 6

Patch Set 2 : Improve comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -10 lines) Patch
A LayoutTests/http/tests/media/resources/video-check-userpass.php View 1 chunk +17 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/media/video-load-with-userpass.html View 3 chunks +5 lines, -5 lines 0 comments Download
A LayoutTests/http/tests/media/video-load-with-userpass-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 3 chunks +28 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sof
Please take a look.
6 years, 7 months ago (2014-05-16 16:02:47 UTC) #1
Nate Chapin
LGTM with some pedantry. https://codereview.chromium.org/286993008/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/286993008/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode893 Source/core/html/HTMLMediaElement.cpp:893: // Compatible behavior, and what ...
6 years, 7 months ago (2014-05-16 16:55:36 UTC) #2
acolwell GONE FROM CHROMIUM
lgtm % comments https://codereview.chromium.org/286993008/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/286993008/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode876 Source/core/html/HTMLMediaElement.cpp:876: startLoad(); nit: s/startLoad/startPlayerLoad/ just to make ...
6 years, 7 months ago (2014-05-16 17:32:19 UTC) #3
sof
Thanks for the quick reviews. https://codereview.chromium.org/286993008/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/286993008/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode876 Source/core/html/HTMLMediaElement.cpp:876: startLoad(); On 2014/05/16 17:32:19, ...
6 years, 7 months ago (2014-05-16 19:51:30 UTC) #4
philipj_slow
LGTM too.
6 years, 7 months ago (2014-05-16 22:24:54 UTC) #5
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 7 months ago (2014-05-17 05:53:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/286993008/20001
6 years, 7 months ago (2014-05-17 05:54:31 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-17 23:56:04 UTC) #8
sof
The CQ bit was unchecked by sigbjornf@opera.com
6 years, 7 months ago (2014-05-18 04:51:03 UTC) #9
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 7 months ago (2014-05-18 04:52:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/286993008/20001
6 years, 7 months ago (2014-05-18 04:52:50 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-18 23:57:37 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 07:27:42 UTC) #13
Message was sent while issue was closed.
Change committed as 174248

Powered by Google App Engine
This is Rietveld 408576698