WebView fails to load pages with JS error, webbrowser-app loads them fine

Bug #1462442 reported by Michael Hall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
New
Undecided
Unassigned

Bug Description

When loading the Imgur page http://imgur.com/gallery/RJP1U in uReadIt, using Ubuntu.Web.WebView 0.2, the page loads the background color and then fails.

Errors from QML/JS: http://pastebin.ubuntu.com/11589925/

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

This example page loads fine in a standalone WebView (tested on my krillin running the latest devel-proposed image):

    import QtQuick 2.0
    import Ubuntu.Web 0.2
    WebView {
        url: "http://imgur.com/gallery/RJP1U"
    }

I do see a few JS errors, but they’re not visibly affecting rendering:

    qml: [JS] (http://m.imgur.com/js/dist/imgur.mobile.lib.min.js?1433551453:7) Uncaught TypeError: Cannot read property 'getItem' of null
    qml: [JS] (http://m.imgur.com/js/dist/imgur.mobile.min.js?1433551453:8) ReferenceError: SmartBanner is not defined
    qml: [JS] (http://m.imgur.com/js/dist/imgur.mobile.min.js?1433551453:8) ReferenceError: SmartBanner is not defined
    qml: [JS] (http://m.imgur.com/js/dist/imgur.mobile.min.js?1433551453:2) Uncaught ReferenceError: FastClick is not defined
    qml: [JS] (http://m.imgur.com/gallery/RJP1U:28) Uncaught ReferenceError: moment is not defined

Michael, can you still reliably reproduce the issue in uReadIt?

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.