forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reparse File GURLs when doing ReplaceComponents on Win32
File GURLs with Windows-drive-letter are stripped of its hostname when parsed, but this doesn't happen when GURL was created through ReplaceComponents, as it doesn't go through the special DoParseUNC path. This leads to unexpected changes to the URL when it gets serialized and reparsed (e.g. for IPC calls). To avoid this, this CL makes it so that ReplaceComponents also goes through the parsing logic by forcing reparsing of file URLS on Windows. Bug: 1214098 Change-Id: Ib92f4bd503766fadc1dd80fd31d94714c174f14a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2992912 Commit-Queue: Matt Falkenhagen <falken@chromium.org> Auto-Submit: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#900501}
- Loading branch information
Showing
5 changed files
with
139 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters