зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 3112d1e94a05 (bug 1182546) for Android M(c) bustage
This commit is contained in:
Родитель
8638a9854f
Коммит
a103e9c278
|
@ -1,5 +0,0 @@
|
|||
<!DOCTYPE html [
|
||||
<!ENTITY % passwordManagerDTD SYSTEM "chrome://passwordmgr/locale/passwordManager.dtd">
|
||||
%passwordManagerDTD;
|
||||
]>
|
||||
<window>&savedLogins.title;</window>
|
|
@ -25,7 +25,6 @@ support-files =
|
|||
offlineEvent.html
|
||||
subtst_contextmenu.html
|
||||
video.ogg
|
||||
bug_1182546.xml
|
||||
|
||||
[test_bug364677.html]
|
||||
[test_bug395533.html]
|
||||
|
@ -39,4 +38,3 @@ skip-if = e10s
|
|||
skip-if = buildapp == 'mulet' || e10s # Bug 1066070 - I don't think either popup notifications nor addon install stuff works?
|
||||
[test_offline_gzip.html]
|
||||
skip-if = buildapp == 'mulet' || e10s # Bug 1066070 - I don't think either popup notifications nor addon install stuff works?
|
||||
[test_bug1182546.html]
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1182546
|
||||
-->
|
||||
<head>
|
||||
<title>Bug 1182546 - Test block loading DTD from random page</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testframe" src="bug_1182546.xml"></iframe>
|
||||
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
addLoadEvent(function() {
|
||||
// make sure the DTD loader (nsExpatDriver) prevents accessing chrome: from random pages
|
||||
var childNodes = testframe.contentDocument.documentElement.childNodes;
|
||||
|
||||
// make sure '&savedLogins.title;' from bug_1182546.xml does not translate into 'Saved Logins'
|
||||
// the URL 'chrome://passwordmgr/locale/passwordManager.dtd' should not be accessible from content
|
||||
var nodeValue = childNodes[0].nodeValue;
|
||||
isnot(nodeValue, "Saved Logins",
|
||||
"expatDriver should prevent accessing &savedLogins.title;");
|
||||
ok(nodeValue.startsWith("XML Parsing Error: undefined entity"),
|
||||
"expatDriver should not allow accessing chrome:");
|
||||
});
|
||||
|
||||
addLoadEvent(SimpleTest.finish);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче