forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HFM] Don't bind WebContents pointer in HSTS query callback
Because the call to NetworkContext::IsHSTSActiveForHost() is async, it is possible for the WebContents to be destroyed before the callback to MaybeCreateLoaderOnHstsQueryCompleted() is run. This changes the callback to get the WebContents using `frame_tree_node_id_` again and verify that it is still valid when the callback is run, and similarly reconstruct the Profile and TabHelper rather than needing to bind them into the callback. Fixed: 1499515 Change-Id: I52ffefc5586771d21f4860eefca09b933b87ec6d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5014874 Reviewed-by: Mustafa Emre Acer <[email protected]> Commit-Queue: Chris Thompson <[email protected]> Cr-Commit-Position: refs/heads/main@{#1221998}
- Loading branch information
1 parent
26f3218
commit 4208e44
Showing
2 changed files
with
20 additions
and
7 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