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

Issue 1878273002: Remove URLencode/URLdecode for the inner origin of blob: URLs (Closed)

Created:
4 years, 8 months ago by ncarter (slow)
Modified:
4 years, 8 months ago
CC:
blink-reviews, chromium-reviews, kinuko+watch, nasko, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove URLencode/URLdecode for the inner origin of blob: URLs This changes the value of "blob:" URLs from looking like this: blob:http%3A//localhost%3A8000/e80e38b8-cfe6-4b35-94c1-8519df140ede To this: blob:http://localhost:8000/e80e38b8-cfe6-4b35-94c1-8519df140ede The former case appears to be how Chrome has always done things. However, it is not spec compliant, and blob URLs produced this way are not understood properly by GURL/url::Origin. The new behavior makes Chrome consistent with Firefox, Safari, and https://w3c.github.io/FileAPI/#unicodeBlobURL I believe this is safe change, because blob URLs have transient lifetimes, that never outlast a browsing session. blink-dev "Intent to Implement/Ship" thread: https://groups.google.com/a/chromium.org/d/msg/blink-dev/zY4JH54zZhc/PJlsDr35BAAJ BUG=561644, 603278 TBR=brettw@chromium.org Committed: https://crrev.com/1b17dc30c89fc6a7a70a490ac942e853537fc2b9 Cr-Commit-Position: refs/heads/master@{#387703}

Patch Set 1 #

Patch Set 2 : Unescape constants in tests & code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -19 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/url_formatter/elide_url_unittest.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/fileapi/fileapi_message_filter_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/files/apply-blob-url-to-xhr-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/files/workers/worker-apply-blob-url-to-xhr-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xhr-to-blob-in-isolated-world.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-url-linkify.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-url-linkify-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/blob/BlobURL.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityPolicyTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878273002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878273002/20001
4 years, 8 months ago (2016-04-12 21:08:23 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-12 21:18:20 UTC) #4
ncarter (slow)
I'd like to try pushing ahead with this. I think the security benefit of having ...
4 years, 8 months ago (2016-04-13 17:42:54 UTC) #7
dmurph
We should watch for bug reports after this is in, but I generally support this ...
4 years, 8 months ago (2016-04-13 17:47:49 UTC) #8
dmurph
On 2016/04/13 at 17:47:49, dmurph wrote: > We should watch for bug reports after this ...
4 years, 8 months ago (2016-04-13 17:47:57 UTC) #9
dmurph
On 2016/04/13 at 17:47:49, dmurph wrote: > We should watch for bug reports after this ...
4 years, 8 months ago (2016-04-13 17:47:58 UTC) #10
Mike West
LGTM. Let's try it out. I'm sure we'll see some breakage, as this structure has ...
4 years, 8 months ago (2016-04-13 18:12:58 UTC) #11
michaeln
lgtm 2 > LGTM. Let's try it out. I'm sure we'll see some breakage, as ...
4 years, 8 months ago (2016-04-13 20:25:05 UTC) #12
ncarter (slow)
Per dcheng's advice, I went ahead and posted an "Intent To Implement/Ship" to blink-dev. I'll ...
4 years, 8 months ago (2016-04-13 21:56:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878273002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878273002/20001
4 years, 8 months ago (2016-04-14 18:16:04 UTC) #19
ncarter (slow)
+brettw for stuff outside of blink
4 years, 8 months ago (2016-04-14 18:21:21 UTC) #23
ncarter (slow)
TBRing brettw for the changes outside of blink, which are trivial.
4 years, 8 months ago (2016-04-15 20:01:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878273002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878273002/20001
4 years, 8 months ago (2016-04-15 20:02:52 UTC) #28
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-15 21:34:17 UTC) #30
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1b17dc30c89fc6a7a70a490ac942e853537fc2b9 Cr-Commit-Position: refs/heads/master@{#387703}
4 years, 8 months ago (2016-04-15 21:35:31 UTC) #32
brettw
4 years, 8 months ago (2016-04-18 17:08:19 UTC) #33
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698