Title: [259468] trunk/Source/WebKit
- Revision
- 259468
- Author
- [email protected]
- Date
- 2020-04-03 09:54:12 -0700 (Fri, 03 Apr 2020)
Log Message
REGRESSION(r259401): [GTK] Check surroundingRange is not null
https://bugs.webkit.org/show_bug.cgi?id=209966
Reviewed by Darin Adler & Philippe Normand.
* WebProcess/WebPage/glib/WebPageGLib.cpp:
(WebKit::WebPage::getPlatformEditorState const):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (259467 => 259468)
--- trunk/Source/WebKit/ChangeLog 2020-04-03 16:53:48 UTC (rev 259467)
+++ trunk/Source/WebKit/ChangeLog 2020-04-03 16:54:12 UTC (rev 259468)
@@ -1,3 +1,13 @@
+2020-04-03 Diego Pino Garcia <[email protected]>
+
+ REGRESSION(r259401): [GTK] Check surroundingRange is not null
+ https://bugs.webkit.org/show_bug.cgi?id=209966
+
+ Reviewed by Darin Adler & Philippe Normand.
+
+ * WebProcess/WebPage/glib/WebPageGLib.cpp:
+ (WebKit::WebPage::getPlatformEditorState const):
+
2020-04-03 David Kilzer <[email protected]>
[Xcode] Replace ASAN_OTHER_CFLAGS and ASAN_OTHER_CPLUSPLUSFLAGS with $(inherited)
Modified: trunk/Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp (259467 => 259468)
--- trunk/Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp 2020-04-03 16:53:48 UTC (rev 259467)
+++ trunk/Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp 2020-04-03 16:54:12 UTC (rev 259468)
@@ -117,7 +117,7 @@
postLayoutData.surroundingContextCursorPosition = characterCount(*surroundingRange);
postLayoutData.surroundingContextSelectionPosition = postLayoutData.surroundingContextCursorPosition;
} else {
- postLayoutData.surroundingContext = plainText(*surroundingRange);
+ postLayoutData.surroundingContext = surroundingRange ? plainText(*surroundingRange) : emptyString();
if (surroundingStart.isNull() || selectionStart.isNull())
postLayoutData.surroundingContextCursorPosition = 0;
else
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes