Changeset 154735 in webkit


Ignore:
Timestamp:
Aug 28, 2013 5:32:33 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r154593.
http://trac.webkit.org/changeset/154593
https://bugs.webkit.org/show_bug.cgi?id=120403

Caused 50+ flaky tests on WebKit1 bots (Requested by carewolf
on #webkit).

Source/WebKit/qt:

  • WidgetApi/qwebpage.cpp:

(QWebPage::javaScriptConsoleMessage):

Tools:

  • DumpRenderTree/qt/DumpRenderTreeQt.cpp:

(WebPage::~WebPage):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/ChangeLog

    r154671 r154735  
     12013-08-28  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r154593.
     4        http://trac.webkit.org/changeset/154593
     5        https://bugs.webkit.org/show_bug.cgi?id=120403
     6
     7        Caused 50+ flaky tests on WebKit1 bots (Requested by carewolf
     8        on #webkit).
     9
     10        * WidgetApi/qwebpage.cpp:
     11        (QWebPage::javaScriptConsoleMessage):
     12
    1132013-08-27  Arunprasad Rajkumar  <arurajku@cisco.com>
    214
  • trunk/Source/WebKit/qt/WidgetApi/qwebpage.cpp

    r154593 r154735  
    14861486{
    14871487    Q_UNUSED(sourceID);
    1488     Q_UNUSED(lineNumber);
    1489     Q_UNUSED(sourceID);
     1488
     1489    // Catch plugin logDestroy message for LayoutTests/plugins/open-and-close-window-with-plugin.html
     1490    // At this point DRT's WebPage has already been destroyed
     1491    if (QWebPageAdapter::drtRun) {
     1492        if (message == QLatin1String("PLUGIN: NPP_Destroy")) {
     1493            fprintf(stdout, "CONSOLE MESSAGE: ");
     1494            if (lineNumber)
     1495                fprintf(stdout, "line %d: ", lineNumber);
     1496            fprintf(stdout, "%s\n", message.toUtf8().constData());
     1497        }
     1498    }
    14901499}
    14911500
  • trunk/Tools/ChangeLog

    r154733 r154735  
     12013-08-28  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r154593.
     4        http://trac.webkit.org/changeset/154593
     5        https://bugs.webkit.org/show_bug.cgi?id=120403
     6
     7        Caused 50+ flaky tests on WebKit1 bots (Requested by carewolf
     8        on #webkit).
     9
     10        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
     11        (WebPage::~WebPage):
     12
    1132013-08-28  Allan Sandfeld Jensen  <allan.jensen@digia.com>
    214
  • trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp

    r154593 r154735  
    160160WebPage::~WebPage()
    161161{
    162     // Load an empty url to send the onunload event to the running page before
    163     // deleting this instance.
    164     // Prior to this fix the onunload event would be triggered from '~QWebPage', but
    165     // it may call virtual functions (e.g. calling a window.alert from window.onunload)
    166     // of 'QWebPage' as the 'WebPage' part of the vtable has already been unwinded.
    167     // When in '~WebPage' the vtable of 'QWebPage' points to the derived
    168     // class 'WebPage' and it's possible to receive 'QWebPage' virtual calls
    169     // like javaScriptAlert, javaScriptConsoleMessage, ...etc.
    170     mainFrame()->load(QUrl());
    171162    delete m_webInspector;
    172163}
Note: See TracChangeset for help on using the changeset viewer.