Open about:blank when window.open is called with no URL
This commit is contained in:
parent
638c96345d
commit
9829baed46
2 changed files with 23 additions and 3 deletions
|
@ -139,7 +139,11 @@ window.open = function (url, frameName, features) {
|
|||
}
|
||||
|
||||
// Resolve relative urls.
|
||||
url = resolveURL(url)
|
||||
if (url == null || url == '') {
|
||||
url = 'about:blank'
|
||||
} else {
|
||||
url = resolveURL(url)
|
||||
}
|
||||
for (j = 0, len1 = ints.length; j < len1; j++) {
|
||||
name = ints[j]
|
||||
if (options[name] != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue