Unreviewed, rolling out r172219.
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Aug 2014 19:44:28 +0000 (19:44 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Aug 2014 19:44:28 +0000 (19:44 +0000)
Caused some /fast/workers tests to fail; will investigate
offline.

Reverted changeset:

"Sometimes Gmail cannot load messages, particularly on refresh
("...the application ran into an unexpected error...")"
https://bugs.webkit.org/show_bug.cgi?id=135688
http://trac.webkit.org/changeset/172219

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172225 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp

index 4f7b28c..79d6470 100644 (file)
@@ -1,3 +1,17 @@
+2014-08-07  Daniel Bates  <dabates@apple.com>
+
+        Unreviewed, rolling out r172219.
+
+        Caused some /fast/workers tests to fail; will investigate
+        offline.
+
+        Reverted changeset:
+
+        "Sometimes Gmail cannot load messages, particularly on refresh
+        ("...the application ran into an unexpected error...")"
+        https://bugs.webkit.org/show_bug.cgi?id=135688
+        http://trac.webkit.org/changeset/172219
+
 2014-08-06  Roger Fong  <roger_fong@apple.com>
 
         Increase width of caption container if a larger font size is selected from user prefs.
index bf74f2d..9a82bc1 100644 (file)
@@ -4915,10 +4915,8 @@ void Document::postTask(Task task)
         if (!document)
             return;
 
-        if (document->activeDOMObjectsAreStopped())
-            return;
-
-        if (document->activeDOMObjectsAreSuspended() || !document->m_pendingTasks.isEmpty())
+        Page* page = document->page();
+        if ((page && page->defersLoading()) || !document->m_pendingTasks.isEmpty())
             document->m_pendingTasks.append(WTF::move(*task.release()));
         else
             task->performTask(*document);