-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[GTK][WPE] Follow-up to HyperlinkAuditingEnabled deprecation in 295103@main #45604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
EWS run on previous version of this PR (hash 3ded44c) |
@@ -2154,11 +2154,9 @@ void webkit_settings_set_javascript_can_open_windows_automatically(WebKitSetting | |||
*/ | |||
gboolean webkit_settings_get_enable_hyperlink_auditing(WebKitSettings* settings) | |||
{ | |||
g_return_val_if_fail(WEBKIT_IS_SETTINGS(settings), FALSE); | |||
|
|||
g_warning("webkit_settings_get_enable_hyperlink_auditing is deprecated and always returns FALSE."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is not desired you should also remove it from webkit_settings_get_enable_dns_prefetching. Or is it still desired if it returns false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that we do not have a strongly agreed policy on this regard for the GTK/WPE ports, and that the idea has been to warn when trying to set the option to its non-default value. Not super important, because this is unlikely to spam the logs—typically applications are not all the time changing settings after all—but still nice to try and be consistent.
I would have commented on the patch that removed the DNS prefetching option, but I managed to miss it when it landed 😇. Maybe I'll send a follow up when I have some spare cycles for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about just deleting all of the warnings, because they're not very useful.
But I think they are OK as long as we don't warn when setting to default value, which happens during WebKitSettings construction as every one of these setters gets called.
g_assert_true(webkit_settings_get_enable_hyperlink_auditing(settings)); | ||
webkit_settings_set_enable_hyperlink_auditing(settings, FALSE); | ||
g_assert_true(webkit_settings_get_enable_hyperlink_auditing(settings)); | ||
ALLOW_DEPRECATED_DECLARATIONS_END |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is desired you should probably also restore the test for webkit_settings_get_enable_dns_prefetching.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in #47405 🙃
Thanks! |
3ded44c
to
4b355ab
Compare
EWS run on current version of this PR (hash 4b355ab) |
…3@main https://bugs.webkit.org/show_bug.cgi?id=293245 Reviewed by Michael Catanzaro. * Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp: (webkit_settings_get_enable_hyperlink_auditing): Make the returned value consistent with the default property value (TRUE), and do not warn on getter usage. * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp: (testWebKitSettings): Bring back the API test, to ensure that the setter does not change the property after all. Canonical link: https://commits.webkit.org/295155@main
4b355ab
to
8886943
Compare
Committed 295155@main (8886943): https://commits.webkit.org/295155@main Reviewed commits have been landed. Closing PR #45604 and removing active labels. |
8886943
4b355ab
🧪 ios-wk2-wpt🧪 mac-wk2🧪 mac-AS-debug-wk2