• caio.oliveira@openbossa.org's avatar
    2011-05-18 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> · e7d16a30
    caio.oliveira@openbossa.org authored
            Reviewed by Andreas Kling.
            [Qt] Fix tst_QWebFrame::getSetStaticProperty() autotest
            The code for converting objects to QVariantMap was causing exception,
            that was "leaking" to the next evaluation. One situation was reading
            the property 'localStorage' when we do not have a proper security
            origin, which throws a SECURITY_ERR.
            Now, we will simply not include on the QVariantMap those properties,
            and make sure that we clean the exception if necessary.
            * bridge/qt/qt_runtime.cpp:
            Extracted function that performs conversion from JSObject to a QVariantMap. This
            functions makes sure that exception is clean after its execution.
            Use the previous function. Add a comment explaining the choice of distance value.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
qt_runtime.cpp 70.8 KB