blob: 2d27a0f6d110875ec639b7546a78f2aaf747f8f7 [file] [log] [blame]
CONSOLE ERROR: line 15: Not allowed to navigate top frame to data URL: data:text/plain,a
Tests that manipulating location properties in a just-created window object does not crash. Note: Turn off pop-up blocking to run this in-browser.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS testWindow.location.toString() is 'about:blank'
PASS testWindow.location.href is 'about:blank'
PASS testWindow.location.protocol is 'about:'
PASS testWindow.location.host is ''
PASS testWindow.location.hostname is ''
PASS testWindow.location.port is ''
PASS testWindow.location.pathname is 'blank'
PASS testWindow.location.search is ''
PASS testWindow.location.hash is ''
PASS testWindow.location.href = 'data:text/plain,b' is 'data:text/plain,b'
PASS testWindow.location.protocol = 'data' is 'data'
PASS testWindow.location.host = 'c' is 'c'
PASS testWindow.location.hostname = 'd' is 'd'
PASS testWindow.location.port = 'e' is 'e'
PASS testWindow.location.pathname = 'f' is 'f'
PASS testWindow.location.search = 'g' is 'g'
PASS testWindow.location.hash = 'h' is 'h'
PASS testWindow.location.assign('data:text/plain,i') is undefined
PASS testWindow.location.replace('data:text/plain,j') is undefined
PASS testWindow.location.reload() is undefined
PASS testWindow.location.toString() is 'about:blank'
PASS testWindow.location.href is 'about:blank'
PASS testWindow.location.protocol is 'about:'
PASS testWindow.location.host is ''
PASS testWindow.location.hostname is ''
PASS testWindow.location.port is ''
PASS testWindow.location.pathname is 'blank'
PASS testWindow.location.search is ''
PASS testWindow.location.hash is ''
PASS successfullyParsed is true
TEST COMPLETE