Commit 15bd53df authored by yi.4.shen@nokia.com's avatar yi.4.shen@nokia.com

[Qt] Unreviewed rollout 90779 which may fail the layout-test.


Source/WebCore:

* platform/network/qt/QNetworkReplyHandler.cpp:
(WebCore::QNetworkReplyHandlerCallQueue::setDeferSignals):
* platform/network/qt/QNetworkReplyHandler.h:

LayoutTests:

* loader/load-defer-resume-crash-expected.txt: Removed.
* loader/load-defer-resume-crash.html: Removed.
* loader/resources/images.html: Removed.
* platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 78cdb44d
2011-07-11 Yi Shen <yi.4.shen@nokia.com>
[Qt] Unreviewed rollout 90779 which may fail the layout-test.
* loader/load-defer-resume-crash-expected.txt: Removed.
* loader/load-defer-resume-crash.html: Removed.
* loader/resources/images.html: Removed.
* platform/chromium/test_expectations.txt:
2011-07-11 Jessie Berlin <jberlin@apple.com>
WebKitTestRunner needs an implementation of layoutTestController.setDefersLoading.
For the test to pass there should be no crash.
<html>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function run() {
var frameElement = document.createElement('iframe')
frameElement.setAttribute("src", "resources/images.html");
document.getElementById("frameDiv").appendChild(frameElement);
if (window.layoutTestController) {
layoutTestController.setDefersLoading(true);
setTimeout("layoutTestController.setDefersLoading(false);layoutTestController.notifyDone();",1000);
} else
alert("Deferring loads");
}
</script>
<body onload='run()'>
<p>For the test to pass there should be no crash.</p>
<div id="frameDiv"></div>
</body>
</html>
<html>
<body>
<img border="0" src="image1.png"/>
<img border="0" src="image2.png"/>
</body>
</html>
......@@ -212,7 +212,6 @@ WONTFIX SKIP : animations/animation-api-1.html = FAIL
// Unskip after implementing LayoutTestController::setDefersLoading and ::goBack.
BUGWK60877 SKIP : loader/navigation-while-deferring-loads.html = FAIL
BUGWK60877 SKIP : loader/load-defer-resume-crash.html = FAIL
// Skipped until new WebSocket protocol is implemented.
BUGWK50099 SKIP : http/tests/websocket/tests/hybi/ = PASS FAIL TIMEOUT
......
2011-07-11 Yi Shen <yi.4.shen@nokia.com>
[Qt] Unreviewed rollout 90779 which may fail the layout-test.
* platform/network/qt/QNetworkReplyHandler.cpp:
(WebCore::QNetworkReplyHandlerCallQueue::setDeferSignals):
* platform/network/qt/QNetworkReplyHandler.h:
2011-07-11 Bradley Nelson <bradnelson@chromium.org>
Reviewed by Darin Fisher.
......@@ -181,7 +181,7 @@ void QNetworkReplyHandlerCallQueue::unlock()
void QNetworkReplyHandlerCallQueue::setDeferSignals(bool defer)
{
m_deferSignals = defer;
QMetaObject::invokeMethod(this, "flush", Qt::QueuedConnection);
flush();
}
void QNetworkReplyHandlerCallQueue::flush()
......
......@@ -41,8 +41,7 @@ class ResourceRequest;
class ResourceResponse;
class QNetworkReplyHandler;
class QNetworkReplyHandlerCallQueue : public QObject {
Q_OBJECT
class QNetworkReplyHandlerCallQueue {
public:
QNetworkReplyHandlerCallQueue(QNetworkReplyHandler*, bool deferSignals);
bool deferSignals() const { return m_deferSignals; }
......@@ -61,7 +60,7 @@ private:
bool m_flushing;
QList<EnqueuedCall> m_enqueuedCalls;
Q_INVOKABLE void flush();
void flush();
};
class QNetworkReplyWrapper : public QObject {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment