[IsDeprecatedWeakRefSmartPointerException] Make PageLoadState and related classes RefCounted or equivalent#34183
Conversation
|
EWS run on previous version of this PR (hash 06dfe46) Details
|
|
EWS run on previous version of this PR (hash a49b98e) Details |
|
EWS run on previous version of this PR (hash f50f369) Details |
|
EWS run on previous version of this PR (hash b899496) Details |
|
EWS run on previous version of this PR (hash 1e21ec5) Details |
|
EWS run on previous version of this PR (hash 1052aee) Details |
|
EWS run on previous version of this PR (hash 82a9f72) Details
|
|
EWS run on previous version of this PR (hash e554161) Details |
There was a problem hiding this comment.
Should return a Ref<> since it cannot return nullptr.
There was a problem hiding this comment.
return adoptRef(*new StateClient(client));
There was a problem hiding this comment.
The previous style was correct, since this is an Objective C type.
|
EWS run on current version of this PR (hash e3e7f0a) Details |
…ated classes RefCounted or equivalent https://bugs.webkit.org/show_bug.cgi?id=280282 Reviewed by Chris Dumez. Those classes are CanMakeWeakPtr so that need to be lifecycle manageable. * Source/WebKit/UIProcess/API/C/WKPage.cpp: (WKPageSetPageStateClient): * Source/WebKit/UIProcess/API/C/mac/WKPagePrivateMac.mm: (-[WKObservablePageState initWithPage:]): * Source/WebKit/UIProcess/API/Cocoa/PageLoadStateObserver.h: * Source/WebKit/UIProcess/API/Cocoa/WKBrowsingContextController.mm: (-[WKBrowsingContextController _initWithPageRef:]): (WebKit::PageLoadStateObserver::ref const): (WebKit::PageLoadStateObserver::deref const): * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _initializeWithConfiguration:]): * Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp: (webkitWebViewConstructed): (webkitWebViewDispose): * Source/WebKit/UIProcess/Cocoa/NavigationState.h: * Source/WebKit/UIProcess/Cocoa/NavigationState.mm: (WebKit::NavigationState::ref const): (WebKit::NavigationState::deref const): * Source/WebKit/UIProcess/PageLoadState.cpp: (WebKit::PageLoadState::callObserverCallback): * Source/WebKit/UIProcess/PageLoadState.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::setPageLoadStateObserver): * Source/WebKit/UIProcess/WebPageProxy.h: Canonical link: https://commits.webkit.org/284380@main
e3e7f0a to
0eadc69
Compare
|
Committed 284380@main (0eadc69): https://commits.webkit.org/284380@main Reviewed commits have been landed. Closing PR #34183 and removing active labels. |
🛠 tv
0eadc69
e3e7f0a