Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
// Test that drag and drop events are sent at the right time. Includes tests for
// dragging between windows and iframes, all of the same origin.
// dom.events.dataTransfer.protected.enabled = false
"use strict";
add_setup(async function () {
await SpecialPowers.pushPrefEnv({
set: [["dom.events.dataTransfer.protected.enabled", false]],
});
registerCleanupFunction(async function () {
SpecialPowers.popPrefEnv();
});
await setup({
outerURL1: kBaseUrl + "browser_dragdrop_outer.html",
outerURL2: kBaseUrl + "browser_dragdrop_outer.html",
innerURL1: kBaseUrl + "browser_dragdrop_inner.html",
innerURL2: kBaseUrl + "browser_dragdrop_inner.html",
});
});
Services.scriptloader.loadSubScript(
this
);