Address safer cpp warnings in FormDataStreamCFNet.cpp#51228
Address safer cpp warnings in FormDataStreamCFNet.cpp#51228webkit-commit-queue merged 1 commit intoWebKit:mainfrom
Conversation
|
EWS run on previous version of this PR (hash 4a3a671) Details
|
4a3a671 to
4a8f240
Compare
|
EWS run on previous version of this PR (hash 4a8f240) Details |
4a8f240 to
77b4ebf
Compare
|
EWS run on previous version of this PR (hash 77b4ebf) Details |
77b4ebf to
744cdd5
Compare
|
EWS run on previous version of this PR (hash 744cdd5) Details |
| @@ -224,7 +231,7 @@ static void* formCreate(CFReadStreamRef stream, void* context) | |||
| static void formFinalize(CFReadStreamRef stream, void* context) | |||
| { | |||
| FormStreamFields* form = static_cast<FormStreamFields*>(context); | |||
| ASSERT_UNUSED(stream, form->formStream == stream); | |||
| ASSERT_UNUSED(stream, form->cfFormStream() == stream); | |||
There was a problem hiding this comment.
Hmm, it is failing this assertion. I'll have to investigate while the pointers no longer match after casting to and from the NS type 🤷🏻
There was a problem hiding this comment.
Actually, my bet is that the pointer has become null now that we use a weak pointer and given that this is a finalizer function. I'll confirm.
744cdd5 to
cdb4b12
Compare
|
EWS run on current version of this PR (hash cdb4b12) Details
|
cdb4b12 to
24af33e
Compare
https://bugs.webkit.org/show_bug.cgi?id=299409 Reviewed by Ryosuke Niwa. * Source/WTF/wtf/cocoa/TollFreeBridging.h: * Source/WebCore/PlatformMac.cmake: * Source/WebCore/SaferCPPExpectations/NoUnretainedMemberCheckerExpectations: * Source/WebCore/SourcesCocoa.txt: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/platform/network/cf/FormDataStreamCFNet.mm: Renamed from Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp. (WebCore::FormStreamFields::cfFormStream): (WebCore::formCreate): (WebCore::formFinalize): (WebCore::formEventCallback): * Source/WebCore/platform/network/ios/WebCoreURLResponseIOS.mm: Canonical link: https://commits.webkit.org/300459@main
24af33e to
01455ae
Compare
|
Committed 300459@main (01455ae): https://commits.webkit.org/300459@main Reviewed commits have been landed. Closing PR #51228 and removing active labels. |
🛠 mac-apple
01455ae
cdb4b12
🛠 win🧪 win-tests🛠 gtk🧪 gtk-wk2🧪 api-gtk🛠 playstation🛠 watch