Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QWebKit assert on url starting with '/'



  • Hi all

    I'm trying to use QWebKit for manage custom google maps. I use an html page with code for load google maps, something like:

    https://developers.google.com/maps/documentation/javascript/examples/map-simple

    unfortunately in debug mode an assert was generated by the webkit code. The assert come from the following code inside the KURL.cpp file:

    static inline void checkEncodedString(const String& url)
    {
    .......
    ASSERT_UNUSED(url, url.isEmpty() || isSchemeFirstChar(url[0]));
    }

    The url generating the assert is the following:

    //maps.gstatic.com/mapfiles/openhand_8_8.cur

    Basically the wekbit function isSchemeFirstChar return an exception if the url start with the character '/' instead of most common 'http' or similar. In release mode no problem and all is working but this assert make impossible to debug the software. Someone know a workaround for allow me to debug my application ignoring this problem? The platform is Visual Studio 2013 with 32 bit Qt library.

    Thank you


Log in to reply