mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
28 lines
720 B
JavaScript
28 lines
720 B
JavaScript
/* Any copyright is dedicated to the public domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Bug 764718 - Test that mozbrowsererror works for a security error.
|
|
|
|
"use strict";
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
function runTest() {
|
|
browserElementTestHelpers.setEnabledPref(true);
|
|
browserElementTestHelpers.addPermission();
|
|
|
|
var iframe = document.createElement('iframe');
|
|
iframe.mozbrowser = true;
|
|
|
|
iframe.addEventListener("mozbrowsererror", function(e) {
|
|
ok(true, "Got mozbrowsererror event.");
|
|
ok(e.detail.type, "Event's detail has a |type| param.");
|
|
SimpleTest.finish();
|
|
});
|
|
|
|
iframe.src = "https://expired.example.com";
|
|
document.body.appendChild(iframe);
|
|
}
|
|
|
|
runTest();
|