gecko/dom/tests/mochitest/bugs/iframe_bug534362.html

20 lines
434 B
HTML
Raw Normal View History

<html>
<head>
<title>Iframe test for bug 534362</title>
</head>
<body">
<script>
function locationSetter(_href)
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
parent.setterCalled = true;
};
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
parent.setterCalled = false;
location.__proto__.href setter = locationSetter;
location.href = "javascript:";
</script>
</body>
</html>