angler-fishThe Vulnerability History Project

Add WebContents source to methods in WebContentsDelegate

      The added parameter helps us avoid a potential timing-related security issue. The UI can be instructed to open a new tab and show a dialog roughly at the same time, and since it's handled asynchronously the dialog may end up in front of the new tab. Knowing what web contents issued the dialog would allow us to prevent that from happening.

BUG=428793

Review URL: https://codereview.chromium.org/691823002

Cr-Commit-Position: refs/heads/master@{#304781}
    
commit 72a5e46303c13d806475cd01aedfb1305fcde5d7
+1 -1
+2 -2
+1 -2
+1 -1
+1 -2
+1 -2
+1 -1
+4 -6
+1 -2
+1 -1
+1 -2
+1 -1
+1 -1
+1 -2
+1 -2
+1 -1
+2 -2
+1 -1
+10 -8
+2 -3
+2 -3
+2 -2
+1 -2
+1 -2
+1 -3
+1 -1
+1 -2
+1 -2
+2 -2
+1 -2
expand_less