commit | 6e845755633a4fd21c5a2492cc9b587f0248f7f3 | [log] [tgz] |
---|---|---|
author | Nasko Oskov <nasko@chromium.org> | Sat Dec 15 00:24:55 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Dec 15 00:24:55 2018 |
tree | 457aa0f95773193fc7efe266e7830b1d301978ee | |
parent | d518daea1ca0178713d2551dacd56f5bc66d6c7c [diff] |
FrameLoadRequest should reuse origin instead of recreating it. FrameLoadRequest is currently constructing the requestor origin from the URL of the requestor document. However, constructing origins based on URL is a lossy process and does not preserve precursor origin information. Since the requestor document is already passed in as a parameter, the origin of the document should be used directly. This CL changes that. It also fixes a bug in the GetDownloadPolicy method where origin comparison is assigned to a boolean incorrectly. Bug: 632514, 882053 Change-Id: Ibb386ef7ecddc0b5dcc5b9e2b83f7b5215fdc1e9 Reviewed-on: https://chromium-review.googlesource.com/c/1378587 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Charlie Harrison <csharrison@chromium.org> Commit-Queue: Nasko Oskov <nasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#616889}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .