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

Issue 2382973002: Convert WebSecurityOrigin -> GURL without re-parsing the url (Closed)

Created:
4 years, 2 months ago by Charlie Harrison
Modified:
4 years, 1 month ago
Reviewers:
Lei Zhang, esprehn, hubbe, dcheng
CC:
avayvod+watch_chromium.org, awdf+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eme-reviews_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, haraken, jam, kinuko+watch, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-notifications_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, nasko+codewatch_chromium.org, Peter Beverloo, posciak+watch_chromium.org, Nico, jww
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert WebSecurityOrigin -> GURL without re-parsing the url BUG=651554 Committed: https://crrev.com/d88f975e033692c119c62373f3782875fad40115 Cr-Commit-Position: refs/heads/master@{#427884}

Patch Set 1 #

Patch Set 2 : update includes #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : rebase on #427122 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -78 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 2 3 9 chunks +17 lines, -25 lines 0 comments Download
M chrome/renderer/extensions/media_galleries_custom_bindings.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/resource_request_policy.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/worker_content_settings_client_proxy.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/child/notifications/notification_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/child/notifications/notification_manager.cc View 1 4 chunks +4 lines, -5 lines 0 comments Download
M content/child/storage_util.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/dom_storage/local_storage_namespace.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/dom_storage/local_storage_namespace.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M content/renderer/dom_storage/webstoragenamespace_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/dom_storage/webstoragenamespace_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/cdm/pepper_cdm_wrapper_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 5 chunks +7 lines, -9 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/shared_worker/embedded_shared_worker_stub.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M media/blink/key_system_config_selector.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/blink/webcontentdecryptionmodule_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/blink/webencryptedmediaclient_impl.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_util.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/storage/StorageNamespace.cpp View 1 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebStorageNamespace.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (22 generated)
Charlie Harrison
Hi all, We now have a way to get GURLs from Origins without serializing + ...
4 years, 2 months ago (2016-10-04 04:09:26 UTC) #12
esprehn
lgtm https://codereview.chromium.org/2382973002/diff/40001/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp File third_party/WebKit/Source/modules/storage/StorageNamespace.cpp (right): https://codereview.chromium.org/2382973002/diff/40001/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp#newcode52 third_party/WebKit/Source/modules/storage/StorageNamespace.cpp:52: localStorageNamespace->createStorageArea(WebSecurityOrigin(origin))), Does WebSecurityOrigin not implicitly convert? I think ...
4 years, 2 months ago (2016-10-08 03:36:24 UTC) #15
dcheng
Out of curiosity, can we disallow people from writing WebStringToGURL(wso->toString()) by removing WebSecurityOrigin::toString() completely in ...
4 years, 2 months ago (2016-10-08 06:18:12 UTC) #17
Charlie Harrison
We can almost do that, but we may need to have a WebSecurityOrigin -> KURL ...
4 years, 2 months ago (2016-10-08 14:24:35 UTC) #18
Charlie Harrison
https://codereview.chromium.org/2382973002/diff/40001/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp File third_party/WebKit/Source/modules/storage/StorageNamespace.cpp (right): https://codereview.chromium.org/2382973002/diff/40001/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp#newcode52 third_party/WebKit/Source/modules/storage/StorageNamespace.cpp:52: localStorageNamespace->createStorageArea(WebSecurityOrigin(origin))), On 2016/10/08 03:36:23, esprehn wrote: > Does WebSecurityOrigin ...
4 years, 2 months ago (2016-10-09 02:40:12 UTC) #19
Charlie Harrison
-thakis, +thestig could you please look at chrome/renderer? hubbe, friendly ping for media/blink.
4 years, 2 months ago (2016-10-18 13:42:19 UTC) #21
Lei Zhang
lgtm!
4 years, 2 months ago (2016-10-18 16:40:26 UTC) #22
Charlie Harrison
hubbe, friendly ping
4 years, 1 month ago (2016-10-24 18:29:10 UTC) #23
hubbe
media/blink LGTM
4 years, 1 month ago (2016-10-24 18:34:29 UTC) #24
Charlie Harrison
Thanks! sending to CQ in 3...2...1..
4 years, 1 month ago (2016-10-24 18:38:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2382973002/40001
4 years, 1 month ago (2016-10-24 18:39:21 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/292368) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-10-24 18:43:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2382973002/60001
4 years, 1 month ago (2016-10-24 20:14:48 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/317950)
4 years, 1 month ago (2016-10-24 22:13:10 UTC) #34
Charlie Harrison
I think something might be wrong here with url::Origins not preserving SubOrigins. Let's hold off ...
4 years, 1 month ago (2016-10-25 04:36:44 UTC) #35
Charlie Harrison
jww@ has graciously fixed the problem here, where we weren't properly threading suborigins through WebSecurityOrigin. ...
4 years, 1 month ago (2016-10-26 22:25:23 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2382973002/60001
4 years, 1 month ago (2016-10-26 22:26:27 UTC) #38
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-26 23:57:07 UTC) #39
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 00:00:50 UTC) #41
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d88f975e033692c119c62373f3782875fad40115
Cr-Commit-Position: refs/heads/master@{#427884}

Powered by Google App Engine
This is Rietveld 408576698