commit | 9f9789e92c7adb2d86b91ec3f7c1bcce3770b77e | [log] [tgz] |
---|---|---|
author | Jochen Eisinger <[email protected]> | Wed Mar 07 16:44:01 2018 |
committer | Commit Bot <[email protected]> | Wed Mar 07 16:44:01 2018 |
tree | 53909eb06ee1a685d50c4c8c89a98259f6511af3 | |
parent | cff35a1b295c56e59c3a05b2055458cbd9a4fd33 [diff] [blame] |
Hide navigations aborted due to downloading from ntp If a navigation was started by an HTMLAnchorElement with a download attribute (<a download>), the navigation will end up being aborted, and turned into a download, so leaving the URL around for the user to edit is not useful. BUG=808966 [email protected],[email protected] Change-Id: Idcfa5c952cba7933fdf62e75a67ec4a2e2087695 Reviewed-on: https://chromium-review.googlesource.com/908451 Reviewed-by: Camille Lamy <[email protected]> Reviewed-by: Charlie Reis <[email protected]> Commit-Queue: Jochen Eisinger <[email protected]> Cr-Commit-Position: refs/heads/master@{#541471}
diff --git a/content/browser/frame_host/navigator_impl.h b/content/browser/frame_host/navigator_impl.h index a1bedd3..07a1a12 100644 --- a/content/browser/frame_host/navigator_impl.h +++ b/content/browser/frame_host/navigator_impl.h
@@ -106,7 +106,8 @@ const base::TimeTicks& renderer_before_unload_end_time) override; void CancelNavigation(FrameTreeNode* frame_tree_node, bool inform_renderer) override; - void DiscardPendingEntryIfNeeded(int expected_pending_entry_id) override; + void DiscardPendingEntryIfNeeded(int expected_pending_entry_id, + bool is_download) override; private: // Holds data used to track browser side navigation metrics.