Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: LayoutTests/http/tests/security/xss-DENIED-iframe-src-alias.html

Issue 1158433004: Remove Attr child nodes (making Attr a Node, not a ContainerNode) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address feedback Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/xss-DENIED-iframe-src-alias.html
diff --git a/LayoutTests/http/tests/security/xss-DENIED-iframe-src-alias.html b/LayoutTests/http/tests/security/xss-DENIED-iframe-src-alias.html
index 71f0f7b768a6af1017485f13c6d4a6881cec9f8d..b07221bb3c7734931f4beb5e426bb7e32304dba4 100644
--- a/LayoutTests/http/tests/security/xss-DENIED-iframe-src-alias.html
+++ b/LayoutTests/http/tests/security/xss-DENIED-iframe-src-alias.html
@@ -32,34 +32,6 @@ window.onload = function()
a.nodeValue = alertMsg("setAttributeNodeNS");
iFrame.setAttributeNodeNS(a);
},
- // Child manipulation methods
- function(iFrame) {
- var src = iFrame.attributes['src'];
- src.appendChild(document.createTextNode(alertMsg("appendChild() + removeChild()")));
- src.removeChild(src.firstChild);
- },
- function(iFrame) {
- var src = iFrame.attributes['src'];
- src.replaceChild(document.createTextNode(alertMsg("replaceChild()")), src.firstChild);
- },
- function(iFrame) {
- var src = iFrame.attributes['src'];
- while (src.firstChild)
- src.removeChild(src.firstChild);
- src.appendChild(document.createTextNode(alertMsg("removeChild() + appendChild()")));
- },
- function(iFrame) {
- var src = iFrame.attributes['src'];
- while (src.firstChild)
- src.removeChild(src.firstChild);
- var msg = alertMsg("removeChild() + appendChild() + appendChild()");
- src.appendChild(document.createTextNode(msg.slice(0,4)));
- src.appendChild(document.createTextNode(msg.slice(4)));
- },
- function(iFrame) {
- var src = iFrame.attributes['src'];
- src.insertBefore(document.createTextNode(alertMsg("insertBefore()")), src.firstChild);
- },
// NamedNodeMap
function(iFrame) {
var a = document.createAttribute('src');

Powered by Google App Engine
This is Rietveld 408576698