| Index: LayoutTests/http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html
|
| diff --git a/LayoutTests/http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html b/LayoutTests/http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html
|
| index b101511cc579e0f7a1143a1b344cb58da4ab47d8..b5d8e5dce048144f2afdd0fa3e7d0156779f3c06 100644
|
| --- a/LayoutTests/http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html
|
| +++ b/LayoutTests/http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html
|
| @@ -3,196 +3,200 @@
|
| <script src="resources/cross-frame-access.js"></script>
|
| <script>
|
| var windowConstructorPropertiesNotAllowed = [
|
| - "Attr",
|
| + "Attr",
|
| "Audio",
|
| - "CDATASection",
|
| - "CSSRule",
|
| - "CSSStyleDeclaration",
|
| - "CharacterData",
|
| - "Comment",
|
| - "DOMException",
|
| - "DOMImplementation",
|
| - "DOMParser",
|
| - "Document",
|
| - "DocumentFragment",
|
| - "DocumentType",
|
| - "Element",
|
| - "EntityReference",
|
| - "EvalError",
|
| - "Event",
|
| - "HTMLAnchorElement",
|
| - "HTMLAudioElement",
|
| - "HTMLAreaElement",
|
| - "HTMLBRElement",
|
| - "HTMLBaseElement",
|
| - "HTMLBodyElement",
|
| - "HTMLButtonElement",
|
| - "HTMLCanvasElement",
|
| - "HTMLDListElement",
|
| - "HTMLDirectoryElement",
|
| - "HTMLDivElement",
|
| - "HTMLDocument",
|
| - "HTMLElement",
|
| - "HTMLFieldSetElement",
|
| - "HTMLFontElement",
|
| - "HTMLFormElement",
|
| - "HTMLFrameElement",
|
| - "HTMLFrameSetElement",
|
| - "HTMLHRElement",
|
| - "HTMLHeadElement",
|
| - "HTMLHeadingElement",
|
| - "HTMLHtmlElement",
|
| - "HTMLIFrameElement",
|
| - "HTMLImageElement",
|
| - "HTMLInputElement",
|
| - "HTMLIsIndexElement",
|
| - "HTMLLIElement",
|
| - "HTMLLabelElement",
|
| - "HTMLLegendElement",
|
| - "HTMLLinkElement",
|
| - "HTMLMapElement",
|
| - "HTMLMarqueeElement",
|
| - "HTMLMediaElement",
|
| - "HTMLMenuElement",
|
| - "HTMLMetaElement",
|
| - "HTMLModElement",
|
| - "HTMLOListElement",
|
| - "HTMLOptGroupElement",
|
| - "HTMLOptionElement",
|
| - "HTMLParagraphElement",
|
| - "HTMLParamElement",
|
| - "HTMLPreElement",
|
| - "HTMLQuoteElement",
|
| - "HTMLScriptElement",
|
| - "HTMLSelectElement",
|
| - "HTMLSourceElement",
|
| - "HTMLStyleElement",
|
| - "HTMLTableCaptionElement",
|
| - "HTMLTableCellElement",
|
| - "HTMLTableColElement",
|
| - "HTMLTableElement",
|
| - "HTMLTableRowElement",
|
| - "HTMLTableSectionElement",
|
| - "HTMLTextAreaElement",
|
| - "HTMLTitleElement",
|
| - "HTMLUListElement",
|
| - "HTMLVideoElement",
|
| - "Image",
|
| - "MutationEvent",
|
| - "Node",
|
| - "NodeFilter",
|
| - "Option",
|
| - "ProcessingInstruction",
|
| - "Range",
|
| - "RangeError",
|
| - "ReferenceError",
|
| - "SyntaxError",
|
| - "Text",
|
| - "TypeError",
|
| - "URIError",
|
| - "XMLDocument",
|
| - "XMLHttpRequest",
|
| - "XMLSerializer",
|
| - "XPathEvaluator",
|
| - "XPathResult",
|
| + "CDATASection",
|
| + "CSSRule",
|
| + "CSSStyleDeclaration",
|
| + "CharacterData",
|
| + "Comment",
|
| + "DOMException",
|
| + "DOMImplementation",
|
| + "DOMParser",
|
| + "Document",
|
| + "DocumentFragment",
|
| + "DocumentType",
|
| + "Element",
|
| + "EntityReference",
|
| + "EvalError",
|
| + "Event",
|
| + "HTMLAnchorElement",
|
| + "HTMLAudioElement",
|
| + "HTMLAreaElement",
|
| + "HTMLBRElement",
|
| + "HTMLBaseElement",
|
| + "HTMLBodyElement",
|
| + "HTMLButtonElement",
|
| + "HTMLCanvasElement",
|
| + "HTMLDListElement",
|
| + "HTMLDirectoryElement",
|
| + "HTMLDivElement",
|
| + "HTMLDocument",
|
| + "HTMLElement",
|
| + "HTMLFieldSetElement",
|
| + "HTMLFontElement",
|
| + "HTMLFormElement",
|
| + "HTMLFrameElement",
|
| + "HTMLFrameSetElement",
|
| + "HTMLHRElement",
|
| + "HTMLHeadElement",
|
| + "HTMLHeadingElement",
|
| + "HTMLHtmlElement",
|
| + "HTMLIFrameElement",
|
| + "HTMLImageElement",
|
| + "HTMLInputElement",
|
| + "HTMLIsIndexElement",
|
| + "HTMLLIElement",
|
| + "HTMLLabelElement",
|
| + "HTMLLegendElement",
|
| + "HTMLLinkElement",
|
| + "HTMLMapElement",
|
| + "HTMLMarqueeElement",
|
| + "HTMLMediaElement",
|
| + "HTMLMenuElement",
|
| + "HTMLMetaElement",
|
| + "HTMLModElement",
|
| + "HTMLOListElement",
|
| + "HTMLOptGroupElement",
|
| + "HTMLOptionElement",
|
| + "HTMLParagraphElement",
|
| + "HTMLParamElement",
|
| + "HTMLPreElement",
|
| + "HTMLQuoteElement",
|
| + "HTMLScriptElement",
|
| + "HTMLSelectElement",
|
| + "HTMLSourceElement",
|
| + "HTMLStyleElement",
|
| + "HTMLTableCaptionElement",
|
| + "HTMLTableCellElement",
|
| + "HTMLTableColElement",
|
| + "HTMLTableElement",
|
| + "HTMLTableRowElement",
|
| + "HTMLTableSectionElement",
|
| + "HTMLTextAreaElement",
|
| + "HTMLTitleElement",
|
| + "HTMLUListElement",
|
| + "HTMLVideoElement",
|
| + "Image",
|
| + "MutationEvent",
|
| + "Node",
|
| + "NodeFilter",
|
| + "Option",
|
| + "ProcessingInstruction",
|
| + "Range",
|
| + "RangeError",
|
| + "ReferenceError",
|
| + "SyntaxError",
|
| + "Text",
|
| + "TypeError",
|
| + "URIError",
|
| + "XMLDocument",
|
| + "XMLHttpRequest",
|
| + "XMLSerializer",
|
| + "XPathEvaluator",
|
| + "XPathResult",
|
| "XSLTProcessor"
|
| ];
|
|
|
| var windowFunctionPropertiesNotAllowed = [
|
| - "addEventListener",
|
| - "alert",
|
| + "addEventListener",
|
| + "alert",
|
| "atob",
|
| - "btoa",
|
| + "btoa",
|
| "captureEvents",
|
| - "clearInterval",
|
| - "clearTimeout",
|
| + "clearInterval",
|
| + "clearTimeout",
|
| "confirm",
|
| - "find",
|
| + "find",
|
| "getComputedStyle",
|
| - "getMatchedCSSRules",
|
| - "getSelection",
|
| - "moveBy",
|
| - "moveTo",
|
| - "open",
|
| - "print",
|
| - "prompt",
|
| + "getMatchedCSSRules",
|
| + "getSelection",
|
| + "moveBy",
|
| + "moveTo",
|
| + "open",
|
| + "print",
|
| + "prompt",
|
| "releaseEvents",
|
| - "removeEventListener",
|
| - "resizeBy",
|
| - "resizeTo",
|
| - "scroll",
|
| - "scrollBy",
|
| - "scrollTo",
|
| - "setInterval",
|
| - "setTimeout",
|
| - "stop",
|
| + "removeEventListener",
|
| + "resizeBy",
|
| + "resizeTo",
|
| + "scroll",
|
| + "scrollBy",
|
| + "scrollTo",
|
| + "setInterval",
|
| + "setTimeout",
|
| + "stop"
|
| + ];
|
| +
|
| + var windowFunctionPropertiesAllowed = [
|
| "blur",
|
| "close",
|
| - "focus"
|
| + "focus",
|
| + "postMessage",
|
| ];
|
|
|
| var windowAttributesPropertiesNotAllowed = [
|
| - "clientInformation",
|
| - "console",
|
| - "crypto",
|
| - "defaultStatus",
|
| - "defaultstatus",
|
| - "devicePixelRatio",
|
| + "clientInformation",
|
| + "console",
|
| + "crypto",
|
| + "defaultStatus",
|
| + "defaultstatus",
|
| + "devicePixelRatio",
|
| "document",
|
| "embeds",
|
| "eval",
|
| - "event",
|
| - "frameElement",
|
| + "event",
|
| + "frameElement",
|
| "images",
|
| - "innerHeight",
|
| - "innerWidth",
|
| - "locationbar",
|
| - "menubar",
|
| - "name",
|
| - "navigator",
|
| - "offscreenBuffering",
|
| - "onabort",
|
| - "onbeforeunload",
|
| - "onblur",
|
| - "onchange",
|
| - "onclick",
|
| - "ondblclick",
|
| - "onerror",
|
| - "onfocus",
|
| - "onkeydown",
|
| - "onkeypress",
|
| - "onkeyup",
|
| - "onload",
|
| - "onmousedown",
|
| - "onmousemove",
|
| - "onmouseout",
|
| - "onmouseover",
|
| - "onmouseup",
|
| - "onmousewheel",
|
| - "onreset",
|
| - "onresize",
|
| - "onscroll",
|
| - "onsearch",
|
| - "onselect",
|
| - "onsubmit",
|
| - "onunload",
|
| - "outerHeight",
|
| - "outerWidth",
|
| - "pageXOffset",
|
| - "pageYOffset",
|
| - "personalbar",
|
| + "innerHeight",
|
| + "innerWidth",
|
| + "locationbar",
|
| + "menubar",
|
| + "name",
|
| + "navigator",
|
| + "offscreenBuffering",
|
| + "onabort",
|
| + "onbeforeunload",
|
| + "onblur",
|
| + "onchange",
|
| + "onclick",
|
| + "ondblclick",
|
| + "onerror",
|
| + "onfocus",
|
| + "onkeydown",
|
| + "onkeypress",
|
| + "onkeyup",
|
| + "onload",
|
| + "onmousedown",
|
| + "onmousemove",
|
| + "onmouseout",
|
| + "onmouseover",
|
| + "onmouseup",
|
| + "onmousewheel",
|
| + "onreset",
|
| + "onresize",
|
| + "onscroll",
|
| + "onsearch",
|
| + "onselect",
|
| + "onsubmit",
|
| + "onunload",
|
| + "outerHeight",
|
| + "outerWidth",
|
| + "pageXOffset",
|
| + "pageYOffset",
|
| + "personalbar",
|
| "plugins",
|
| "prototype",
|
| - "screen",
|
| - "screenLeft",
|
| - "screenTop",
|
| - "screenX",
|
| - "screenY",
|
| - "scrollX",
|
| - "scrollY",
|
| - "scrollbars",
|
| - "status",
|
| - "statusbar",
|
| + "screen",
|
| + "screenLeft",
|
| + "screenTop",
|
| + "screenX",
|
| + "screenY",
|
| + "scrollX",
|
| + "scrollY",
|
| + "scrollbars",
|
| + "status",
|
| + "statusbar",
|
| "toolbar",
|
| "history",
|
| ];
|
| @@ -240,6 +244,10 @@
|
| var property = windowFunctionPropertiesNotAllowed[i];
|
| shouldBeFalse("canGetDescriptor(targetWindow, '" + property + "')");
|
| }
|
| + for (var i = 0; i < windowFunctionPropertiesAllowed.length; i++) {
|
| + var property = windowFunctionPropertiesAllowed[i];
|
| + shouldBeTrue("canGetDescriptor(targetWindow, '" + property + "')");
|
| + }
|
|
|
| log("\n----- tests for getting of not allowed Attributes -----\n");
|
| for (var i = 0; i < windowAttributesPropertiesNotAllowed.length; i++) {
|
|
|