Title: [294137] trunk/Source/WebKit
- Revision
- 294137
- Author
- [email protected]
- Date
- 2022-05-12 18:41:21 -0700 (Thu, 12 May 2022)
Log Message
-Wunused-result in WebCoreSupport/WebContextMenuClient.cpp
https://bugs.webkit.org/show_bug.cgi?id=240364
Patch by Michael Catanzaro <[email protected]> on 2022-05-12
Reviewed by Chris Dumez.
* Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
(WebKit::WebContextMenuClient::searchWithGoogle):
Canonical link: https://commits.webkit.org/250507@main
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (294136 => 294137)
--- trunk/Source/WebKit/ChangeLog 2022-05-13 01:09:08 UTC (rev 294136)
+++ trunk/Source/WebKit/ChangeLog 2022-05-13 01:41:21 UTC (rev 294137)
@@ -1,3 +1,17 @@
+2022-05-12 Michael Catanzaro <[email protected]>
+
+ -Wunused-result in WebCoreSupport/WebContextMenuClient.cpp
+ https://bugs.webkit.org/show_bug.cgi?id=240364
+
+ Reviewed by Chris Dumez.
+
+ Fix this code: it's trying but failing to strip whitespace from the string. No new test
+ because this code is not built on macOS and not exposed in GTK API, and those are the only
+ platforms which seem to have context menu tests.
+
+ * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
+ (WebKit::WebContextMenuClient::searchWithGoogle):
+
2022-05-12 Alex Christensen <[email protected]>
Revert r293861
Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.cpp (294136 => 294137)
--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.cpp 2022-05-13 01:09:08 UTC (rev 294136)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.cpp 2022-05-13 01:41:21 UTC (rev 294137)
@@ -58,8 +58,7 @@
if (!page)
return;
- auto searchString = frame->editor().selectedText();
- searchString.stripWhiteSpace();
+ auto searchString = frame->editor().selectedText().stripWhiteSpace();
searchString = makeStringByReplacingAll(encodeWithURLEscapeSequences(searchString), "%20"_s, "+"_s);
auto searchURL = URL { "https://www.google.com/search?q=" + searchString + "&ie=UTF-8&oe=UTF-8" };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes