This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5211 from brave/fix/navigation-title
only set frame title when navigation is not renderer initiated
- Loading branch information
Showing
4 changed files
with
68 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<title>fake page</title> | ||
<h1>fake page</h1> | ||
<script>location="http://google.com/";</script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<script> | ||
function next() | ||
{ | ||
w.location.replace('http://google.com/?'+n);n++; | ||
setTimeout("next();",15); | ||
setTimeout("next();",25); | ||
} | ||
function f() | ||
{ | ||
w=window.open("spoof_content.html","_blank","width=500 height=500"); | ||
i=setInterval(() => { | ||
try { | ||
x=w.location.href; | ||
} catch (e) { | ||
clearInterval(i); | ||
n=0; | ||
next(); | ||
} | ||
}, 5); | ||
} | ||
</script> | ||
<a href="#" onclick="f()">Google</a><br> |