* We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case.
Signed-off-by: Simon Hausmann <hausmann@kde.org>
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27042
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
if (hasSyncJobs && !syncJobs.contains(jobData->job))
continue;
+ // This job was not yet started
+ if (static_cast<int>(jobData->job->status()) < QWebNetworkJob::JobStarted)
+ continue;
+
m_queueMutex.lock();
m_receivedData.removeAll(jobData);
m_queueMutex.unlock();
if (hasSyncJobs && !syncJobs.contains(jobFinished->job))
continue;
+ // This job was not yet started... we have no idea if data comes by...
+ if (static_cast<int>(jobFinished->job->status()) < QWebNetworkJob::JobStarted)
+ continue;
+
m_queueMutex.lock();
m_finishedJobs.removeAll(jobFinished);
m_queueMutex.unlock();
+2007-10-25 Holger Freyther <zecke@selfish.org>
+
+ Reviewed by Simon Hausmann <hausmann@kde.org>.
+
+ * Use the JobStatus to make sure to not deliver finished/data before the job has started. This is the case with the fast/dom/onerror-img.html test case.
+ * We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case.
+
+
+ * Api/qwebnetworkinterface.cpp:
+ (QWebNetworkManager::doWork):
+
2007-10-25 Holger Freyther <zecke@selfish.org>
Reviewed by Simon Hausmann <hausmann@kde.org>.