DescriptionGeolocationPermissionContext: only use origin from embedder url.
Specifically for the bug being fixed, if the hash is not stripped, and it changes while the info bar is displayed, then an equality comparison will fail needlessly later.
Also, use WebContents::GetLastCommittedURL instead of the deprecated GetURL.
BUG=286667
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223078
Patch Set 1 #Patch Set 2 : Use WebContents::GetLastCommittedUrl #Patch Set 3 : Retry upload. #
Total comments: 8
Patch Set 4 : Use GURL::GetOrigin. #
Total comments: 2
Patch Set 5 : Add test, some cleanup. #
Messages
Total messages: 10 (0 generated)
|