-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[SaferCpp] Adopt more smart pointers in UIProcess/API/C/ part 2 #44043
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
[SaferCpp] Adopt more smart pointers in UIProcess/API/C/ part 2 #44043
Conversation
EWS run on previous version of this PR (hash 2f13c31) |
2f13c31
to
72e6ae8
Compare
EWS run on previous version of this PR (hash 72e6ae8) |
Safer C++ Build #31798 (2f13c31)❌ Found 2 failing files with 6 issues. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
Safer C++ Build #31806 (72e6ae8)❌ Found 2 failing files with 6 issues. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
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.
Doesn't follow our usual patterns.
72e6ae8
to
476d6d2
Compare
EWS run on previous version of this PR (hash 476d6d2) |
Safer C++ Build #41319 (476d6d2)❌ Found 1 failing file with 5 issues. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
476d6d2
to
f381a80
Compare
EWS run on current version of this PR (hash f381a80) |
} | ||
|
||
WKPageRef WKPageConfigurationGetRelatedPage(WKPageConfigurationRef configuration) | ||
{ | ||
return toAPI(toImpl(configuration)->relatedPage()); | ||
RefPtr relatedPage = toProtectedImpl(configuration)->relatedPage(); |
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.
Please add a protectedRelatedPage()
getter instead of introducing an unnecessary local variable.
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.
Missed this comment before sending to merge queue. Small followup fix here:
https://bugs.webkit.org/show_bug.cgi?id=291511 rdar://149191086 Reviewed by Chris Dumez. Adopt more smart pointers in: -UIProcess/API/C/WKOpenPanelResultListener.cpp -UIProcess/API/C/WKPageConfigurationRef.cpp -UIProcess/API/C/WKProtectionSpace.cpp -UIProcess/API/C/WKUserContentControllerRef.cpp * Source/WebKit/SaferCPPExpectations/UncountedCallArgsCheckerExpectations: * Source/WebKit/UIProcess/API/C/WKOpenPanelResultListener.cpp: (WKOpenPanelResultListenerChooseMediaFiles): (WKOpenPanelResultListenerChooseFiles): (WKOpenPanelResultListenerCancel): * Source/WebKit/UIProcess/API/C/WKPageConfigurationRef.cpp: (WKPageConfigurationGetContext): (WKPageConfigurationSetContext): (WKPageConfigurationGetUserContentController): (WKPageConfigurationSetUserContentController): (WKPageConfigurationGetPreferences): (WKPageConfigurationSetPreferences): (WKPageConfigurationGetRelatedPage): (WKPageConfigurationSetRelatedPage): (WKPageConfigurationGetWebsiteDataStore): (WKPageConfigurationSetWebsiteDataStore): (WKPageConfigurationSetInitialCapitalizationEnabled): (WKPageConfigurationSetBackgroundCPULimit): (WKPageConfigurationSetAllowTestOnlyIPC): (WKPageConfigurationSetShouldSendConsoleLogsToUIProcessForTesting): (WKPageConfigurationSetPortsForUpgradingInsecureSchemeForTesting): * Source/WebKit/UIProcess/API/C/WKUserContentControllerRef.cpp: (WKUserContentControllerCopyUserScripts): (WKUserContentControllerAddUserScript): (WKUserContentControllerRemoveAllUserScripts): (WKUserContentControllerAddUserContentFilter): (WKUserContentControllerRemoveAllUserContentFilters): Canonical link: https://commits.webkit.org/296568@main
f381a80
to
ba0fd77
Compare
Committed 296568@main (ba0fd77): https://commits.webkit.org/296568@main Reviewed commits have been landed. Closing PR #44043 and removing active labels. |
ba0fd77
f381a80