Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r220525 - [GTK] Crashes in WebCore::PasteboardHelper::fillSelec…
…tionData when source file of drag is unavailable https://bugs.webkit.org/show_bug.cgi?id=174161 Reviewed by Xabier Rodriguez-Calvar. In r219385 we changed the early return in fillSelectionData() to check the selection data length instead of the data pointer. However, the gtk_selection_data_get_length() can return -1, so we need to check also if the value less than 0. The case of setting an empty string could be valid depending on the target type, so it's better to return early only when data lenght is less than 0 and handle the 0 length case in each target. * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::fillSelectionData):
- Loading branch information
1 parent
426b800
commit adbd9f9
Showing
2 changed files
with
18 additions
and
3 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