Move document.defineElement to customElements.define
[WebKit-https.git] / LayoutTests / ChangeLog
index 8bf9aa9..424a82b 100644 (file)
@@ -1,3 +1,472 @@
+2016-08-10  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Move document.defineElement to customElements.define
+        https://bugs.webkit.org/show_bug.cgi?id=160731
+
+        Reviewed by Chris Dumez.
+
+        Updated the tests and their expected results to reflect the move of Document.prototype.defineElement to
+        CustomElementsRegistry.prototype.define. I'm going to rename tests in a follow up.
+
+        * fast/custom-elements/Document-createElement.html:
+        * fast/custom-elements/Document-defineElement-expected.txt:
+        * fast/custom-elements/Document-defineElement.html: Removed test cases for testing defining elements
+        in a viewless/windowless document since those documents don't have a corresponding window object.
+        * fast/custom-elements/HTMLElement-constructor.html:
+        * fast/custom-elements/attribute-changed-callback.html:
+        * fast/custom-elements/defined-pseudo-class.html:
+        * fast/custom-elements/defined-rule.html:
+        * fast/custom-elements/lifecycle-callback-timing.html:
+        * fast/custom-elements/parser/parser-constructs-custom-element-in-document-write.html:
+        * fast/custom-elements/parser/parser-constructs-custom-element-synchronously.html:
+        * fast/custom-elements/parser/parser-constructs-custom-elements-expected.txt:
+        * fast/custom-elements/parser/parser-constructs-custom-elements.html:
+        * fast/custom-elements/parser/parser-fallsback-to-unknown-element.html:
+        * fast/custom-elements/parser/parser-sets-attributes-and-children.html:
+        * fast/custom-elements/parser/parser-uses-constructed-element.html:
+        * fast/custom-elements/parser/parser-uses-registry-of-owner-document.html:
+        * fast/custom-elements/upgrading/Node-cloneNode.html:
+        * fast/custom-elements/upgrading/upgrading-parser-created-element.html:
+        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
+
+2016-08-10  Simon Fraser  <simon.fraser@apple.com>
+
+        [iOS WK2] Use the simulated device's screen size, rather than a harcoded size
+        https://bugs.webkit.org/show_bug.cgi?id=160748
+
+        Reviewed by Tim Horton.
+        
+        Move fast/viewport/ios skipping to ios-simulator-wk2/TestExpectations since the tests
+        are WK2-only.
+
+        * fast/viewport/ios/width-is-device-width-expected.txt:
+        * fast/viewport/ios/width-is-device-width-overflowing-no-shrink-to-fit-expected.txt:
+        * platform/ios-simulator-wk2/TestExpectations:
+        * platform/ios-simulator/TestExpectations:
+        * platform/ios-simulator/fast/scrolling/ios/clipping-ancestor-with-accelerated-scrolling-ancestor-expected.txt:
+        * platform/ios-simulator/fast/scrolling/ios/overflow-scrolling-ancestor-clip-expected.txt:
+        * platform/ios-simulator/fast/scrolling/ios/overflow-scrolling-ancestor-clip-size-expected.txt:
+        * platform/ios-simulator/fast/scrolling/ios/scrolling-content-clip-to-viewport-expected.txt:
+        * platform/ios-simulator/fast/scrolling/ios/touch-stacking-expected.txt:
+        * platform/ios-simulator/fast/viewport/ios/width-is-device-width-overflowing-no-shrink-to-fit-expected.txt: Removed.
+
+2016-08-10  Nan Wang  <n_wang@apple.com>
+
+        AX: Media controls timeline should have percentage value description
+        https://bugs.webkit.org/show_bug.cgi?id=160619
+
+        Reviewed by Eric Carlson.
+
+        * http/tests/media/hls/video-duration-accessibility-expected.txt: Added.
+        * http/tests/media/hls/video-duration-accessibility.html: Added.
+        * http/tests/media/resources/hls/generate-vod.php: Added.
+        * media/media-controls-accessibility-expected.txt:
+        * platform/efl/accessibility/media-element-expected.txt:
+        * platform/gtk/accessibility/media-element-expected.txt:
+        * platform/mac/accessibility/media-element-expected.txt:
+
+2016-08-09  Skachkov Oleksandr  <gskachkov@gmail.com>
+
+        [ES2016] Implement Object.values
+        https://bugs.webkit.org/show_bug.cgi?id=160410
+
+        Reviewed by Saam Barati, Yusuke Suzuki.
+
+        * js/Object-getOwnPropertyNames-expected.txt:
+        * js/script-tests/Object-getOwnPropertyNames.js:
+
+2016-08-10  Saam Barati  <sbarati@apple.com>
+
+        Web Inspector: rebase inspector/model/remote-object-get-properties.html and unskip
+        https://bugs.webkit.org/show_bug.cgi?id=160738
+        <rdar://problem/27788116>
+
+        Reviewed by Joseph Pecoraro.
+
+        * TestExpectations:
+        * inspector/model/remote-object-get-properties-expected.txt:
+
+2016-08-10  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Marking http/tests/fetch/fetch-in-worker-crash.html as a flaky crash.
+        https://bugs.webkit.org/show_bug.cgi?id=160510
+
+        Unreviewed test gardening.
+
+        * TestExpectations:
+
+2016-08-10  Brent Fulgham  <bfulgham@apple.com>
+
+        Add JS array sort test case
+        https://bugs.webkit.org/show_bug.cgi?id=160680
+
+        Incorporate a test case related to a improper JavaScript Array
+        sorting behavior. The actual bug was fixed more than a year ago,
+        as a side effect of Bug 144013, but no test case was provided.
+
+        * js/array-sort-crash-expected.txt: Added.
+        * js/array-sort-crash.html: Added.
+
+2016-08-10  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Marking inspector/model/remote-object-get-properties.html as failing
+        https://bugs.webkit.org/show_bug.cgi?id=160738
+
+        Unreviewed test gardening.
+
+        * TestExpectations:
+        * platform/mac/TestExpectations:
+
+2016-08-08  Simon Fraser  <simon.fraser@apple.com>
+
+        child-transform-with-anchor-point-expected.html renders incorrectly
+        https://bugs.webkit.org/show_bug.cgi?id=160616
+
+        Reviewed by Zalan Bujtas.
+
+        * compositing/geometry/clipped-out-perspective-expected.html: Added.
+        * compositing/geometry/clipped-out-perspective.html: Added.
+        * compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt: Rebaseline.
+        * platform/mac-wk1/TestExpectations:
+
+2016-08-10  Saam Barati  <sbarati@apple.com>
+
+        Unreviewed. Skip a JSC test that's timing out and an inspector test that needs to be rebased after r204321
+
+        * TestExpectations:
+        * js/regress/script-tests/bound-function-construction-performance.js:
+        (makeBoundFunc):
+
+2016-08-10  Chris Dumez  <cdumez@apple.com>
+
+        It should be possible to re-initialize a MutationEvent after it's been dispatched
+        https://bugs.webkit.org/show_bug.cgi?id=160703
+
+        Reviewed by Sam Weinig.
+
+        Add layout test coverage.
+
+        * fast/events/initMutationEvent-after-dispatch-expected.txt: Added.
+        * fast/events/initMutationEvent-after-dispatch.html: Added.
+
+2016-08-09  Chris Dumez  <cdumez@apple.com>
+
+        Optimization in Node::appendChild() is not spec-compliant
+        https://bugs.webkit.org/show_bug.cgi?id=160728
+
+        Reviewed by Ryosuke Niwa.
+
+        Add layout test to make sure that mutation events are always fired
+        when calling Node::appendChild(), even if the new node is already
+        the last child.
+
+        * fast/dom/Node/appendChild-no-op-mutationobserver-expected.txt: Added.
+        * fast/dom/Node/appendChild-no-op-mutationobserver.html: Added.
+
+2016-08-09  Saam Barati  <sbarati@apple.com>
+
+        JSBoundFunction should lazily generate its name string
+        https://bugs.webkit.org/show_bug.cgi?id=160678
+        <rdar://problem/27043194>
+
+        Reviewed by Mark Lam.
+
+        * js/regress/bound-function-construction-performance-expected.txt: Added.
+        * js/regress/bound-function-construction-performance.html: Added.
+        * js/regress/script-tests/bound-function-construction-performance.js: Added.
+        (makeBoundFunc):
+        (foo.f):
+        (foo):
+
+2016-08-09  Chris Dumez  <cdumez@apple.com>
+
+        CharacterData.data setter optimization is not spec-compliant and is observable
+        https://bugs.webkit.org/show_bug.cgi?id=160712
+
+        Reviewed by Ryosuke Niwa.
+
+        Add test coverage to make sure that DOM Mutation observers get notified
+        when CharacterData.data is set to the same data.
+
+        * fast/dom/Text/setData-no-op-mutation-expected.txt: Added.
+        * fast/dom/Text/setData-no-op-mutation.html: Added.
+
+2016-08-09  Ada Chan  <adachan@apple.com>
+
+        [macOS Sierra] Fix flaky test: media/controls/picture-in-picture.html
+        https://bugs.webkit.org/show_bug.cgi?id=160707
+
+        Reviewed by Eric Carlson.
+
+        This test became flaky after r201474 when we started to delay showing
+        the inline placeholder until we are sure the video layer has been moved
+        into the video fullscreen layer. This means we can't guarantee that the
+        placeholder is visible right away after the video's presentation mode
+        changes to "picture-in-picture".
+
+        To fix this, we'll update the test so that we'll wait until the placeholder
+        becomes visible before testing its visibility without the "controls" attribute.
+
+        * media/controls/picture-in-picture.html:
+        * platform/mac-wk2/TestExpectations:
+
+2016-08-09  Chris Dumez  <cdumez@apple.com>
+
+        It should be possible to re-initialize a CustomEvent after it's been dispatched
+        https://bugs.webkit.org/show_bug.cgi?id=160664
+
+        Reviewed by Darin Adler.
+
+        * fast/events/initCustomEvent-after-dispatch-expected.txt: Copied from LayoutTests/fast/events/initEvent-after-dispatch-expected.txt.
+        * fast/events/initCustomEvent-after-dispatch.html: Copied from LayoutTests/fast/events/initEvent-after-dispatch.html.
+        Add layout test coverage.
+
+        * fast/events/initEvent-after-dispatch-expected.txt:
+        * fast/events/initEvent-after-dispatch.html:
+        Fix related layout test.
+
+2016-08-08  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Update test expectations for rdar://problem/27711048.
+
+        * platform/mac/TestExpectations:
+
+2016-08-08  John Wilander  <wilander@apple.com>
+
+        Popups opened from a sandboxed iframe should themselves be sandboxed
+        https://bugs.webkit.org/show_bug.cgi?id=134850
+        <rdar://problem/27375388>
+
+        Reviewed by Brent Fulgham.
+
+        * http/tests/security/resources/anchor-tag-with-blank-target.html: Added.
+        * http/tests/security/resources/page-executing-javascript.html: Added.
+        * http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox-expected.txt: Added.
+        * http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html: Added.
+
+2016-08-08  Chris Dumez  <cdumez@apple.com>
+
+        Align Selection API with the specification
+        https://bugs.webkit.org/show_bug.cgi?id=160663
+
+        Reviewed by Ryosuke Niwa.
+
+        * editing/selection/bad-input-expected.txt: Added.
+        * editing/selection/bad-input.html: Added.
+        Add new layout test to cover passing bad input to the Selection API.
+        This new test is passing completely in Firefox and Chrome.
+
+        * editing/execCommand/apply-style-text-decoration-crash.html:
+        * editing/execCommand/applyblockelement-visiblepositionforindex-crash.html:
+        * editing/execCommand/ident-crashes-topnode-is-text.html:
+        * editing/execCommand/indent-pre-expected.txt:
+        * editing/execCommand/indent-pre.html:
+        * editing/execCommand/overtype.html:
+        * editing/selection/containsNode-expected.txt:
+        * editing/selection/containsNode.html:
+        * editing/selection/move-by-line-003.html:
+        * editing/selection/script-tests/DOMSelection-DocumentType.js:
+        * editing/selection/script-tests/DOMSelection-crossing-document.js:
+        (clear):
+        * editing/selection/selection-invalid-offset-expected.txt:
+        * fast/block/float/float-list-changed-before-layout-crash.html:
+        * fast/dom/non-numeric-values-numeric-parameters-expected.txt:
+        * fast/dom/script-tests/non-numeric-values-numeric-parameters.js:
+        * fast/events/selectstart-by-arrow-keys.html:
+        * fast/html/nav-element.html:
+        * fast/html/script-tests/article-element.js:
+        * fast/html/script-tests/aside-element.js:
+        * fast/html/script-tests/footer-element.js:
+        * fast/html/script-tests/header-element.js:
+        * fast/html/script-tests/hgroup-element.js:
+        * fast/html/script-tests/main-element.js:
+        * fast/html/script-tests/section-element.js:
+        * imported/blink/accessibility/event-on-deleted-iframe-causes-crash.html:
+        * imported/blink/editing/apply-inline-style-to-element-with-no-renderer-crash.html:
+        * svg/custom/unicode-in-tspan-multi-svg-crash.html:
+        Update existing tests to use the Selection API properly.
+
+2016-08-08  John Wilander  <wilander@apple.com>
+
+        Don't set document.domain to an IP address fragment
+        https://bugs.webkit.org/show_bug.cgi?id=126045
+        <rdar://problem/27331794>
+
+        Reviewed by Daniel Bates.
+
+        IP address octets should not be treated as subdomains when setting document.domain.
+
+        * http/tests/security/aboutBlank/security-context-alias.html:
+            Now enables the new setting treatIPAddressesAsDomains.
+        * http/tests/security/aboutBlank/security-context-grandchildren-alias.html:
+            Now enables the new setting treatIPAddressesAsDomains.
+        * http/tests/security/postMessage/origin-unaffected-by-document-domain.html:
+            Now enables the new setting treatIPAddressesAsDomains.
+        * http/tests/security/set-domain-remove-subdomain-for-ip-address-expected.txt: Added.
+        * http/tests/security/set-domain-remove-subdomain-for-ip-address.html: Added.
+        * http/tests/security/setDomainRelaxationForbiddenForURLScheme.html:
+            Now enables the new setting treatIPAddressesAsDomains.
+        * http/tests/workers/worker-document-domain-security.html:
+            Now enables the new setting treatIPAddressesAsDomains.
+        * http/tests/xmlhttprequest/document-domain-set.html:
+            Now enables the new setting treatIPAddressesAsDomains.
+
+2016-08-08  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Land test expectations for rdar://problem/27711048.
+
+        * platform/mac/TestExpectations:
+
+2016-08-08  Chris Dumez  <cdumez@apple.com>
+
+        It should be possible to re-initialize an Event after it's been dispatched
+        https://bugs.webkit.org/show_bug.cgi?id=160651
+
+        Reviewed by Darin Adler.
+
+        Add layout test coverage.
+
+        * fast/events/initEvent-after-dispatch-expected.txt: Added.
+        * fast/events/initEvent-after-dispatch.html: Added.
+
+2016-08-07  Chris Dumez  <cdumez@apple.com>
+
+        Node.baseURI should not be nullable
+        https://bugs.webkit.org/show_bug.cgi?id=160649
+
+        Reviewed by Darin Adler.
+
+        Drop outdated DOM test.
+
+        * dom/xhtml/level3/core/nodegetbaseuri02-expected.txt: Removed.
+        * dom/xhtml/level3/core/nodegetbaseuri02.js: Removed.
+        * dom/xhtml/level3/core/nodegetbaseuri02.xhtml: Removed.
+
+2016-08-07  Chris Dumez  <cdumez@apple.com>
+
+        Drop SVGDocument as per the SVG2 specification
+        https://bugs.webkit.org/show_bug.cgi?id=160361
+
+        Reviewed by Darin Adler.
+
+        Update / rebaseline existing tests to reflect behavior change.
+
+        * platform/mac/svg/custom/dynamic-svg-document-creation-expected.txt:
+        * svg/custom/clone-node-expected.txt:
+        * svg/custom/clone-node.html:
+        * svg/custom/frame-getSVGDocument.html:
+        * svg/custom/global-constructors-expected.txt:
+        * svg/custom/manually-parsed-svg-allowed-in-dashboard-expected.txt:
+        * svg/custom/script-tests/global-constructors.js:
+
+2016-08-07  Chris Dumez  <cdumez@apple.com>
+
+        Un-expose DOMSettableTokenList
+        https://bugs.webkit.org/show_bug.cgi?id=160643
+
+        Reviewed by Darin Adler.
+
+        Update / rebaseline existing tests.
+
+        * fast/dom/HTMLLinkElement/sizes-setter-expected.txt:
+        * fast/dom/HTMLLinkElement/sizes-setter.html:
+        * fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt:
+        * fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js:
+        * fast/frames/sandbox-attribute-expected.txt:
+        * fast/frames/sandbox-attribute.html:
+        * js/dom/global-constructors-attributes-expected.txt:
+        * platform/efl/js/dom/global-constructors-attributes-expected.txt:
+        * platform/gtk/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
+        * platform/win/js/dom/global-constructors-attributes-expected.txt:
+
+2016-08-07  Youenn Fablet  <youenn@apple.com>
+
+        LayoutTest http/tests/fetch/fetch-in-worker-crash.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=160510
+
+        Unreviewed.
+
+        * TestExpectations: Marking fetch-in-worker-crash.html as flaky
+
+2016-08-06  Chris Dumez  <cdumez@apple.com>
+
+        a.replaceChild(a, a) should throw a HierarchyRequestError
+        https://bugs.webkit.org/show_bug.cgi?id=160640
+
+        Reviewed by Darin Adler.
+
+        * fast/dom/Node/replaceChild-notFoundError-expected.txt: Added.
+        * fast/dom/Node/replaceChild-notFoundError.html: Added.
+
+2016-08-06  Chris Dumez  <cdumez@apple.com>
+
+        Drop legacy Text.replaceWholeText() API
+        https://bugs.webkit.org/show_bug.cgi?id=160641
+
+        Reviewed by Darin Adler.
+
+        Drop outdated tests / checks.
+
+        * dom/xhtml/level3/core/textreplacewholetext01-expected.txt: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext01.js: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext01.xhtml: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext02-expected.txt: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext02.js: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext02.xhtml: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext03-expected.txt: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext03.js: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext03.xhtml: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext04-expected.txt: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext04.js: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext04.xhtml: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext05-expected.txt: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext05.js: Removed.
+        * dom/xhtml/level3/core/textreplacewholetext05.xhtml: Removed.
+        * fast/dom/Attr/change-id-via-attr-node-value-expected.txt:
+        * fast/dom/Attr/change-id-via-attr-node-value.html:
+        * fast/dom/Text/replaceWholeText-expected.txt: Removed.
+        * fast/dom/Text/replaceWholeText.html: Removed.
+        * fast/storage/storage-detached-iframe-expected.txt:
+        * fast/storage/storage-detached-iframe.html:
+        * http/tests/security/xss-DENIED-iframe-src-alias-expected.txt:
+        * http/tests/security/xss-DENIED-iframe-src-alias.html:
+        * platform/mac/inspector/model/remote-object-expected.txt:
+
+2016-08-06  Youenn Fablet  <youenn@apple.com>
+
+        LayoutTest http/tests/fetch/fetch-in-worker-crash.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=160510
+
+        Reviewed by Sam Weinig.
+
+        * http/tests/fetch/fetch-in-worker-crash.html:
+        * http/tests/fetch/fetch-in-worker.js:
+        Adding a new test based on a ReadableStream that is not closed and therefore Response.text promise cannot resolve.
+        Removing the blob resolve message as there is no guarantee that blob load will finish after the test is done.
+
+2016-08-05  Chris Dumez  <cdumez@apple.com>
+
+        [Web IDL] Add support for USVString type
+        https://bugs.webkit.org/show_bug.cgi?id=160608
+
+        Reviewed by Sam Weinig.
+
+        Add layout test coverage for USVString.
+
+        * js/dom/webidl-type-mapping-expected.txt:
+        * js/dom/webidl-type-mapping.html:
+        This test is based on the corresponding one from Blink.
+
+2016-08-05  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Add back a newline that was accidentally removed from an expected.txt file.
+
+        Unreviewed test gardening.
+
+        * platform/ios-simulator/compositing/masks/compositing-clip-path-change-no-repaint-expected.txt:
+
 2016-08-05  Jeremy Jones  <jeremyj@apple.com>
 
         revert r202466 r202546 this causes regressions in media loading with temporary redirects.
 2016-08-05  Jeremy Jones  <jeremyj@apple.com>
 
         revert r202466 r202546 this causes regressions in media loading with temporary redirects.