https://bugs.webkit.org/show_bug.cgi?id=78721
Reviewed by Adam Barth.
Source/WebCore:
Covered by existing tests.
* inspector/front-end/DetailedHeapshotGridNodes.js:
(WebInspector.HeapSnapshotGenericObjectNode):
(WebInspector.HeapSnapshotGenericObjectNode.prototype.isWindow):
* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshotNode.prototype.get isWindow):
(WebInspector.HeapSnapshot.prototype._calculateObjectToWindowDistance):
(WebInspector.HeapSnapshot.prototype._markQueriableHeapObjects):
* page/DOMWindow.idl:
LayoutTests:
* fast/dom/Window/atob-btoa-expected.txt:
* fast/dom/Window/atob-btoa.html:
* fast/dom/Window/window-lookup-precedence-expected.txt:
* fast/dom/Window/window-lookup-precedence.html:
* fast/dom/Window/window-postmessage-args-expected.txt:
* fast/dom/Window/window-properties-expected.txt:
* fast/dom/Window/window-property-descriptors-expected.txt:
* fast/dom/dom-constructors-expected.txt:
* fast/dom/dom-constructors.html:
* fast/dom/prototype-inheritance-2-expected.txt:
* fast/dom/script-tests/prototype-inheritance-2.js:
(pushPropertyValuesWithUnseenTypes):
* fast/dom/wrapper-classes-expected.txt:
* fast/dom/wrapper-classes.html:
* fast/events/device-orientation-crash-expected.txt:
* fast/events/device-orientation-crash.html:
* fast/events/event-trace-expected.txt:
* fast/events/event-view-toString-expected.txt:
* fast/events/popup-blocked-to-post-blank-expected.txt:
* fast/events/popup-blocked-to-post-blank.html:
* fast/js/eval-cross-window-expected.txt:
* fast/js/eval-keyword-vs-function-expected.txt:
* fast/js/function-bind-expected.txt:
* fast/js/mozilla/strict/10.4.3-expected.txt:
* fast/js/mozilla/strict/15.3.4.5-expected.txt:
* fast/js/mozilla/strict/this-for-function-expression-recursion-expected.txt:
* fast/js/script-tests/function-bind.js:
* fast/js/toString-and-valueOf-override-expected.txt:
* http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt:
* http/tests/security/cross-frame-access-custom-expected.txt:
* http/tests/security/cross-frame-access-custom.html:
* http/tests/security/cross-frame-access-put-expected.txt:
* http/tests/security/document-all-expected.txt:
* inspector/console/console-dir-global-expected.txt:
* inspector/debugger/debugger-expand-scope-expected.txt:
* inspector/profiler/heap-snapshot-test.js:
(initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockWithDOM):
(initialize_HeapSnapshotTest):
* inspector/profiler/heap-snapshot.html:
* java/lc3/JSObject/ToJSObject-001-expected.txt:
* java/lc3/JSObject/ToObject-001-expected.txt:
* java/lc3/JSObject/ToString-001-expected.txt:
* platform/chromium-mac/fast/events/event-view-toString-expected.txt:
* platform/chromium-win/fast/events/event-view-toString-expected.txt:
* platform/chromium-win/fast/js/README:
* platform/chromium/fast/dom/Window/window-lookup-precedence-expected.txt:
* platform/chromium/fast/dom/Window/window-postmessage-args-expected.txt:
* platform/chromium/fast/dom/wrapper-classes-expected.txt:
* platform/chromium/fast/js/mozilla/strict/15.3.4.5-expected.txt:
* platform/chromium/fast/js/toString-and-valueOf-override-expected.txt:
* platform/chromium/http/tests/security/cross-frame-access-call-expected.txt:
* platform/chromium/http/tests/security/cross-frame-access-put-expected.txt:
* platform/chromium/inspector/console/console-dir-global-expected.txt:
* platform/chromium/inspector/debugger/debugger-expand-scope-expected.txt:
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/gtk/fast/dom/prototype-inheritance-2-expected.txt:
* platform/gtk/fast/js/global-constructors-expected.txt:
* platform/gtk/http/tests/security/cross-frame-access-put-expected.txt:
* platform/mac/fast/dom/Window/window-properties-expected.txt:
* platform/mac/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/mac/fast/dom/prototype-inheritance-2-expected.txt:
* platform/mac/fast/dom/wrapper-classes-objc.html:
* platform/mac/fast/js/global-constructors-expected.txt:
* platform/qt-5.0-wk2/fast/dom/Window/window-properties-expected.txt:
* platform/qt-5.0-wk2/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/qt-5.0-wk2/fast/dom/prototype-inheritance-2-expected.txt:
* platform/qt-arm/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/prototype-inheritance-2-expected.txt:
* platform/qt/fast/js/global-constructors-expected.txt:
* platform/qt/http/tests/security/cross-frame-access-put-expected.txt:
* platform/win/fast/dom/Window/window-properties-expected.txt:
* platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/win/fast/dom/prototype-inheritance-2-expected.txt:
* sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A2-expected.txt:
* sputnik/Conformance/15_Native_Objects/15.1_The_Global_Object/S15.1_A1_T1-expected.txt:
* sputnik/Conformance/15_Native_Objects/15.1_The_Global_Object/S15.1_A1_T2-expected.txt:
* sputnik/Conformance/15_Native_Objects/15.1_The_Global_Object/S15.1_A2_T1-expected.txt:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108729
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-23 Erik Arvidsson <arv@chromium.org>
+
+ Rename DOMWindow to Window in the bindings
+ https://bugs.webkit.org/show_bug.cgi?id=78721
+
+ Reviewed by Adam Barth.
+
+ * fast/dom/Window/atob-btoa-expected.txt:
+ * fast/dom/Window/atob-btoa.html:
+ * fast/dom/Window/window-lookup-precedence-expected.txt:
+ * fast/dom/Window/window-lookup-precedence.html:
+ * fast/dom/Window/window-postmessage-args-expected.txt:
+ * fast/dom/Window/window-properties-expected.txt:
+ * fast/dom/Window/window-property-descriptors-expected.txt:
+ * fast/dom/dom-constructors-expected.txt:
+ * fast/dom/dom-constructors.html:
+ * fast/dom/prototype-inheritance-2-expected.txt:
+ * fast/dom/script-tests/prototype-inheritance-2.js:
+ (pushPropertyValuesWithUnseenTypes):
+ * fast/dom/wrapper-classes-expected.txt:
+ * fast/dom/wrapper-classes.html:
+ * fast/events/device-orientation-crash-expected.txt:
+ * fast/events/device-orientation-crash.html:
+ * fast/events/event-trace-expected.txt:
+ * fast/events/event-view-toString-expected.txt:
+ * fast/events/popup-blocked-to-post-blank-expected.txt:
+ * fast/events/popup-blocked-to-post-blank.html:
+ * fast/js/eval-cross-window-expected.txt:
+ * fast/js/eval-keyword-vs-function-expected.txt:
+ * fast/js/function-bind-expected.txt:
+ * fast/js/mozilla/strict/10.4.3-expected.txt:
+ * fast/js/mozilla/strict/15.3.4.5-expected.txt:
+ * fast/js/mozilla/strict/this-for-function-expression-recursion-expected.txt:
+ * fast/js/script-tests/function-bind.js:
+ * fast/js/toString-and-valueOf-override-expected.txt:
+ * http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt:
+ * http/tests/security/cross-frame-access-custom-expected.txt:
+ * http/tests/security/cross-frame-access-custom.html:
+ * http/tests/security/cross-frame-access-put-expected.txt:
+ * http/tests/security/document-all-expected.txt:
+ * inspector/console/console-dir-global-expected.txt:
+ * inspector/debugger/debugger-expand-scope-expected.txt:
+ * inspector/profiler/heap-snapshot-test.js:
+ (initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockWithDOM):
+ (initialize_HeapSnapshotTest):
+ * inspector/profiler/heap-snapshot.html:
+ * java/lc3/JSObject/ToJSObject-001-expected.txt:
+ * java/lc3/JSObject/ToObject-001-expected.txt:
+ * java/lc3/JSObject/ToString-001-expected.txt:
+ * platform/chromium-mac/fast/events/event-view-toString-expected.txt:
+ * platform/chromium-win/fast/events/event-view-toString-expected.txt:
+ * platform/chromium-win/fast/js/README:
+ * platform/chromium/fast/dom/Window/window-lookup-precedence-expected.txt:
+ * platform/chromium/fast/dom/Window/window-postmessage-args-expected.txt:
+ * platform/chromium/fast/dom/wrapper-classes-expected.txt:
+ * platform/chromium/fast/js/mozilla/strict/15.3.4.5-expected.txt:
+ * platform/chromium/fast/js/toString-and-valueOf-override-expected.txt:
+ * platform/chromium/http/tests/security/cross-frame-access-call-expected.txt:
+ * platform/chromium/http/tests/security/cross-frame-access-put-expected.txt:
+ * platform/chromium/inspector/console/console-dir-global-expected.txt:
+ * platform/chromium/inspector/debugger/debugger-expand-scope-expected.txt:
+ * platform/gtk/fast/dom/Window/window-properties-expected.txt:
+ * platform/gtk/fast/dom/prototype-inheritance-2-expected.txt:
+ * platform/gtk/fast/js/global-constructors-expected.txt:
+ * platform/gtk/http/tests/security/cross-frame-access-put-expected.txt:
+ * platform/mac/fast/dom/Window/window-properties-expected.txt:
+ * platform/mac/fast/dom/Window/window-property-descriptors-expected.txt:
+ * platform/mac/fast/dom/prototype-inheritance-2-expected.txt:
+ * platform/mac/fast/dom/wrapper-classes-objc.html:
+ * platform/mac/fast/js/global-constructors-expected.txt:
+ * platform/qt-5.0-wk2/fast/dom/Window/window-properties-expected.txt:
+ * platform/qt-5.0-wk2/fast/dom/Window/window-property-descriptors-expected.txt:
+ * platform/qt-5.0-wk2/fast/dom/prototype-inheritance-2-expected.txt:
+ * platform/qt-arm/fast/dom/Window/window-property-descriptors-expected.txt:
+ * platform/qt/fast/dom/Window/window-properties-expected.txt:
+ * platform/qt/fast/dom/prototype-inheritance-2-expected.txt:
+ * platform/qt/fast/js/global-constructors-expected.txt:
+ * platform/qt/http/tests/security/cross-frame-access-put-expected.txt:
+ * platform/win/fast/dom/Window/window-properties-expected.txt:
+ * platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
+ * platform/win/fast/dom/prototype-inheritance-2-expected.txt:
+ * sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A2-expected.txt:
+ * sputnik/Conformance/15_Native_Objects/15.1_The_Global_Object/S15.1_A1_T1-expected.txt:
+ * sputnik/Conformance/15_Native_Objects/15.1_The_Global_Object/S15.1_A1_T2-expected.txt:
+ * sputnik/Conformance/15_Native_Objects/15.1_The_Global_Object/S15.1_A2_T1-expected.txt:
+
2012-02-23 Dan Bernstein <mitz@apple.com>
REGRESSION: Assertion failure in Document::setCompatibilityMode() (!m_styleSheets->length()) in fast/dynamic/crash-paint-no-documentElement-renderer.html
PASS window.btoa("") is ""
PASS window.btoa(null) is ""
PASS window.btoa(undefined) is "dW5kZWZpbmVk"
-PASS window.btoa(window) is "W29iamVjdCBET01XaW5kb3dd"
+PASS window.btoa(window) is "W29iamVjdCBXaW5kb3dd"
PASS window.btoa("éé") is "6ek="
PASS window.btoa("\u0080\u0081") is "gIE="
PASS window.btoa("тест") threw exception Error: INVALID_CHARACTER_ERR: DOM Exception 5.
shouldBe('window.btoa("")', '""');
shouldBe('window.btoa(null)', '""');
shouldBe('window.btoa(undefined)', '"dW5kZWZpbmVk"');
-shouldBe('window.btoa(window)', '"W29iamVjdCBET01XaW5kb3dd"'); // "[object DOMWindow]"
+shouldBe('window.btoa(window)', '"W29iamVjdCBXaW5kb3dd"'); // "[object Window]"
shouldBe('window.btoa("éé")', '"6ek="');
shouldBe('window.btoa("\\u0080\\u0081")', '"gIE="');
shouldThrow('window.btoa("тест")');
-Tests lookup precedence for properties on DOMWindow objects in the presence of a child frame, and that IDL properties defined in the prototype (window.location, window.focus, etc) have higher lookup precedence than named document elements (such as input elements).
+Tests lookup precedence for properties on Window objects in the presence of a child frame, and that IDL properties defined in the prototype (window.location, window.focus, etc) have higher lookup precedence than named document elements (such as input elements).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS win['XSLTProcessor'] == '[object XSLTProcessorConstructor]' is true
PASS win['onload'] is null
PASS win['onload'] is null
-PASS win['frames'] == '[object DOMWindow]' is true
-PASS win['frames'] == '[object DOMWindow]' is true
-PASS win['parent'] == '[object DOMWindow]' is true
-PASS win['parent'] == '[object DOMWindow]' is true
-PASS win['self'] == '[object DOMWindow]' is true
-PASS win['self'] == '[object DOMWindow]' is true
-PASS win['top'] == '[object DOMWindow]' is true
-PASS win['top'] == '[object DOMWindow]' is true
-PASS win['window'] == '[object DOMWindow]' is true
-PASS win['window'] == '[object DOMWindow]' is true
+PASS win['frames'] == '[object Window]' is true
+PASS win['frames'] == '[object Window]' is true
+PASS win['parent'] == '[object Window]' is true
+PASS win['parent'] == '[object Window]' is true
+PASS win['self'] == '[object Window]' is true
+PASS win['self'] == '[object Window]' is true
+PASS win['top'] == '[object Window]' is true
+PASS win['top'] == '[object Window]' is true
+PASS win['window'] == '[object Window]' is true
+PASS win['window'] == '[object Window]' is true
PASS win['locationbar'] == '[object BarInfo]' is true
PASS win['locationbar'] == '[object BarInfo]' is true
PASS win['menubar'] == '[object BarInfo]' is true
<div id="console"></div>
<script>
-description('Tests lookup precedence for properties on DOMWindow objects in the presence of a child frame, and that IDL properties defined in the prototype (window.location, window.focus, etc) have higher lookup precedence than named document elements (such as input elements).');
+description('Tests lookup precedence for properties on Window objects in the presence of a child frame, and that IDL properties defined in the prototype (window.location, window.focus, etc) have higher lookup precedence than named document elements (such as input elements).');
var win = window.window;
var myInput = document.getElementById("MYINPUT");
PASS: Posting message ('2', c): threw exception TypeError: Type error
PASS: Posting message ('3', [object Object]): threw exception TypeError: Type error
PASS: Posting message ('3', [object Object]): threw exception TypeError: Type error
-PASS: Posting message ('4', [object DOMWindow]) did not throw an exception
-PASS: Posting message ('4', [object DOMWindow]) did not throw an exception
+PASS: Posting message ('4', [object Window]) did not throw an exception
+PASS: Posting message ('4', [object Window]) did not throw an exception
PASS: Posting message ('4a', *) did not throw an exception
PASS: Posting message ('4a', *) did not throw an exception
PASS: Posting message ('5', null) did not throw an exception
This test dumps all of the properties that are reachable from the window object, along with their types.
-window [object DOMWindow]
+window [object Window]
window.Array [function]
window.Attr [object AttrConstructor]
window.Attr.prototype [object AttrPrototype]
window.console.timeStamp [function]
window.console.trace [function]
window.console.warn [function]
-window.constructor [object DOMWindowConstructor]
-window.constructor.prototype [object DOMWindowPrototype]
+window.constructor [object WindowConstructor]
+window.constructor.prototype [object WindowPrototype]
window.constructor.prototype.addEventListener [function]
window.constructor.prototype.alert [function]
window.constructor.prototype.atob [function]
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitTransitionEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebSocket') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WheelEvent') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'Window') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Worker') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLDocument') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequest') is 'object'
PASS TryAllocate('CanvasPattern') is 'exception'
FAIL TryAllocate('Console') should be exception. Was no constructor.
FAIL TryAllocate('DOMSelection') should be exception. Was no constructor.
-FAIL TryAllocate('DOMWindow') should be exception. Was no constructor.
+PASS TryAllocate('Window') is 'exception'
FAIL TryAllocate('History') should be exception. Was no constructor.
FAIL TryAllocate('HTMLOptionsCollection') should be exception. Was no constructor.
FAIL TryAllocate('Location') should be exception. Was no constructor.
'PluginArray', 'Range', 'Rect', 'StyleSheet', 'StyleSheetList',
'TextEvent', 'UIEvent', 'WheelEvent', 'XPathResult', 'BarInfo',
'CanvasGradient', 'CanvasPattern', 'Console', 'DOMSelection',
- 'DOMWindow', 'History', 'HTMLOptionsCollection', 'Location',
+ 'Window', 'History', 'HTMLOptionsCollection', 'Location',
'Navigator', 'NodeIterator', 'RGBColor', 'Screen', 'TreeWalker',
'XPathExpression', 'Worker'
];
PASS DOMTokenList from inner.document.forms.testForm.0.0.classList
PASS DOMTokenListConstructor from inner.document.forms.testForm.0.classList.constructor
PASS DOMTokenListPrototype from inner.document.forms.testForm.0.0.classList.__proto__
-PASS DOMWindow from inner
-PASS DOMWindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
-PASS DOMWindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
PASS DocumentPrototype from inner.document.forms.testForm.0.ownerDocument.__proto__.__proto__
PASS ElementPrototype from inner.document.forms.testForm.0.__proto__.__proto__.__proto__
PASS Function from inner.document.createElement
PASS WebKitCSSKeyframesRule from inner.document.getElementById("dummyStyle").sheet.cssRules.6
PASS WebKitCSSKeyframesRuleConstructor from inner.document.getElementById("dummyStyle").sheet.cssRules.6.constructor
PASS WebKitCSSKeyframesRulePrototype from inner.document.getElementById("dummyStyle").sheet.cssRules.6.__proto__
+PASS Window from inner
+PASS WindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
+PASS WindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
Never found Audio
Never found AudioContext
Never found AudioPannerNode
continue;
// We already have other tests which cover window.Foo constructor objects, so skip them.
// fooInstance.constructor is the case we want to catch here.
- if (parentType == "DOMWindow" && type.match("Constructor$") && property != "constructor")
+ if (parentType == "Window" && type.match("Constructor$") && property != "constructor")
continue;
if (!resultsByType[type])
toCrawl.push(makeCrawlObject(value, valuePath));
Other
-PASS jsWrapperClass(window) is 'DOMWindow'
-PASS jsWrapperClass(window.__proto__) is 'DOMWindowPrototype'
-PASS jsWrapperClass(window.constructor) is 'DOMWindowConstructor'
+PASS jsWrapperClass(window) is 'Window'
+PASS jsWrapperClass(window.__proto__) is 'WindowPrototype'
+PASS jsWrapperClass(window.constructor) is 'WindowConstructor'
HTML DOM
debug('Other');
debug('');
- test("window", "DOMWindow");
+ test("window", "Window");
debug('');
debug('HTML DOM');
-PASS: handler not supported or did not crash when removing DOMWindows during ondeviceorientation event
+PASS: handler not supported or did not crash when removing Windows during ondeviceorientation event
}\r
\r
function done() {\r
- document.body.innerHTML = 'PASS: handler not supported or did not crash when removing DOMWindows during ondeviceorientation event';\r
+ document.body.innerHTML = 'PASS: handler not supported or did not crash when removing Windows during ondeviceorientation event';\r
if (window.layoutTestController)\r
layoutTestController.notifyDone();\r
}\r
This tests the target, currentEvent, and phase of a complete trace through event bubbling and capture.
-Target = [object HTMLDivElement] (ID: Self); Phase = CAPTURE; CurrentTarget = [object DOMWindow];
+Target = [object HTMLDivElement] (ID: Self); Phase = CAPTURE; CurrentTarget = [object Window];
Target = [object HTMLDivElement] (ID: Self); Phase = CAPTURE; CurrentTarget = [object HTMLDocument];
Target = [object HTMLDivElement] (ID: Self); Phase = CAPTURE; CurrentTarget = [object HTMLHtmlElement] (ID: HTML);
Target = [object HTMLDivElement] (ID: Self); Phase = CAPTURE; CurrentTarget = [object HTMLBodyElement] (ID: Body);
Target = [object HTMLDivElement] (ID: Self); Phase = BUBBLE; CurrentTarget = [object HTMLBodyElement] (ID: Body);
Target = [object HTMLDivElement] (ID: Self); Phase = BUBBLE; CurrentTarget = [object HTMLHtmlElement] (ID: HTML);
Target = [object HTMLDivElement] (ID: Self); Phase = BUBBLE; CurrentTarget = [object HTMLDocument];
-Target = [object HTMLDivElement] (ID: Self); Phase = BUBBLE; CurrentTarget = [object DOMWindow];
+Target = [object HTMLDivElement] (ID: Self); Phase = BUBBLE; CurrentTarget = [object Window];
Parent
Self
event.view :
document: [object HTMLDocument]
-proto: [object DOMWindowPrototype]
-Success getting [object DOMWindow]
+proto: [object WindowPrototype]
+Success getting [object Window]
-If the POST pop-up was not blocked then there will be an ALERT containing a DOMWindow object. Otherwise, the test passes.
+If the POST pop-up was not blocked then there will be an ALERT containing a Window object. Otherwise, the test passes.
</head>
<body onload="test()">
If the POST pop-up was not blocked then there will be an ALERT containing a
-DOMWindow object. Otherwise, the test passes.
+Window object. Otherwise, the test passes.
<form id="form" action="data:text/html,<script>alert(window)</script>" target="_blank">
<input type="submit" value="Submit to new window"/>
</form>
----- This Object: -----
-PASS: window.eval("this") should be [object DOMWindow] and is.
-PASS: frames[0].eval("this") should be [object DOMWindow] and is.
+PASS: window.eval("this") should be [object Window] and is.
+PASS: frames[0].eval("this") should be [object Window] and is.
PASS: window.eval("this") should be EvalError and is.
PASS: frames[0].eval("this") should be EvalError and is.
----- This Object: -----
PASS: eval("this") should be ["this" object passed to .call()] and is.
-PASS: window.eval("this") should be [object DOMWindow] and is.
-PASS: globalEval("this") should be [object DOMWindow] and is.
-PASS: localEval("this") should be [object DOMWindow] and is.
-PASS: (function() { var eval = window.eval; return eval("this"); })() should be [object DOMWindow] and is.
+PASS: window.eval("this") should be [object Window] and is.
+PASS: globalEval("this") should be [object Window] and is.
+PASS: localEval("this") should be [object Window] and is.
+PASS: (function() { var eval = window.eval; return eval("this"); })() should be [object Window] and is.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS result is "[object DOMWindow] -> x:1, y:2"
+PASS result is "[object Window] -> x:1, y:2"
PASS result is "'a' -> x:'b', y:1"
PASS result is "'a' -> x:'b', y:'c'"
PASS result is "[object Object] -> x:1, y:2"
PASS true === true
PASS true === true
PASS true === true
-PASS [object DOMWindow] === [object DOMWindow]
-PASS [object DOMWindow] === [object DOMWindow]
+PASS [object Window] === [object Window]
+PASS [object Window] === [object Window]
PASS [object Object] === [object Object]
PASS true === true
PASS true === true
PASS true === true
PASS true === true
PASS true === true
-PASS [object DOMWindow] === [object DOMWindow]
-PASS [object DOMWindow] === [object DOMWindow]
+PASS [object Window] === [object Window]
+PASS [object Window] === [object Window]
PASS [object Object] === [object Object]
PASSED!
PASS successfullyParsed is true
611276: JSOP_CALLEE should push undefined, not null, for this
-PASS [object DOMWindow] === [object DOMWindow]
+PASS [object Window] === [object Window]
PASS undefined === undefined
PASSED!
All tests passed!
H = G.bind("'Cannot rebind this!'", "'c'");
F(1,2);
-shouldBe("result", '"[object DOMWindow] -> x:1, y:2"');
+shouldBe("result", '"[object Window] -> x:1, y:2"');
G(1,2);
shouldBe("result", '"\'a\' -> x:\'b\', y:1"');
H(1,2);
Unmodified window
-window : [object DOMWindow]
-[window] : [object DOMWindow]
-String(window) : [object DOMWindow]
-String([window]) : [object DOMWindow]
-window.toString() : [object DOMWindow]
-[window].toString() : [object DOMWindow]
-window.valueOf() : [object DOMWindow]
-[window].valueOf() : [object DOMWindow]
+window : [object Window]
+[window] : [object Window]
+String(window) : [object Window]
+String([window]) : [object Window]
+window.toString() : [object Window]
+[window].toString() : [object Window]
+window.valueOf() : [object Window]
+[window].valueOf() : [object Window]
window with modified toString and valueOf
window : valueOf
CONSOLE MESSAGE: line 2: A message with first argument string
CONSOLE MESSAGE: line 3: 2011
-CONSOLE MESSAGE: line 4: [object DOMWindow]
+CONSOLE MESSAGE: line 4: [object Window]
Tests that console message arguments will be cleared when iframe where the messages were created is removed.
resources/console-clear-arguments-iframe.html:2A message with first argument string
resources/console-clear-arguments-iframe.html:32011
-resources/console-clear-arguments-iframe.html:4[object DOMWindow]
+resources/console-clear-arguments-iframe.html:4[object Window]
PASS: canSet('targetWindow.objectPrototypeCustomProperty') should be 'false' and is.
PASS: canGet('targetWindow.toString') should be 'true' and is.
PASS: canSet('targetWindow.toString') should be 'false' and is.
-PASS: toString('targetWindow', '') should be '[object DOMWindow]' and is.
+PASS: toString('targetWindow', '') should be '[object Window]' and is.
// window object itself
shouldBeTrue("canGet('targetWindow.toString')");
shouldBeFalse("canSet('targetWindow.toString')");
- shouldBe("toString('targetWindow', '')", "'[object DOMWindow]'");
+ shouldBe("toString('targetWindow', '')", "'[object Window]'");
// Work around DRT bug that causes subsequent tests to fail.
window.stop();
CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
ALERT: PASS: window.frameElement should be 'undefined' and is.
-ALERT: PASS: window.frames should be '[object DOMWindow]' and is.
+ALERT: PASS: window.frames should be '[object Window]' and is.
ALERT: PASS: window.history should be '[object History]' and is.
ALERT: PASS: window.images should be 'undefined' and is.
ALERT: PASS: window.innerHeight should be '150' and is.
ALERT: PASS: window.scrollbars should be '[object BarInfo]' and is.
ALERT: PASS: window.scrollX should be '0' and is.
ALERT: PASS: window.scrollY should be '0' and is.
-ALERT: PASS: window.self should be '[object DOMWindow]' and is.
+ALERT: PASS: window.self should be '[object Window]' and is.
ALERT: PASS: window.status should be '' and is.
ALERT: PASS: window.statusbar should be '[object BarInfo]' and is.
ALERT: PASS: window.toolbar should be '[object BarInfo]' and is.
-ALERT: PASS: window.window should be '[object DOMWindow]' and is.
+ALERT: PASS: window.window should be '[object Window]' and is.
ALERT: PASS: window.parent should be parentOld and is.
ALERT: PASS: window.top should be topOld and is.
ALERT: PASS: window.addEventListener should be 'function addEventListener() { [native code]}' and is.
-CONSOLE MESSAGE: line 1: TypeError: '[object DOMWindowConstructor]' is not a function (evaluating 'obj.alert.constructor("return document.body.innerHTML")')
+CONSOLE MESSAGE: line 1: TypeError: '[object WindowConstructor]' is not a function (evaluating 'obj.alert.constructor("return document.body.innerHTML")')
-CONSOLE MESSAGE: line 9: [object DOMWindow]
+CONSOLE MESSAGE: line 9: [object Window]
Tests that console dumps global object with properties.
{
Local
arguments: Arguments[1]
innerFunctionLocalVar: 2012
- this: DOMWindow
+ this: Window
x: 2010
-DOMWindowWith Block
+WindowWith Block
innerFunction: function innerFunction(x) {
Closure
arguments: Arguments[1]
makeClosureLocalVar: "local.TextParam"
n: "TextParam"
-DOMWindowGlobal
+WindowGlobal
<section collapsed>
Script execution resumed.
Debugger was disabled.
nodes: [
{ fields: ["type", "name", "id", "children_count", "children"],
types: [["hidden", "object"], "", "", "", { fields: ["type", "name_or_index", "to_node"], types: [["element", "hidden", "internal"], "", ""] }] },
- // A tree with DOMWindow objects.
+ // A tree with Window objects.
//
- // |----->DOMWindow--->A
+ // |----->Window--->A
// | \
- // |----->DOMWindow--->B--->C
+ // |----->Window--->B--->C
// | | \
// (root) hidden --->D--internal / "native"-->N
// | \ |
// |----->F--->G------>M
//
/* (root) */ 0, 0, 1, 4, 0, 1, 17, 0, 2, 27, 0, 3, 40, 0, 4, 44,
- /* DOMWindow */ 1, 11, 2, 2, 0, 1, 51, 0, 2, 55,
- /* DOMWindow */ 1, 11, 3, 3, 0, 1, 55, 0, 2, 62, 1, 3, 72,
+ /* Window */ 1, 11, 2, 2, 0, 1, 51, 0, 2, 55,
+ /* Window */ 1, 11, 3, 3, 0, 1, 55, 0, 2, 62, 1, 3, 72,
/* E */ 1, 5, 4, 0,
/* F */ 1, 6, 5, 1, 0, 1, 76,
/* A */ 1, 1, 6, 0,
/* N */ 1, 10, 12, 0,
/* M */ 1, 9, 13, 0
],
- strings: ["", "A", "B", "C", "D", "E", "F", "G", "H", "M", "N", "DOMWindow", "native"]
+ strings: ["", "A", "B", "C", "D", "E", "F", "G", "H", "M", "N", "Window", "native"]
};
};
"H": false,
"M": false,
"N": false,
- "DOMWindow": true
+ "Window": true
};
for (var nodes = snapshot._allNodes; nodes.hasNext(); nodes.next()) {
var node = nodes.item;
} (of type object).
PASS jsoc.setJSObject( MyObject ); jsoc.getJSObject() is MyObject
PASS jsoc.getJSObject().constructor is Function
-FAIL jsoc.setJSObject( THIS ); jsoc.PUB_JSOBJECT should be [object DOMWindow]. Was [object DOMWindow].
+FAIL jsoc.setJSObject( THIS ); jsoc.PUB_JSOBJECT should be [object Window]. Was [object Window].
PASS jsoc.setJSObject( THIS ); jsoc.getJSObject() is this
PASS jsoc.getJSObject().constructor is this.constructor
FAIL jsoc.setJSObject( Math ); jsoc.PUB_JSOBJECT should be [object Math]. Was [object Math].
} (of type object).
PASS dt.setObject( MyObject ); dt.getObject() is MyObject
PASS dt.getObject().constructor is Function
-FAIL dt.setObject( THIS ); dt.PUB_OBJECT should be [object DOMWindow]. Was [object DOMWindow].
+FAIL dt.setObject( THIS ); dt.PUB_OBJECT should be [object Window]. Was [object Window].
PASS dt.setObject( THIS ); dt.getObject() is this
PASS dt.getObject().constructor is this.constructor
FAIL dt.setObject( Math ); dt.PUB_OBJECT should be [object Math]. Was [object Math].
PASS dt.setStringObject( MyObject ); dt.PUB_STRING +'' is MyObject.toString()
PASS dt.setStringObject( MyObject ); dt.getStringObject() +'' is MyObject.toString()
FAIL java.lang.Class.forName("java.lang.String"): ReferenceError: Can't find variable: java
-FAIL dt.setStringObject( THIS ); dt.PUB_STRING +'' should be [object global]. Was [object DOMWindow].
-FAIL dt.setStringObject( THIS ); dt.getStringObject() +'' should be [object global]. Was [object DOMWindow].
+FAIL dt.setStringObject( THIS ); dt.PUB_STRING +'' should be [object global]. Was [object Window].
+FAIL dt.setStringObject( THIS ); dt.getStringObject() +'' should be [object global]. Was [object Window].
FAIL java.lang.Class.forName("java.lang.String"): ReferenceError: Can't find variable: java
PASS dt.setStringObject( Math ); dt.PUB_STRING +'' is "[object Math]"
PASS dt.setStringObject( Math ); dt.getStringObject() +'' is "[object Math]"
event.view :
document: [object HTMLDocument]
proto: [object Object]
-Success getting [object DOMWindow]
+Success getting [object Window]
event.view :
document: [object HTMLDocument]
proto: [object Object]
-Success getting [object DOMWindow]
+Success getting [object Window]
toString-and-valueOf-override-diff-win.txt
--------------------------
This test differs only in text. V8 typeerror messages are slightly
-different, and the global object is of type global instead of 'DOMWindow'
+different, and the global object is of type global instead of 'Window'
kde\crash-2-expected.txt
--------------------------
-Tests lookup precedence for properties on DOMWindow objects in the presence of a child frame, and that IDL properties defined in the prototype (window.location, window.focus, etc) have higher lookup precedence than named document elements (such as input elements).
+Tests lookup precedence for properties on Window objects in the presence of a child frame, and that IDL properties defined in the prototype (window.location, window.focus, etc) have higher lookup precedence than named document elements (such as input elements).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS 'function XSLTProcessor() { [native code] }' is 'function XSLTProcessor() { [native code] }'
PASS win['onload'] is null
PASS win['onload'] is null
-PASS win['frames'] == '[object DOMWindow]' is true
-PASS win['frames'] == '[object DOMWindow]' is true
-PASS win['parent'] == '[object DOMWindow]' is true
-PASS win['parent'] == '[object DOMWindow]' is true
-PASS win['self'] == '[object DOMWindow]' is true
-PASS win['self'] == '[object DOMWindow]' is true
-PASS win['top'] == '[object DOMWindow]' is true
-PASS win['top'] == '[object DOMWindow]' is true
-PASS win['window'] == '[object DOMWindow]' is true
-PASS win['window'] == '[object DOMWindow]' is true
+PASS win['frames'] == '[object Window]' is true
+PASS win['frames'] == '[object Window]' is true
+PASS win['parent'] == '[object Window]' is true
+PASS win['parent'] == '[object Window]' is true
+PASS win['self'] == '[object Window]' is true
+PASS win['self'] == '[object Window]' is true
+PASS win['top'] == '[object Window]' is true
+PASS win['top'] == '[object Window]' is true
+PASS win['window'] == '[object Window]' is true
+PASS win['window'] == '[object Window]' is true
PASS win['locationbar'] == '[object BarInfo]' is true
PASS win['locationbar'] == '[object BarInfo]' is true
PASS win['menubar'] == '[object BarInfo]' is true
PASS: Posting message ('2', c): threw exception TypeError: TransferArray argument must be an object
PASS: Posting message ('3', [object Object]): threw exception TypeError: TransferArray argument has no length attribute
PASS: Posting message ('3', [object Object]): threw exception TypeError: TransferArray argument has no length attribute
-PASS: Posting message ('4', [object DOMWindow]) did not throw an exception
-PASS: Posting message ('4', [object DOMWindow]) did not throw an exception
+PASS: Posting message ('4', [object Window]) did not throw an exception
+PASS: Posting message ('4', [object Window]) did not throw an exception
PASS: Posting message ('4a', *) did not throw an exception
PASS: Posting message ('4a', *) did not throw an exception
PASS: Posting message ('5', null) did not throw an exception
Other
-FAIL jsWrapperClass(window) should be DOMWindow. Was global.
-FAIL jsWrapperClass(window.__proto__) should be DOMWindowPrototype. Was Object.
-FAIL jsWrapperClass(window.constructor) should be DOMWindowConstructor. Was Function.
+FAIL jsWrapperClass(window) should be Window. Was global.
+FAIL jsWrapperClass(window.__proto__) should be WindowPrototype. Was Object.
+FAIL jsWrapperClass(window.constructor) should be WindowConstructor. Was Function.
HTML DOM
PASS true === true
PASS true === true
PASS true === true
-PASS [object DOMWindow] === [object DOMWindow]
-PASS [object DOMWindow] === [object DOMWindow]
+PASS [object Window] === [object Window]
+PASS [object Window] === [object Window]
PASS [object Object] === [object Object]
PASSED!
PASS successfullyParsed is true
Unmodified window
-window : [object DOMWindow]
-[window] : [object DOMWindow]
-String(window) : [object DOMWindow]
-String([window]) : [object DOMWindow]
-window.toString() : [object DOMWindow]
-[window].toString() : [object DOMWindow]
-window.valueOf() : [object DOMWindow]
-[window].valueOf() : [object DOMWindow]
+window : [object Window]
+[window] : [object Window]
+String(window) : [object Window]
+String([window]) : [object Window]
+window.toString() : [object Window]
+[window].toString() : [object Window]
+window.valueOf() : [object Window]
+[window].valueOf() : [object Window]
window with modified toString and valueOf
window : valueOf
PASS: window.openDatabase.call(targetWindow, 'name', '1.0', 'description', 0) should be 'undefined' and is.
PASS: window.atob.call(targetWindow, 'string') should be 'undefined' and is.
PASS: window.btoa.call(targetWindow, 'string') should be 'undefined' and is.
-*** FAIL: window.open.call(targetWindow, '') should be 'undefined' but instead is [object DOMWindow]. ***
+*** FAIL: window.open.call(targetWindow, '') should be 'undefined' but instead is [object Window]. ***
PASS: window.addEventListener.call(targetWindow, 'load', null, false); should be 'undefined' and is.
PASS: window.removeEventListener.call(targetWindow, 'load', null, false); should be 'undefined' and is.
PASS: window.clearTimeout.call(targetWindow, 0); should be 'undefined' and is.
CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
ALERT: PASS: window.frameElement should be 'undefined' and is.
-ALERT: PASS: window.frames should be '[object DOMWindow]' and is.
+ALERT: PASS: window.frames should be '[object Window]' and is.
ALERT: PASS: window.history should be '[object History]' and is.
ALERT: PASS: window.images should be 'undefined' and is.
ALERT: PASS: window.innerHeight should be '150' and is.
ALERT: PASS: window.scrollbars should be '[object BarInfo]' and is.
ALERT: PASS: window.scrollX should be '0' and is.
ALERT: PASS: window.scrollY should be '0' and is.
-ALERT: PASS: window.self should be '[object DOMWindow]' and is.
+ALERT: PASS: window.self should be '[object Window]' and is.
ALERT: PASS: window.status should be '' and is.
ALERT: PASS: window.statusbar should be '[object BarInfo]' and is.
ALERT: PASS: window.toolbar should be '[object BarInfo]' and is.
-ALERT: PASS: window.window should be '[object DOMWindow]' and is.
+ALERT: PASS: window.window should be '[object Window]' and is.
ALERT: PASS: window.parent should be parentOld and is.
ALERT: PASS: window.top should be topOld and is.
ALERT: PASS: window.addEventListener should be 'function addEventListener() { [native code] }' and is.
-CONSOLE MESSAGE: line 9: [object DOMWindow]\r
+CONSOLE MESSAGE: line 9: [object Window]\r
Tests that console dumps global object with properties.\r
\r
{\r
Dump scope sections:
Local
innerFunctionLocalVar: 2012
- this: DOMWindow
+ this: Window
x: 2010
Closure
makeClosureLocalVar: "local.TextParam"
n: "TextParam"
-DOMWindowGlobal
+WindowGlobal
<section collapsed>
Script execution resumed.
Debugger was disabled.
This test dumps all of the properties that are reachable from the window object, along with their types.
-window [object DOMWindow]
+window [object Window]
window.Array [function]
window.Attr [object AttrConstructor]
window.Attr.prototype [object AttrPrototype]
window.WebSocket.prototype.send [function]
window.WheelEvent [object WheelEventConstructor]
window.WheelEvent.prototype [printed above as window.Event.prototype]
-window.Window [object DOMWindowConstructor]
-window.Window.prototype [object DOMWindowPrototype]
+window.Window [object WindowConstructor]
+window.Window.prototype [object WindowPrototype]
window.Window.prototype.addEventListener [function]
window.Window.prototype.alert [function]
window.Window.prototype.atob [function]
PASS DOMTokenList from inner.document.forms.testForm.0.0.classList
PASS DOMTokenListConstructor from inner.document.forms.testForm.0.classList.constructor
PASS DOMTokenListPrototype from inner.document.forms.testForm.0.0.classList.__proto__
-PASS DOMWindow from inner
-PASS DOMWindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
-PASS DOMWindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
+PASS Window from inner
+PASS WindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
+PASS WindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
PASS DocumentPrototype from inner.document.forms.testForm.0.ownerDocument.__proto__.__proto__
PASS ElementPrototype from inner.document.forms.testForm.0.__proto__.__proto__.__proto__
PASS Function from inner.document.createElement
PASS WebKitTransitionEvent.toString() is '[object WebKitTransitionEventConstructor]'
PASS WebSocket.toString() is '[object WebSocketConstructor]'
PASS WheelEvent.toString() is '[object WheelEventConstructor]'
-FAIL Window.toString() should be [object WindowConstructor]. Was [object DOMWindowConstructor].
+FAIL Window.toString() should be [object WindowConstructor]. Was [object WindowConstructor].
PASS Worker.toString() is '[object WorkerConstructor]'
PASS XMLDocument.toString() is '[object DocumentConstructor]'
PASS XMLHttpRequest.toString() is '[object XMLHttpRequestConstructor]'
CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
ALERT: PASS: window.frameElement should be 'undefined' and is.
-ALERT: PASS: window.frames should be '[object DOMWindow]' and is.
+ALERT: PASS: window.frames should be '[object Window]' and is.
ALERT: PASS: window.history should be '[object History]' and is.
ALERT: PASS: window.images should be 'undefined' and is.
ALERT: PASS: window.innerHeight should be '150' and is.
ALERT: PASS: window.scrollbars should be '[object BarInfo]' and is.
ALERT: PASS: window.scrollX should be '0' and is.
ALERT: PASS: window.scrollY should be '0' and is.
-ALERT: PASS: window.self should be '[object DOMWindow]' and is.
+ALERT: PASS: window.self should be '[object Window]' and is.
ALERT: PASS: window.status should be '' and is.
ALERT: PASS: window.statusbar should be '[object BarInfo]' and is.
ALERT: PASS: window.toolbar should be '[object BarInfo]' and is.
-ALERT: PASS: window.window should be '[object DOMWindow]' and is.
+ALERT: PASS: window.window should be '[object Window]' and is.
ALERT: PASS: window.parent should be parentOld and is.
ALERT: PASS: window.top should be topOld and is.
ALERT: PASS: window.addEventListener should be 'function addEventListener() { [native code]}' and is.
This test dumps all of the properties that are reachable from the window object, along with their types.
-window [object DOMWindow]
+window [object Window]
window.Array [function]
window.Attr [object AttrConstructor]
window.Attr.prototype [object AttrPrototype]
window.WebSocket.prototype.send [function]
window.WheelEvent [object WheelEventConstructor]
window.WheelEvent.prototype [printed above as window.Event.prototype]
+window.Window [object WindowConstructor]
+window.Window.prototype [object WindowPrototype]
+window.Window.prototype.addEventListener [function]
+window.Window.prototype.alert [function]
+window.Window.prototype.atob [function]
+window.Window.prototype.blur [function]
+window.Window.prototype.btoa [function]
+window.Window.prototype.captureEvents [function]
+window.Window.prototype.clearInterval [function]
+window.Window.prototype.clearTimeout [function]
+window.Window.prototype.close [function]
+window.Window.prototype.confirm [function]
+window.Window.prototype.dispatchEvent [function]
+window.Window.prototype.find [function]
+window.Window.prototype.focus [function]
+window.Window.prototype.getComputedStyle [function]
+window.Window.prototype.getMatchedCSSRules [function]
+window.Window.prototype.getSelection [function]
+window.Window.prototype.matchMedia [function]
+window.Window.prototype.moveBy [function]
+window.Window.prototype.moveTo [function]
+window.Window.prototype.open [function]
+window.Window.prototype.openDatabase [function]
+window.Window.prototype.postMessage [function]
+window.Window.prototype.print [function]
+window.Window.prototype.prompt [function]
+window.Window.prototype.releaseEvents [function]
+window.Window.prototype.removeEventListener [function]
+window.Window.prototype.resizeBy [function]
+window.Window.prototype.resizeTo [function]
+window.Window.prototype.scroll [function]
+window.Window.prototype.scrollBy [function]
+window.Window.prototype.scrollTo [function]
+window.Window.prototype.setInterval [function]
+window.Window.prototype.setTimeout [function]
+window.Window.prototype.showModalDialog [function]
+window.Window.prototype.stop [function]
+window.Window.prototype.webkitCancelAnimationFrame [function]
+window.Window.prototype.webkitCancelRequestAnimationFrame [function]
+window.Window.prototype.webkitConvertPointFromNodeToPage [function]
+window.Window.prototype.webkitConvertPointFromPageToNode [function]
+window.Window.prototype.webkitPostMessage [function]
+window.Window.prototype.webkitRequestAnimationFrame [function]
window.Worker [object WorkerConstructor]
window.Worker.length [number]
window.Worker.prototype [object WorkerPrototype]
window.console.timeStamp [function]
window.console.trace [function]
window.console.warn [function]
-window.constructor [object DOMWindowConstructor]
-window.constructor.prototype [object DOMWindowPrototype]
-window.constructor.prototype.addEventListener [function]
-window.constructor.prototype.alert [function]
-window.constructor.prototype.atob [function]
-window.constructor.prototype.blur [function]
-window.constructor.prototype.btoa [function]
-window.constructor.prototype.captureEvents [function]
-window.constructor.prototype.clearInterval [function]
-window.constructor.prototype.clearTimeout [function]
-window.constructor.prototype.close [function]
-window.constructor.prototype.confirm [function]
-window.constructor.prototype.dispatchEvent [function]
-window.constructor.prototype.find [function]
-window.constructor.prototype.focus [function]
-window.constructor.prototype.getComputedStyle [function]
-window.constructor.prototype.getMatchedCSSRules [function]
-window.constructor.prototype.getSelection [function]
-window.constructor.prototype.matchMedia [function]
-window.constructor.prototype.moveBy [function]
-window.constructor.prototype.moveTo [function]
-window.constructor.prototype.open [function]
-window.constructor.prototype.openDatabase [function]
-window.constructor.prototype.postMessage [function]
-window.constructor.prototype.print [function]
-window.constructor.prototype.prompt [function]
-window.constructor.prototype.releaseEvents [function]
-window.constructor.prototype.removeEventListener [function]
-window.constructor.prototype.resizeBy [function]
-window.constructor.prototype.resizeTo [function]
-window.constructor.prototype.scroll [function]
-window.constructor.prototype.scrollBy [function]
-window.constructor.prototype.scrollTo [function]
-window.constructor.prototype.setInterval [function]
-window.constructor.prototype.setTimeout [function]
-window.constructor.prototype.showModalDialog [function]
-window.constructor.prototype.stop [function]
-window.constructor.prototype.webkitCancelAnimationFrame [function]
-window.constructor.prototype.webkitCancelRequestAnimationFrame [function]
-window.constructor.prototype.webkitConvertPointFromNodeToPage [function]
-window.constructor.prototype.webkitConvertPointFromPageToNode [function]
-window.constructor.prototype.webkitPostMessage [function]
-window.constructor.prototype.webkitRequestAnimationFrame [function]
+window.constructor [printed above as window.Window]
window.crypto [object Crypto]
window.crypto.getRandomValues [function]
window.decodeURI [function]
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitTransitionEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebSocket') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WheelEvent') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'Window') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Worker') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLDocument') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequest') is 'object'
PASS DOMTokenList from inner.document.forms.testForm.0.0.classList
PASS DOMTokenListConstructor from inner.document.forms.testForm.0.classList.constructor
PASS DOMTokenListPrototype from inner.document.forms.testForm.0.0.classList.__proto__
-PASS DOMWindow from inner
-PASS DOMWindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
-PASS DOMWindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
PASS DocumentPrototype from inner.document.forms.testForm.0.ownerDocument.__proto__.__proto__
PASS ElementPrototype from inner.document.forms.testForm.0.__proto__.__proto__.__proto__
PASS Function from inner.document.createElement
PASS WebKitCSSKeyframesRule from inner.document.getElementById("dummyStyle").sheet.cssRules.6
PASS WebKitCSSKeyframesRuleConstructor from inner.document.getElementById("dummyStyle").sheet.cssRules.6.constructor
PASS WebKitCSSKeyframesRulePrototype from inner.document.getElementById("dummyStyle").sheet.cssRules.6.__proto__
+PASS Window from inner
+PASS WindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
+PASS WindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
Never found Audio
Never found AudioContext
Never found AudioPannerNode
debug('Other');
debug('');
- test("window", "DOMWindow", "DOMAbstractView");
+ test("window", "Window", "DOMAbstractView");
debug('');
debug('HTML DOM');
PASS WebKitTransitionEvent.toString() is '[object WebKitTransitionEventConstructor]'
PASS WebSocket.toString() is '[object WebSocketConstructor]'
PASS WheelEvent.toString() is '[object WheelEventConstructor]'
+PASS Window.toString() is '[object WindowConstructor]'
PASS Worker.toString() is '[object WorkerConstructor]'
PASS XMLDocument.toString() is '[object DocumentConstructor]'
PASS XMLHttpRequest.toString() is '[object XMLHttpRequestConstructor]'
This test dumps all of the properties that are reachable from the window object, along with their types.
-window [object DOMWindow]
+window [object Window]
window.Array [function]
window.Attr [object AttrConstructor]
window.Attr.prototype [object AttrPrototype]
window.console.timeStamp [function]
window.console.trace [function]
window.console.warn [function]
-window.constructor [object DOMWindowConstructor]
-window.constructor.prototype [object DOMWindowPrototype]
+window.constructor [object WindowConstructor]
+window.constructor.prototype [object WindowPrototype]
window.constructor.prototype.addEventListener [function]
window.constructor.prototype.alert [function]
window.constructor.prototype.atob [function]
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitTransitionEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebSocket') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WheelEvent') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'Window') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Worker') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLDocument') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequest') is 'object'
PASS DOMTokenList from inner.document.forms.testForm.0.0.classList
PASS DOMTokenListConstructor from inner.document.forms.testForm.0.classList.constructor
PASS DOMTokenListPrototype from inner.document.forms.testForm.0.0.classList.__proto__
-PASS DOMWindow from inner
-PASS DOMWindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
-PASS DOMWindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
+PASS Window from inner
+PASS WindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
+PASS WindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
PASS DocumentPrototype from inner.document.forms.testForm.0.ownerDocument.__proto__.__proto__
PASS ElementPrototype from inner.document.forms.testForm.0.__proto__.__proto__.__proto__
PASS Function from inner.document.createElement
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitTransitionEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebSocket') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WheelEvent') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'Window') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Worker') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLDocument') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequest') is 'object'
This test dumps all of the properties that are reachable from the window object, along with their types.
-window [object DOMWindow]
+window [object Window]
window.Array [function]
window.Attr [object AttrConstructor]
window.Attr.prototype [object AttrPrototype]
window.WebSocket.prototype.send [function]
window.WheelEvent [object WheelEventConstructor]
window.WheelEvent.prototype [printed above as window.Event.prototype]
-window.Window [object DOMWindowConstructor]
-window.Window.prototype [object DOMWindowPrototype]
+window.Window [object WindowConstructor]
+window.Window.prototype [object WindowPrototype]
window.Window.prototype.addEventListener [function]
window.Window.prototype.alert [function]
window.Window.prototype.atob [function]
PASS DOMTokenList from inner.document.forms.testForm.0.0.classList
PASS DOMTokenListConstructor from inner.document.forms.testForm.0.classList.constructor
PASS DOMTokenListPrototype from inner.document.forms.testForm.0.0.classList.__proto__
-PASS DOMWindow from inner
-PASS DOMWindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
-PASS DOMWindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
+PASS Window from inner
+PASS WindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
+PASS WindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
PASS DocumentPrototype from inner.document.forms.testForm.0.ownerDocument.__proto__.__proto__
PASS ElementPrototype from inner.document.forms.testForm.0.__proto__.__proto__.__proto__
PASS Function from inner.document.createElement
PASS WebKitTransitionEvent.toString() is '[object WebKitTransitionEventConstructor]'
PASS WebSocket.toString() is '[object WebSocketConstructor]'
PASS WheelEvent.toString() is '[object WheelEventConstructor]'
-FAIL Window.toString() should be [object WindowConstructor]. Was [object DOMWindowConstructor].
+FAIL Window.toString() should be [object WindowConstructor]. Was [object WindowConstructor].
PASS Worker.toString() is '[object WorkerConstructor]'
PASS XMLDocument.toString() is '[object DocumentConstructor]'
PASS XMLHttpRequest.toString() is '[object XMLHttpRequestConstructor]'
CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
ALERT: PASS: window.frameElement should be 'undefined' and is.
-ALERT: PASS: window.frames should be '[object DOMWindow]' and is.
+ALERT: PASS: window.frames should be '[object Window]' and is.
ALERT: PASS: window.history should be '[object History]' and is.
ALERT: PASS: window.images should be 'undefined' and is.
ALERT: PASS: window.innerHeight should be '150' and is.
ALERT: PASS: window.scrollbars should be '[object BarInfo]' and is.
ALERT: PASS: window.scrollX should be '0' and is.
ALERT: PASS: window.scrollY should be '0' and is.
-ALERT: PASS: window.self should be '[object DOMWindow]' and is.
+ALERT: PASS: window.self should be '[object Window]' and is.
ALERT: PASS: window.status should be '' and is.
ALERT: PASS: window.statusbar should be '[object BarInfo]' and is.
ALERT: PASS: window.toolbar should be '[object BarInfo]' and is.
-ALERT: PASS: window.window should be '[object DOMWindow]' and is.
+ALERT: PASS: window.window should be '[object Window]' and is.
ALERT: PASS: window.parent should be parentOld and is.
ALERT: PASS: window.top should be topOld and is.
ALERT: PASS: window.addEventListener should be 'function addEventListener() { [native code]}' and is.
This test dumps all of the properties that are reachable from the window object, along with their types.
-window [object DOMWindow]
+window [object Window]
window.Array [function]
window.Attr [object AttrConstructor]
window.Attr.prototype [object AttrPrototype]
window.console.timeStamp [function]
window.console.trace [function]
window.console.warn [function]
-window.constructor [object DOMWindowConstructor]
-window.constructor.prototype [object DOMWindowPrototype]
+window.constructor [object WindowConstructor]
+window.constructor.prototype [object WindowPrototype]
window.constructor.prototype.addEventListener [function]
window.constructor.prototype.alert [function]
window.constructor.prototype.atob [function]
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitTransitionEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebSocket') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WheelEvent') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'Window') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Worker') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLDocument') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequest') is 'object'
PASS DOMTokenList from inner.document.forms.testForm.0.0.classList
PASS DOMTokenListConstructor from inner.document.forms.testForm.0.classList.constructor
PASS DOMTokenListPrototype from inner.document.forms.testForm.0.0.classList.__proto__
-PASS DOMWindow from inner
-PASS DOMWindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
-PASS DOMWindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
+PASS Window from inner
+PASS WindowConstructor from inner.document.forms.testForm.0.ownerDocument.defaultView.constructor
+PASS WindowPrototype from inner.document.forms.testForm.0.ownerDocument.defaultView.__proto__
PASS DocumentPrototype from inner.document.forms.testForm.0.ownerDocument.__proto__.__proto__
PASS ElementPrototype from inner.document.forms.testForm.0.__proto__.__proto__.__proto__
PASS Function from inner.document.createElement
S11.1.1_A2
-FAIL SputnikError: #1: this.toString() === toString(). Actual: [object DOMWindow]
+FAIL SputnikError: #1: this.toString() === toString(). Actual: [object Window]
TEST COMPLETE
S15.1_A1_T1
-PASS TypeError: '[object DOMWindow]' is not a constructor (evaluating 'new this')
+PASS TypeError: '[object Window]' is not a constructor (evaluating 'new this')
TEST COMPLETE
S15.1_A1_T2
-PASS TypeError: '[object DOMWindow]' is not a constructor (evaluating 'new this()')
+PASS TypeError: '[object Window]' is not a constructor (evaluating 'new this()')
TEST COMPLETE
S15.1_A2_T1
-PASS TypeError: '[object DOMWindow]' is not a function (evaluating 'this()')
+PASS TypeError: '[object Window]' is not a function (evaluating 'this()')
TEST COMPLETE
+2012-02-23 Erik Arvidsson <arv@chromium.org>
+
+ Rename DOMWindow to Window in the bindings
+ https://bugs.webkit.org/show_bug.cgi?id=78721
+
+ Reviewed by Adam Barth.
+
+ Covered by existing tests.
+
+ * inspector/front-end/DetailedHeapshotGridNodes.js:
+ (WebInspector.HeapSnapshotGenericObjectNode):
+ (WebInspector.HeapSnapshotGenericObjectNode.prototype.isWindow):
+ * inspector/front-end/HeapSnapshot.js:
+ (WebInspector.HeapSnapshotNode.prototype.get isWindow):
+ (WebInspector.HeapSnapshot.prototype._calculateObjectToWindowDistance):
+ (WebInspector.HeapSnapshot.prototype._markQueriableHeapObjects):
+ * page/DOMWindow.idl:
+
2012-02-23 Shinya Kawanaka <shinyak@chromium.org>
NodeRenderingContext should have ShadowRootList instead of ShadowRoot.
this.snapshotNodeIndex = node.nodeIndex;
if (this._type === "string")
this.hasHoverMessage = true;
- else if (this._type === "object" && this.isDOMWindow(this._name)) {
+ else if (this._type === "object" && this.isWindow(this._name)) {
this._name = this.shortenWindowURL(this._name, false);
this.hasHoverMessage = true;
} else if (node.flags & tree.snapshot.nodeFlags.canBeQueried)
this._provider.isEmpty(isEmptyCallback.bind(this));
},
- isDOMWindow: function(fullName)
+ isWindow: function(fullName)
{
- return fullName.substr(0, 9) === "DOMWindow";
+ return fullName.substr(0, 9) === "Window";
},
shortenWindowURL: function(fullName, hasObjectId)
return this._type() === this._snapshot._nodeSyntheticType;
},
- get isDOMWindow()
+ get isWindow()
{
- return this.name.substr(0, 9) === "DOMWindow";
+ return this.name.substr(0, 9) === "Window";
},
get isDetachedDOMTreesRoot()
{
this._distancesToWindow = new Array(this.nodeCount);
- // bfs for DOMWindow roots
+ // bfs for Window roots
var list = [];
for (var iter = this.rootNode.edges; iter.hasNext(); iter.next()) {
- if (iter.edge.node.isDOMWindow) {
+ if (iter.edge.node.isWindow) {
list.push(iter.edge.node);
this._distancesToWindow[iter.edge.node.nodeIndex] = 0;
}
_markQueriableHeapObjects: function()
{
- // Allow runtime properties query for objects accessible from DOMWindow objects
+ // Allow runtime properties query for objects accessible from Window objects
// via regular properties, and for DOM wrappers. Trying to access random objects
// can cause a crash due to insonsistent state of internal properties of wrappers.
var flag = this._nodeFlags.canBeQueried;
var list = [];
for (var iter = this.rootNode.edges; iter.hasNext(); iter.next()) {
- if (iter.edge.node.isDOMWindow)
+ if (iter.edge.node.isWindow)
list.push(iter.edge.node);
}
JSGenerateToNativeObject,
ReplaceableConstructor,
JSLegacyParent=JSDOMWindowBase,
- V8CustomToJSObject
+ V8CustomToJSObject,
+ InterfaceName=Window
] DOMWindow {
// DOM Level 0
attribute [Replaceable] Screen screen;