Opened 5 years ago

Closed 5 years ago

#15261 closed defect (fixed)

Adding new external wxWebView factory can block creating default wxWebView

Reported by: Teolog Owned by:
Priority: low Milestone:
Component: WebView Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no


The default wxWebView list filled only by wxWebView::Create request, by checking if factrory list empty.
So if you own factory added before any wxWebView::Create request, default factories will not added, and creating system default wxWebView implementation will fail.
This can solved in user code by calling wxWebView::Create(wxEmptyString) before add own factory, but better to fix this in library code here
wxStringWebViewFactoryMap::iterator wxWebView::FindFactory(const wxString &backend)

Initialise the map if needed


return m_factoryMap.find(backend);


Change History (2)

comment:1 Changed 5 years ago by steve_lamerton

  • Status changed from new to confirmed

Thanks for reporting, I will commit a fix shortly.

comment:2 Changed 5 years ago by SJL

  • Resolution set to fixed
  • Status changed from confirmed to closed

(In [74251]) Ensure that the default wxWebView backends are registered.

Fixes #15261

Note: See TracTickets for help on using tickets.