[iOS] Add support for the download attribute
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 26 Jan 2019 00:44:15 +0000 (00:44 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 26 Jan 2019 00:44:15 +0000 (00:44 +0000)
commit770df3aa892b4315e7193e7ddb9b1e51ea8f356a
treeebf7b7b1252d583d73ac35def94f55eb34e423fa
parenta738e012e6d7e0d914e437fb15ee60c108505702
[iOS] Add support for the download attribute
https://bugs.webkit.org/show_bug.cgi?id=167341
<rdar://problem/30296281>

Reviewed by Geoffrey Garen.

Source/WTF:

Turn on HTML download attribute support on iOS.

* wtf/FeatureDefines.h:

LayoutTests:

Make download attribute layout tests iOS-friendly and unskip them now that they pass.

* fast/dom/HTMLAnchorElement/anchor-download-unset.html:
* fast/dom/HTMLAnchorElement/anchor-download-user-triggered-synthetic-click.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-convert-to-download-async-delegate.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-convert-to-download.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-base-target-popup-not-allowed.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target-popup-not-allowed.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-doublequote.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-slashes.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-unicode.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download-no-extension.html:
* fast/dom/HTMLAnchorElement/anchor-file-blob-download.html:
* fast/dom/HTMLAnchorElement/anchor-nodownload-set.html:
* fast/dom/HTMLAnchorElement/anchor-nodownload.html:
* http/tests/download/anchor-download-attribute-content-disposition.html:
* http/tests/download/anchor-download-no-extension.html:
* http/tests/download/anchor-download-no-value.html:
* http/tests/download/anchor-download-redirect.html:
* http/tests/download/area-download.html:
* http/tests/download/convert-cached-load-to-download.html:
* http/tests/security/anchor-download-allow-blob.html:
* http/tests/security/anchor-download-allow-data.html:
* http/tests/security/anchor-download-allow-sameorigin.html:
* http/tests/security/anchor-download-block-crossorigin-expected.txt:
* http/tests/security/anchor-download-block-crossorigin.html:
* platform/ios-wk2/TestExpectations:
* platform/ios-wk2/http/tests/security/anchor-download-block-crossorigin-expected.txt: Copied from LayoutTests/http/tests/security/anchor-download-block-crossorigin-expected.txt.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
36 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLAnchorElement/anchor-download-unset.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-download-user-triggered-synthetic-click.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-convert-to-download-async-delegate.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-convert-to-download.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-base-target-popup-not-allowed.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target-popup-not-allowed.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-doublequote.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-slashes.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-unicode.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-no-extension.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-nodownload-set.html
LayoutTests/fast/dom/HTMLAnchorElement/anchor-nodownload.html
LayoutTests/http/tests/download/anchor-download-attribute-content-disposition.html
LayoutTests/http/tests/download/anchor-download-no-extension.html
LayoutTests/http/tests/download/anchor-download-no-value.html
LayoutTests/http/tests/download/anchor-download-redirect.html
LayoutTests/http/tests/download/area-download.html
LayoutTests/http/tests/download/convert-cached-load-to-download.html
LayoutTests/http/tests/security/anchor-download-allow-blob.html
LayoutTests/http/tests/security/anchor-download-allow-data.html
LayoutTests/http/tests/security/anchor-download-allow-sameorigin.html
LayoutTests/http/tests/security/anchor-download-block-crossorigin-expected.txt
LayoutTests/http/tests/security/anchor-download-block-crossorigin.html
LayoutTests/platform/ios-wk2/TestExpectations
LayoutTests/platform/ios-wk2/http/tests/security/anchor-download-block-crossorigin-expected.txt [new file with mode: 0644]
LayoutTests/platform/ios-wk2/http/wpt/html/semantics/text-level-semantics/the-a-element/a-download-click-404-expected.txt [deleted file]
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/reflection-text-expected.txt [deleted file]
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/text-level-semantics/the-a-element/a-download-click-404-expected.txt [deleted file]
LayoutTests/platform/ios/TestExpectations
Source/WTF/ChangeLog
Source/WTF/wtf/FeatureDefines.h