Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Loading should be disabled while constructing the fragment in WebCont…
…entReader::readWebArchive https://bugs.webkit.org/show_bug.cgi?id=178118 Reviewed by Antti Koivisto. Source/WebCore: Disable image loading while constructing the document fragment in WebContentReader::readWebArchive as we do in createFragmentAndAddResources for RTF/RTFD. This refactoring is needed to start using blob URL in the pasted document fragment for webkit.org/b/124391. Also modified WebContentReader::readWebArchive to take a reference to SharedBuffer instead of a pointer. No new tests since existing tests have been updated to cover this behavior change. * editing/WebContentReader.h: * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::WebContentReader::readWebArchive): Use DeferredLoadingScope to disable the loader and images while constructing the document fragment. * platform/Pasteboard.h: * platform/ios/PasteboardIOS.mm: (WebCore::readPasteboardWebContentDataForType): * platform/mac/PasteboardMac.mm: (WebCore::Pasteboard::read): LayoutTests: Updated the existing tests to wait for images to load in each step explicitly instead of relying on them being loaded synchronously or that it's loaded within 100-200ms. * editing/pasteboard/4641033.html: * editing/pasteboard/4947130.html: * editing/pasteboard/4989774.html: * editing/pasteboard/drag-selected-image-to-contenteditable.html: * editing/selection/drag-to-contenteditable-iframe.html: * platform/ios/TestExpectations: Skipped editing/selection/drag-to-contenteditable-iframe.html on iOS since we don't support testing drag & drop on iOS. Also added [ Skip ] to other entires there. Canonical link: https://commits.webkit.org/194383@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
13 changed files
with
156 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.