Changeset 236970 in webkit
- Timestamp:
- Oct 9, 2018, 11:25:29 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target-expected.txt (added)
-
LayoutTests/fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target.html (added)
-
LayoutTests/platform/mac-wk1/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/loader/FrameLoader.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r236963 r236970 1 2018-10-09 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION (Safari 12): Download of Blob URL fails 4 https://bugs.webkit.org/show_bug.cgi?id=190351 5 <rdar://problem/45091181> 6 7 Reviewed by Geoffrey Garen. 8 9 Add layout test coverage. 10 11 * fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target-expected.txt: Added. 12 * fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target.html: Added. 13 1 14 2018-10-09 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r236921 r236970 308 308 webkit.org/b/156069 fast/dom/HTMLAnchorElement/anchor-download-user-triggered-synthetic-click.html [ Skip ] 309 309 webkit.org/b/156069 fast/dom/HTMLAnchorElement/anchor-file-blob-download.html [ Skip ] 310 webkit.org/b/156069 fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target.html [ Skip ] 310 311 webkit.org/b/156069 fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html [ Skip ] 311 312 webkit.org/b/156069 fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-doublequote.html [ Skip ] -
trunk/LayoutTests/platform/win/TestExpectations
r236954 r236970 456 456 fast/dom/HTMLAnchorElement/anchor-download-user-triggered-synthetic-click.html [ Skip ] 457 457 fast/dom/HTMLAnchorElement/anchor-file-blob-download.html [ Skip ] 458 fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target.html [ Skip ] 458 459 fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html [ Skip ] 459 460 fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-doublequote.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r236967 r236970 1 2018-10-09 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION (Safari 12): Download of Blob URL fails 4 https://bugs.webkit.org/show_bug.cgi?id=190351 5 <rdar://problem/45091181> 6 7 Reviewed by Geoffrey Garen. 8 9 When using both the download attribute and target="_blank" on an anchor element, we would 10 mistakenly drop the download attribute after the "new window" policy decision has been made. 11 As a result, we would try to load the blob instead of downloading it. 12 13 Test: fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target.html 14 15 * loader/FrameLoader.cpp: 16 (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy): 17 1 18 2018-10-09 Alicia Boya García <aboya@igalia.com> 2 19 -
trunk/Source/WebCore/loader/FrameLoader.cpp
r236927 r236970 3397 3397 } 3398 3398 3399 NavigationAction newAction { *frame->document(), request, InitiatedByMainFrame::Unknown, NavigationType::Other, action.shouldOpenExternalURLsPolicy() };3399 NavigationAction newAction { *frame->document(), request, InitiatedByMainFrame::Unknown, NavigationType::Other, action.shouldOpenExternalURLsPolicy(), nullptr, action.downloadAttribute() }; 3400 3400 mainFrame->loader().loadWithNavigationAction(request, WTFMove(newAction), LockHistory::No, FrameLoadType::Standard, formState, allowNavigationToInvalidURL); 3401 3401 }
Note:
See TracChangeset
for help on using the changeset viewer.