Also, document wxWebViewHandler::GetFile() ownership.
The file returned from wxWebViewHandler::GetFile() wasn't being deleted in the GTK WebKit backends.
Please let me know if I am not correct, but from my research:
For IE (src\msw\webview_ie.cpp), the returned file from GetFile() gets this upon read completion: wxDELETE(m_file);
For Edge, GetFile()'s return is wrapped in a wxWebViewHandlerResponseDataFile, which deletes the file in its DTOR.
In the base implementation (src/common/webview.cpp), wxWebViewHandlerResponseDataFile does the same thing of deleting the file from GetFile() in its DTOR.
Finally, it appears that all wxFileSystemHandler::OpenFile()s return new wxFSFile (which GetFile() calls), so this seems to confirm this expected ownership contract (that GTK WebKit is currently not following).
https://github.com/wxWidgets/wxWidgets/pull/26802
(3 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@vadz approved this pull request.
Thanks, looking at the common code this indeed looks correct to me.
But there might be also a leak in VirtualProtocol used in src/msw/webview_ie.cpp as it doesn't seem to delete the object when being destroyed normally, i.e. without an error. Of course, nobody probably uses IE-based webview anyhow by now.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()