RESOLVED FIXED 221653
Stop using GenericCallback from WebPageProxy
https://bugs.webkit.org/show_bug.cgi?id=221653
Summary Stop using GenericCallback from WebPageProxy
Alex Christensen
Reported 2021-02-09 22:52:15 PST
Stop using GenericCallback from WebPageProxy
Attachments
Patch (67.90 KB, patch)
2021-02-09 22:53 PST, Alex Christensen
no flags
Patch (70.20 KB, patch)
2021-02-10 08:54 PST, Alex Christensen
no flags
Patch (70.21 KB, patch)
2021-02-10 11:14 PST, Alex Christensen
no flags
Patch (70.88 KB, patch)
2021-02-11 13:45 PST, Alex Christensen
ews-feeder: commit-queue-
Patch (71.49 KB, patch)
2021-02-11 14:21 PST, Alex Christensen
no flags
Patch (1.61 KB, patch)
2021-02-15 13:14 PST, Michael Catanzaro
no flags
Alex Christensen
Comment 1 2021-02-09 22:53:34 PST
Alex Christensen
Comment 2 2021-02-10 08:54:18 PST
Alex Christensen
Comment 3 2021-02-10 11:14:48 PST
Alex Christensen
Comment 4 2021-02-10 19:06:45 PST
Ryan Haddad
Comment 5 2021-02-10 21:23:59 PST
Reverted r272702 for reason: Caused assertion failure on macOS debug WK2 bots Committed r272705: <https://trac.webkit.org/changeset/272705>
Alex Christensen
Comment 6 2021-02-11 13:45:08 PST
Alex Christensen
Comment 7 2021-02-11 14:21:55 PST
Alex Christensen
Comment 8 2021-02-12 09:50:54 PST
Radar WebKit Bug Importer
Comment 9 2021-02-12 09:51:14 PST
Michael Catanzaro
Comment 10 2021-02-15 13:13:58 PST
This introduced an unused variable warning: [1954/2287] Building CXX object Source/WebKit/CMakeFiles/...ces/WebKit/unified-sources/UnifiedSource-88d1702b-7.cpp.o In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-7.cpp:8: ../../Source/WebKit/UIProcess/WebPageProxy.cpp: In member function ‘void WebKit::WebPageProxy::resetState(WebKit::WebPageProxy::ResetStateReason)’: ../../Source/WebKit/UIProcess/WebPageProxy.cpp:7462:25: warning: variable ‘error’ set but not used [-Wunused-but-set-variable] 7462 | CallbackBase::Error error { }; | ^~~~~ Solution is: diff --git a/Source/WebKit/UIProcess/WebPageProxy.cpp b/Source/WebKit/UIProcess/WebPageProxy.cpp index 48d74e2fa57f..e25bca9cfad6 100644 --- a/Source/WebKit/UIProcess/WebPageProxy.cpp +++ b/Source/WebKit/UIProcess/WebPageProxy.cpp @@ -7459,18 +7459,6 @@ void WebPageProxy::resetState(ResetStateReason resetStateReason) m_webDeviceOrientationUpdateProviderProxy = nullptr; #endif - CallbackBase::Error error { }; - switch (resetStateReason) { - case ResetStateReason::NavigationSwap: - FALLTHROUGH; - case ResetStateReason::PageInvalidated: - error = CallbackBase::Error::OwnerWasInvalidated; - break; - case ResetStateReason::WebProcessExited: - error = CallbackBase::Error::ProcessExited; - break; - } - for (auto& editCommand : std::exchange(m_editCommandSet, { })) editCommand->invalidate(); Will attach a follow-up.
Michael Catanzaro
Comment 11 2021-02-15 13:14:54 PST
EWS
Comment 12 2021-02-15 14:03:24 PST
Committed r272879: <https://commits.webkit.org/r272879> All reviewed patches have been landed. Closing bug and clearing flags on attachment 420355 [details].
Note You need to log in before you can comment on or make changes to this bug.