gecko/dom/tests/mochitest/bugs/iframe_bug534362.html
Peter Van der Beken 110cb44583 Fix for bug 534362 (Allow modifications to Location.prototype). r=mrbkap.
--HG--
extra : rebase_source : c860de457e25114244c86ff8063ca6c1390e33ae
2009-12-13 16:57:08 -08:00

20 lines
434 B
HTML

<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>