3 function hook(id, result, message){};
7 navigator.registerContentHandler("text/html", "?uri=%s", "Example http");
8 throw new Error("Exception not thrown!");
10 if (!(e instanceof DOMException) || e.code != 18 || e.name != "SECURITY_ERR") {
13 document.getElementById('test').innerHTML = 'PASSED';
14 document.body.style.backgroundColor = 'green';
15 hook(id, 'pass', 'content handler not registered');
18 hook(id, 'fail', 'widget failed because ' + e.message);