mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 714276. NodesFromRect should be a chrome-only API. r=smaug
--HG-- rename : dom/tests/mochitest/general/489127.html => dom/tests/mochitest/chrome/489127.html rename : dom/tests/mochitest/general/test_nodesFromRect.html => dom/tests/mochitest/chrome/test_nodesFromRect.html
This commit is contained in:
parent
5a0eccb1c5
commit
4528bd7e5a
@ -920,6 +920,10 @@ nsDOMWindowUtils::NodesFromRect(float aX, float aY,
|
||||
bool aFlushLayout,
|
||||
nsIDOMNodeList** aReturn)
|
||||
{
|
||||
if (!IsUniversalXPConnectCapable()) {
|
||||
return NS_ERROR_DOM_SECURITY_ERR;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocument> doc(do_QueryInterface(mWindow->GetExtantDocument()));
|
||||
NS_ENSURE_STATE(doc);
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>nsIDOMWindowUtils::nodesFromRect test - bug 489127</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
|
||||
<script type="application/javascript;version=1.8">
|
||||
|
||||
let SimpleTest = window.opener.SimpleTest;
|
||||
@ -11,8 +11,6 @@
|
||||
function done() { window.opener.done.apply(window.opener, arguments); }
|
||||
let e = {};
|
||||
|
||||
// Enable privileges so we can use nsIDOMWindowUtils interface
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
let dwu = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIDOMWindowUtils);
|
||||
|
@ -72,6 +72,8 @@ _TEST_FILES = \
|
||||
test_resize_move_windows.xul \
|
||||
test_popup_blocker_chrome.xul \
|
||||
test_moving_xhr.xul \
|
||||
test_nodesFromRect.html \
|
||||
489127.html \
|
||||
$(NULL)
|
||||
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
|
@ -2,8 +2,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>nsIDOMWindowUtils::nodesFromRect test - bug 489127</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
|
||||
<script type="application/javascript">
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
function done() {
|
@ -48,7 +48,6 @@ _TEST_FILES = \
|
||||
test_outerHTML.html \
|
||||
test_outerHTML.xhtml \
|
||||
497633.html \
|
||||
489127.html \
|
||||
historyframes.html \
|
||||
test_497898.html \
|
||||
test_bug504220.html \
|
||||
@ -66,7 +65,6 @@ _TEST_FILES = \
|
||||
test_offsets.js \
|
||||
test_windowProperties.html \
|
||||
test_clipboard_events.html \
|
||||
test_nodesFromRect.html \
|
||||
test_frameElementWrapping.html \
|
||||
file_frameElementWrapping.html \
|
||||
test_framedhistoryframes.html \
|
||||
|
Loading…
Reference in New Issue
Block a user