UbuntuWebView’s context menu not displayed in debug builds

Bug #1664527 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
New
Undecided
Unassigned

Bug Description

I built lp:oxide in debug mode and release mode, and when right-clicking on a hyperlink in an UbuntuWebView, I’m seeing a context menu (with two options to copy link address and save link) in the release build, but not in the debug build.

Revision history for this message
Olivier Tilloy (osomon) wrote :

oxide::qt::WebView::CreateContextMenu(…) is being called with 3 menu items and oxide::qt::MenuItemBuilder::Build(items) returns a std::vector of size 3.

aux_ui_factory_->CreateWebContextMenu(…) is called with this vector, but the callee (oxide::uitk::AuxiliaryUIFactory::CreateWebContextMenu()) gets an empty vector.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Note that I am seeing the same issue in the branch where I'm implementing autofill suggestions, and replacing std::vector<Suggestion> with QVector<Suggestion> "fixes" the problem, although I’d rather understand what's going on and address it of course.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.