wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.21k stars 509 forks source link

wx.html2.WebView.RegisterHandler broken in 4.2.1 (regression from 4.1.1) #2509

Open mmmmichael opened 4 months ago

mmmmichael commented 4 months ago

Operating system: Windows 11. wxPython version & source: 4.2.1 via pip. Python version & source: Official Python 3.9.1 installer for Windows.

Description of the problem:

  1. Run https://github.com/wxWidgets/Phoenix/blob/wxPython-4.2.1/samples/html2/webview_sample.py.
  2. Type custom:abc into the "Location:" field and press Enter.
  3. The webview does not show the text "Custom Handler Example", see first screenshot.
  4. For comparison: It is shown correctly in 4.2.1, see second screenshot.

I looked a little bit into the source code, but didn't see any significant change to the IE implementation of the WebView, except that the IE version was increased in https://github.com/wxWidgets/Phoenix/commit/130959f12b6d41a72dd5f44c0fdb92ffd55b8838.

image image