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

Issue 1457053004: Fix in-page logic for allow_universal_access_from_files. (Closed)

Created:
5 years, 1 month ago by Charlie Reis
Modified:
5 years, 1 month ago
Reviewers:
alexmos
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix in-page logic for allow_universal_access_from_files. The previous approach failed if a file URL did a replaceState to another origin and then back to a file URL. The new approach checks the frame's origin instead, which stays as file:// the whole time. BUG=553418 TEST=See bug comment 11 for repro steps. Committed: https://crrev.com/dc004e0d2c6f3d7a6815a0ef7a86bc1185c8adac Cr-Commit-Position: refs/heads/master@{#360917}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixes from review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -18 lines) Patch
M content/browser/frame_host/frame_tree_node.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 chunks +51 lines, -17 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Charlie Reis
Alex, can you take a look? Android Webview uses allow_universal_access_from_files, which means you can do ...
5 years, 1 month ago (2015-11-19 23:10:14 UTC) #2
alexmos
Tricky stuff, thanks for fixing! https://codereview.chromium.org/1457053004/diff/1/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/1457053004/diff/1/content/browser/frame_host/frame_tree_node.h#newcode130 content/browser/frame_host/frame_tree_node.h:130: const url::Origin& current_origin() const ...
5 years, 1 month ago (2015-11-20 18:07:36 UTC) #3
Charlie Reis
Thanks! New patch up. https://codereview.chromium.org/1457053004/diff/1/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/1457053004/diff/1/content/browser/frame_host/frame_tree_node.h#newcode130 content/browser/frame_host/frame_tree_node.h:130: const url::Origin& current_origin() const { ...
5 years, 1 month ago (2015-11-20 19:54:32 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457053004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457053004/20001
5 years, 1 month ago (2015-11-20 20:05:12 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-20 21:16:00 UTC) #8
alexmos
LGTM
5 years, 1 month ago (2015-11-20 21:17:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457053004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457053004/20001
5 years, 1 month ago (2015-11-20 21:22:16 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-20 21:28:55 UTC) #12
commit-bot: I haz the power
5 years, 1 month ago (2015-11-20 21:29:42 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dc004e0d2c6f3d7a6815a0ef7a86bc1185c8adac
Cr-Commit-Position: refs/heads/master@{#360917}

Powered by Google App Engine
This is Rietveld 408576698