Can't open a PDF from a webapp

Bug #1629466 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webbrowser-app (Ubuntu)
New
Undecided
Unassigned

Bug Description

And potentially any Content Hub file?

When trying to open pdfs in the fastmail or reddit webapps, I get the following and the pdf never opens:

file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker13.qml:194: TypeError: Cannot read property 'peers' of null
file:///usr/share/webbrowser-app/webcontainer/WebappWebview.qml:219: ReferenceError: startDownload is not defined

I'm assuming it's the second message that is fatal, so I've opened against webbrowser-app.

Revision history for this message
Michael Terry (mterry) wrote :

Yeah, digging a little more, neither the startDownload signal or function exists. Looks like code copied and pasted from Browser.qml. But webapps don't need the same download support (they just care about exporting to a ContentHub peer rather than internally downloading).

I tried to hack a fix together, but I couldn't make it work. I don't know ContentHub very well.

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

This is a duplicate of https://bugs.launchpad.net/webapps-core/+bug/1560086 for which there is a branch in progress, sorry for the delay on this, I will MR it ASAP,

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.