Exposing wxWebviewHandler::StartRequest for Chromium Backends

John P <[email protected]> Thu, 8 May 2025 10:33:39 -0700 (PDT)
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hello wx-users,

I am currently working with wxWebview using the Chromium backend. I noticed 
in the documentation that StartRequest is not available for Chromium. When 
looking at the source code, I noticed there is some overlap in 
SchemeHandler::ProcessRequest 
<https://github.com/wxWidgets/wxWidgets/blob/71654b3eb3f186f8789a4fdb47c433a9d5a6a060/src/common/webview_chromium.cpp#L1893> and 
the base implementation of wxWebViewHandler::StartRequest 
<https://github.com/wxWidgets/wxWidgets/blob/71654b3eb3f186f8789a4fdb47c433a9d5a6a060/src/common/webview.cpp#L185>. 
In both methods, the handler routes to GetFile() and processes the result.

Would it be preferable to have SchemeHandler::ProcessRequest instead pass 
through StartRequest, which would give a developer the ability to override 
this method in wxWebViewHandler? This would allow Chromium backends to 
access request headers and post data.

Looking at the implementation for wxWebviewEdge, I understand this is not a 
trivial change. I would be willing to implement this myself and open a PR, 
but I wanted to get some feedback from the maintainers or anyone else who 
has looked into this.

Thanks,
John

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/447d595f-4e89-42dc-9315-992b49d71723n%40googlegroups.com.