This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a simple test for target=top links embedded in iframes, related to is…
…sue #73
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<html> | ||
<head> | ||
<title>WebbyFox</title> | ||
|
||
</head> | ||
<body > | ||
<p> | ||
I'm the outer frame. you better not pwn me. | ||
</p> | ||
|
||
<iframe src="inner-page.html" width="400" height="100" border="2" > | ||
</iframe> | ||
|
||
</body> | ||
</html> |
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,9 @@ | ||
<html> | ||
<head> | ||
<title>WebbyFox</title> | ||
|
||
</head> | ||
<body> | ||
<a href="inner-page.html" target="_top">Click here</a> I'm the inner frame. you've been pwned! | ||
</body> | ||
</html> |
69d2cd4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a highly-inefficient, error-prone, and messy hack for this:
Appinfo.json needs the "enableSystemPrivileges" set to true.
69d2cd4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above snippet will probably break if you have a nested iframe with a target="_top" link.