[Webkit-unassigned] [Bug 29381] [Qt] [Regression] QWebView::setHtml() executes script body twice

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 25 04:25:34 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29381


Tor Arne Vestbø <vestbo at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|webkit-unassigned at lists.web |vestbo at webkit.org
                   |kit.org                     |
             Status|NEW                         |ASSIGNED




--- Comment #1 from Tor Arne Vestbø <vestbo at webkit.org>  2009-09-25 04:25:34 PDT ---
Confirmed in trunk. Also, when the alert() is active the body element will
contain the following innerHTML:

<script>
var x = new Date();
alert('foo');
document.write('Date: ' + x + '<br>');
</script>Date: Fri Sep 25 2009 13:23:25 GMT+0200 (CEST)<br><script>
var x = new Date();
alert('foo');
document.write('Date: ' + x + '<br>');
</script>Date: Fri Sep 25 2009 13:23:26 GMT+0200 (CEST)<br>hallo
hallo


using the following snippet:

#include <QtGui>
#include <QWebView.h>

int main(int argc, char **argv)
{
    QApplication a(argc, argv);
    QWebView w;
    w.setHtml("<html><body><script>\n"
                "var x = new Date();\n"
                "alert('foo');\n"
                "document.write('Date: ' + x + '<br>');\n"
                "</script>hallo</body></html>\n");
    w.show();
    return a.exec();
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list