Changeset 192848 in webkit
- Timestamp:
- Nov 30, 2015 5:55:43 PM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 81 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r192847 r192848 1 2015-11-30 Katlyn Graff <kgraff@apple.com> 2 3 Rename ActiveDOMObject/DOMWindow PageCacheSuspension code to support more reasons for suspension 4 https://bugs.webkit.org/show_bug.cgi?id=151677 5 6 Reviewed by Ryosuke Niwa. 7 8 Simply a refactoring patch, so no new tests. 9 10 * Modules/encryptedmedia/MediaKeySession.cpp: 11 (WebCore::MediaKeySession::canSuspendForDocumentSuspension): 12 (WebCore::MediaKeySession::canSuspendForPageCache): Deleted. 13 * Modules/encryptedmedia/MediaKeySession.h: 14 * Modules/geolocation/Geolocation.cpp: 15 (WebCore::Geolocation::canSuspendForDocumentSuspension): 16 (WebCore::Geolocation::canSuspendForPageCache): Deleted. 17 * Modules/geolocation/Geolocation.h: 18 * Modules/indexeddb/DOMWindowIndexedDatabase.cpp: 19 (WebCore::DOMWindowIndexedDatabase::disconnectFrameForDocumentSuspension): 20 (WebCore::DOMWindowIndexedDatabase::reconnectFrameFromDocumentSuspension): 21 (WebCore::DOMWindowIndexedDatabase::disconnectFrameForPageCache): Deleted. 22 (WebCore::DOMWindowIndexedDatabase::reconnectFrameFromPageCache): Deleted. 23 * Modules/indexeddb/DOMWindowIndexedDatabase.h: 24 * Modules/indexeddb/client/IDBDatabaseImpl.cpp: 25 (WebCore::IDBClient::IDBDatabase::canSuspendForDocumentSuspension): 26 (WebCore::IDBClient::IDBDatabase::canSuspendForPageCache): Deleted. 27 * Modules/indexeddb/client/IDBDatabaseImpl.h: 28 * Modules/indexeddb/client/IDBRequestImpl.cpp: 29 (WebCore::IDBClient::IDBRequest::canSuspendForDocumentSuspension): 30 (WebCore::IDBClient::IDBRequest::canSuspendForPageCache): Deleted. 31 * Modules/indexeddb/client/IDBRequestImpl.h: 32 * Modules/indexeddb/client/IDBTransactionImpl.cpp: 33 (WebCore::IDBClient::IDBTransaction::canSuspendForDocumentSuspension): 34 (WebCore::IDBClient::IDBTransaction::canSuspendForPageCache): Deleted. 35 * Modules/indexeddb/client/IDBTransactionImpl.h: 36 * Modules/indexeddb/legacy/LegacyDatabase.cpp: 37 (WebCore::LegacyDatabase::canSuspendForDocumentSuspension): 38 (WebCore::LegacyDatabase::canSuspendForPageCache): Deleted. 39 * Modules/indexeddb/legacy/LegacyDatabase.h: 40 * Modules/indexeddb/legacy/LegacyRequest.cpp: 41 (WebCore::LegacyRequest::canSuspendForDocumentSuspension): 42 (WebCore::LegacyRequest::canSuspendForPageCache): Deleted. 43 * Modules/indexeddb/legacy/LegacyRequest.h: 44 * Modules/indexeddb/legacy/LegacyTransaction.cpp: 45 (WebCore::LegacyTransaction::canSuspendForDocumentSuspension): 46 (WebCore::LegacyTransaction::canSuspendForPageCache): Deleted. 47 * Modules/indexeddb/legacy/LegacyTransaction.h: 48 * Modules/mediasource/MediaSource.cpp: 49 (WebCore::MediaSource::canSuspendForDocumentSuspension): 50 (WebCore::MediaSource::canSuspendForPageCache): Deleted. 51 * Modules/mediasource/MediaSource.h: 52 * Modules/mediasource/SourceBuffer.cpp: 53 (WebCore::SourceBuffer::canSuspendForDocumentSuspension): 54 (WebCore::SourceBuffer::canSuspendForPageCache): Deleted. 55 * Modules/mediasource/SourceBuffer.h: 56 * Modules/mediastream/MediaStreamTrack.cpp: 57 (WebCore::MediaStreamTrack::canSuspendForDocumentSuspension): 58 (WebCore::MediaStreamTrack::canSuspendForPageCache): Deleted. 59 * Modules/mediastream/MediaStreamTrack.h: 60 * Modules/mediastream/RTCDTMFSender.cpp: 61 (WebCore::RTCDTMFSender::canSuspendForDocumentSuspension): 62 (WebCore::RTCDTMFSender::canSuspendForPageCache): Deleted. 63 * Modules/mediastream/RTCDTMFSender.h: 64 * Modules/mediastream/RTCPeerConnection.cpp: 65 (WebCore::RTCPeerConnection::canSuspendForDocumentSuspension): 66 (WebCore::RTCPeerConnection::canSuspendForPageCache): Deleted. 67 * Modules/mediastream/RTCPeerConnection.h: 68 * Modules/notifications/DOMWindowNotifications.cpp: 69 (WebCore::DOMWindowNotifications::disconnectFrameForDocumentSuspension): 70 (WebCore::DOMWindowNotifications::reconnectFrameFromDocumentSuspension): 71 (WebCore::DOMWindowNotifications::disconnectFrameForPageCache): Deleted. 72 (WebCore::DOMWindowNotifications::reconnectFrameFromPageCache): Deleted. 73 * Modules/notifications/DOMWindowNotifications.h: 74 * Modules/notifications/Notification.cpp: 75 (WebCore::Notification::canSuspendForDocumentSuspension): 76 (WebCore::Notification::canSuspendForPageCache): Deleted. 77 * Modules/notifications/Notification.h: 78 * Modules/notifications/NotificationCenter.cpp: 79 (WebCore::NotificationCenter::canSuspendForDocumentSuspension): 80 (WebCore::NotificationCenter::canSuspendForPageCache): Deleted. 81 * Modules/notifications/NotificationCenter.h: 82 * Modules/webaudio/AudioContext.cpp: 83 (WebCore::AudioContext::canSuspendForDocumentSuspension): 84 (WebCore::AudioContext::canSuspendForPageCache): Deleted. 85 * Modules/webaudio/AudioContext.h: 86 * Modules/webdatabase/DatabaseContext.cpp: 87 (WebCore::DatabaseContext::canSuspendForDocumentSuspension): 88 (WebCore::DatabaseContext::canSuspendForPageCache): Deleted. 89 * Modules/webdatabase/DatabaseContext.h: 90 * Modules/websockets/WebSocket.cpp: 91 (WebCore::WebSocket::canSuspendForDocumentSuspension): 92 (WebCore::WebSocket::canSuspendForPageCache): Deleted. 93 * Modules/websockets/WebSocket.h: 94 * css/FontLoader.cpp: 95 (WebCore::FontLoader::canSuspendForDocumentSuspension): 96 (WebCore::FontLoader::canSuspendForPageCache): Deleted. 97 * css/FontLoader.h: 98 * dom/ActiveDOMObject.cpp: 99 (WebCore::ActiveDOMObject::canSuspendForDocumentSuspension): 100 (WebCore::ActiveDOMObject::canSuspendForPageCache): Deleted. 101 * dom/ActiveDOMObject.h: 102 * dom/Document.cpp: 103 (WebCore::Document::~Document): 104 * dom/ScriptExecutionContext.cpp: 105 (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjectsForTabSuspension): 106 (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjectsForPageCache): Deleted. 107 * dom/ScriptExecutionContext.h: 108 * fileapi/FileReader.cpp: 109 (WebCore::FileReader::canSuspendForDocumentSuspension): 110 (WebCore::FileReader::canSuspendForPageCache): Deleted. 111 * fileapi/FileReader.h: 112 * history/CachedFrame.cpp: 113 (WebCore::CachedFrame::CachedFrame): 114 * history/PageCache.cpp: 115 (WebCore::canCacheFrame): 116 * html/HTMLMarqueeElement.cpp: 117 (WebCore::HTMLMarqueeElement::canSuspendForDocumentSuspension): 118 (WebCore::HTMLMarqueeElement::canSuspendForPageCache): Deleted. 119 * html/HTMLMarqueeElement.h: 120 * html/HTMLMediaElement.cpp: 121 (WebCore::HTMLMediaElement::canSuspendForDocumentSuspension): 122 (WebCore::HTMLMediaElement::canSuspendForPageCache): Deleted. 123 * html/HTMLMediaElement.h: 124 * html/HTMLSourceElement.cpp: 125 (WebCore::HTMLSourceElement::canSuspendForDocumentSuspension): 126 (WebCore::HTMLSourceElement::canSuspendForPageCache): Deleted. 127 * html/HTMLSourceElement.h: 128 * html/PublicURLManager.cpp: 129 (WebCore::PublicURLManager::canSuspendForDocumentSuspension): 130 (WebCore::PublicURLManager::canSuspendForPageCache): Deleted. 131 * html/PublicURLManager.h: 132 * html/canvas/WebGLRenderingContextBase.cpp: 133 (WebCore::WebGLRenderingContextBase::canSuspendForDocumentSuspension): 134 (WebCore::WebGLRenderingContextBase::canSuspendForPageCache): Deleted. 135 * html/canvas/WebGLRenderingContextBase.h: 136 * loader/FrameLoader.cpp: 137 (WebCore::FrameLoader::clear): 138 (WebCore::FrameLoader::open): 139 * loader/appcache/DOMApplicationCache.cpp: 140 (WebCore::DOMApplicationCache::disconnectFrameForDocumentSuspension): 141 (WebCore::DOMApplicationCache::reconnectFrameFromDocumentSuspension): 142 (WebCore::DOMApplicationCache::disconnectFrameForPageCache): Deleted. 143 (WebCore::DOMApplicationCache::reconnectFrameFromPageCache): Deleted. 144 * loader/appcache/DOMApplicationCache.h: 145 * page/DOMWindow.cpp: 146 (WebCore::DOMWindow::DOMWindow): 147 (WebCore::DOMWindow::~DOMWindow): 148 (WebCore::DOMWindow::resetUnlessSuspendedForDocumentSuspension): 149 (WebCore::DOMWindow::suspendForDocumentSuspension): 150 (WebCore::DOMWindow::resumeFromDocumentSuspension): 151 (WebCore::DOMWindow::disconnectDOMWindowProperties): 152 (WebCore::DOMWindow::reconnectDOMWindowProperties): 153 (WebCore::DOMWindow::resetUnlessSuspendedForPageCache): Deleted. 154 (WebCore::DOMWindow::suspendForPageCache): Deleted. 155 (WebCore::DOMWindow::resumeFromPageCache): Deleted. 156 * page/DOMWindow.h: 157 * page/DOMWindowExtension.cpp: 158 (WebCore::DOMWindowExtension::disconnectFrameForDocumentSuspension): 159 (WebCore::DOMWindowExtension::reconnectFrameFromDocumentSuspension): 160 (WebCore::DOMWindowExtension::disconnectFrameForPageCache): Deleted. 161 (WebCore::DOMWindowExtension::reconnectFrameFromPageCache): Deleted. 162 * page/DOMWindowExtension.h: 163 * page/DOMWindowProperty.cpp: 164 (WebCore::DOMWindowProperty::disconnectFrameForDocumentSuspension): 165 (WebCore::DOMWindowProperty::reconnectFrameFromDocumentSuspension): 166 (WebCore::DOMWindowProperty::disconnectFrameForPageCache): Deleted. 167 (WebCore::DOMWindowProperty::reconnectFrameFromPageCache): Deleted. 168 * page/DOMWindowProperty.h: 169 * page/EventSource.cpp: 170 (WebCore::EventSource::canSuspendForDocumentSuspension): 171 (WebCore::EventSource::canSuspendForPageCache): Deleted. 172 * page/EventSource.h: 173 * page/SuspendableTimer.cpp: 174 (WebCore::SuspendableTimer::canSuspendForDocumentSuspension): 175 (WebCore::SuspendableTimer::canSuspendForPageCache): Deleted. 176 * page/SuspendableTimer.h: 177 * workers/Worker.cpp: 178 (WebCore::Worker::canSuspendForDocumentSuspension): 179 (WebCore::Worker::canSuspendForPageCache): Deleted. 180 * workers/Worker.h: 181 * xml/XMLHttpRequest.cpp: 182 (WebCore::XMLHttpRequest::canSuspendForDocumentSuspension): 183 (WebCore::XMLHttpRequest::canSuspendForPageCache): Deleted. 184 * xml/XMLHttpRequest.h: 185 1 186 2015-11-30 Brady Eidson <beidson@apple.com> 2 187 -
trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp
r184709 r192848 266 266 } 267 267 268 bool MediaKeySession::canSuspendFor PageCache() const268 bool MediaKeySession::canSuspendForDocumentSuspension() const 269 269 { 270 270 // FIXME: We should try and do better here. -
trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h
r185923 r192848 114 114 // ActiveDOMObject API. 115 115 void stop() override; 116 bool canSuspendFor PageCache() const override;116 bool canSuspendForDocumentSuspension() const override; 117 117 const char* activeDOMObjectName() const override; 118 118 }; -
trunk/Source/WebCore/Modules/geolocation/Geolocation.cpp
r190391 r192848 162 162 } 163 163 164 bool Geolocation::canSuspendFor PageCache() const164 bool Geolocation::canSuspendForDocumentSuspension() const 165 165 { 166 166 return true; -
trunk/Source/WebCore/Modules/geolocation/Geolocation.h
r190391 r192848 80 80 // ActiveDOMObject 81 81 void stop() override; 82 bool canSuspendFor PageCache() const override;82 bool canSuspendForDocumentSuspension() const override; 83 83 void suspend(ReasonForSuspension) override; 84 84 void resume() override; -
trunk/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
r190291 r192848 65 65 } 66 66 67 void DOMWindowIndexedDatabase::disconnectFrameFor PageCache()67 void DOMWindowIndexedDatabase::disconnectFrameForDocumentSuspension() 68 68 { 69 69 m_suspendedIDBFactory = m_idbFactory.release(); 70 DOMWindowProperty::disconnectFrameFor PageCache();70 DOMWindowProperty::disconnectFrameForDocumentSuspension(); 71 71 } 72 72 73 void DOMWindowIndexedDatabase::reconnectFrameFrom PageCache(Frame* frame)73 void DOMWindowIndexedDatabase::reconnectFrameFromDocumentSuspension(Frame* frame) 74 74 { 75 DOMWindowProperty::reconnectFrameFrom PageCache(frame);75 DOMWindowProperty::reconnectFrameFromDocumentSuspension(frame); 76 76 m_idbFactory = m_suspendedIDBFactory.release(); 77 77 } -
trunk/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.h
r182068 r192848 47 47 static IDBFactory* indexedDB(DOMWindow*); 48 48 49 virtual void disconnectFrameFor PageCache() override;50 virtual void reconnectFrameFrom PageCache(Frame*) override;49 virtual void disconnectFrameForDocumentSuspension() override; 50 virtual void reconnectFrameFromDocumentSuspension(Frame*) override; 51 51 virtual void willDestroyGlobalObjectInCachedFrame() override; 52 52 virtual void willDestroyGlobalObjectInFrame() override; -
trunk/Source/WebCore/Modules/indexeddb/client/IDBDatabaseImpl.cpp
r192813 r192848 235 235 } 236 236 237 bool IDBDatabase::canSuspendFor PageCache() const237 bool IDBDatabase::canSuspendForDocumentSuspension() const 238 238 { 239 239 // FIXME: This value will sometimes be false when database operations are actually in progress. -
trunk/Source/WebCore/Modules/indexeddb/client/IDBDatabaseImpl.h
r192720 r192848 68 68 69 69 virtual const char* activeDOMObjectName() const override final; 70 virtual bool canSuspendFor PageCache() const override final;70 virtual bool canSuspendForDocumentSuspension() const override final; 71 71 72 72 const IDBDatabaseInfo& info() const { return m_info; } -
trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.cpp
r192833 r192848 217 217 } 218 218 219 bool IDBRequest::canSuspendFor PageCache() const219 bool IDBRequest::canSuspendForDocumentSuspension() const 220 220 { 221 221 return false; -
trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.h
r192833 r192848 109 109 // ActiveDOMObject. 110 110 virtual const char* activeDOMObjectName() const override final; 111 virtual bool canSuspendFor PageCache() const override final;111 virtual bool canSuspendForDocumentSuspension() const override final; 112 112 virtual bool hasPendingActivity() const override final; 113 113 -
trunk/Source/WebCore/Modules/indexeddb/client/IDBTransactionImpl.cpp
r192813 r192848 207 207 } 208 208 209 bool IDBTransaction::canSuspendFor PageCache() const209 bool IDBTransaction::canSuspendForDocumentSuspension() const 210 210 { 211 211 return false; -
trunk/Source/WebCore/Modules/indexeddb/client/IDBTransactionImpl.h
r192813 r192848 80 80 81 81 virtual const char* activeDOMObjectName() const override final; 82 virtual bool canSuspendFor PageCache() const override final;82 virtual bool canSuspendForDocumentSuspension() const override final; 83 83 virtual bool hasPendingActivity() const override final; 84 84 -
trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyDatabase.cpp
r192354 r192848 394 394 } 395 395 396 bool LegacyDatabase::canSuspendFor PageCache() const396 bool LegacyDatabase::canSuspendForDocumentSuspension() const 397 397 { 398 398 return m_isClosed; -
trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyDatabase.h
r192354 r192848 111 111 void stop() override; 112 112 const char* activeDOMObjectName() const override; 113 bool canSuspendFor PageCache() const override;113 bool canSuspendForDocumentSuspension() const override; 114 114 115 115 // EventTarget -
trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyRequest.cpp
r192354 r192848 452 452 } 453 453 454 bool LegacyRequest::canSuspendFor PageCache() const454 bool LegacyRequest::canSuspendForDocumentSuspension() const 455 455 { 456 456 return !m_hasPendingActivity; -
trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyRequest.h
r192354 r192848 127 127 void stop() override; 128 128 const char* activeDOMObjectName() const override; 129 bool canSuspendFor PageCache() const override;129 bool canSuspendForDocumentSuspension() const override; 130 130 131 131 // EventTarget API. -
trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyTransaction.cpp
r192354 r192848 341 341 } 342 342 343 bool LegacyTransaction::canSuspendFor PageCache() const343 bool LegacyTransaction::canSuspendForDocumentSuspension() const 344 344 { 345 345 // FIXME: Technically we can suspend before the first request is schedule -
trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyTransaction.h
r192354 r192848 112 112 113 113 // ActiveDOMObject API. 114 bool canSuspendFor PageCache() const override;114 bool canSuspendForDocumentSuspension() const override; 115 115 void stop() override; 116 116 const char* activeDOMObjectName() const override; -
trunk/Source/WebCore/Modules/mediasource/MediaSource.cpp
r191888 r192848 815 815 } 816 816 817 bool MediaSource::canSuspendFor PageCache() const817 bool MediaSource::canSuspendForDocumentSuspension() const 818 818 { 819 819 return isClosed() && !m_asyncEventQueue.hasPendingEvents(); -
trunk/Source/WebCore/Modules/mediasource/MediaSource.h
r184709 r192848 120 120 // ActiveDOMObject API. 121 121 void stop() override; 122 bool canSuspendFor PageCache() const override;122 bool canSuspendForDocumentSuspension() const override; 123 123 const char* activeDOMObjectName() const override; 124 124 -
trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp
r190516 r192848 511 511 } 512 512 513 bool SourceBuffer::canSuspendFor PageCache() const513 bool SourceBuffer::canSuspendForDocumentSuspension() const 514 514 { 515 515 return !hasPendingActivity(); -
trunk/Source/WebCore/Modules/mediasource/SourceBuffer.h
r183856 r192848 140 140 void stop() override; 141 141 const char* activeDOMObjectName() const override; 142 bool canSuspendFor PageCache() const override;142 bool canSuspendForDocumentSuspension() const override; 143 143 144 144 // SourceBufferPrivateClient -
trunk/Source/WebCore/Modules/mediastream/MediaStreamTrack.cpp
r192503 r192848 265 265 } 266 266 267 bool MediaStreamTrack::canSuspendFor PageCache() const267 bool MediaStreamTrack::canSuspendForDocumentSuspension() const 268 268 { 269 269 // FIXME: We should try and do better here. -
trunk/Source/WebCore/Modules/mediastream/MediaStreamTrack.h
r192503 r192848 109 109 void stop() override final; 110 110 const char* activeDOMObjectName() const override final; 111 bool canSuspendFor PageCache() const override final;111 bool canSuspendForDocumentSuspension() const override final; 112 112 113 113 // EventTarget -
trunk/Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp
r192354 r192848 140 140 } 141 141 142 bool RTCDTMFSender::canSuspendFor PageCache() const142 bool RTCDTMFSender::canSuspendForDocumentSuspension() const 143 143 { 144 144 // FIXME: We should try and do better here. -
trunk/Source/WebCore/Modules/mediastream/RTCDTMFSender.h
r192354 r192848 70 70 void stop() override; 71 71 const char* activeDOMObjectName() const override; 72 bool canSuspendFor PageCache() const override;72 bool canSuspendForDocumentSuspension() const override; 73 73 74 74 void scheduleDispatchEvent(Ref<Event>&&); -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
r192675 r192848 399 399 } 400 400 401 bool RTCPeerConnection::canSuspendFor PageCache() const401 bool RTCPeerConnection::canSuspendForDocumentSuspension() const 402 402 { 403 403 // FIXME: We should try and do better here. -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.h
r192464 r192848 118 118 void stop() override; 119 119 const char* activeDOMObjectName() const override; 120 bool canSuspendFor PageCache() const override;120 bool canSuspendForDocumentSuspension() const override; 121 121 122 122 // PeerConnectionBackendClient -
trunk/Source/WebCore/Modules/notifications/DOMWindowNotifications.cpp
r170774 r192848 69 69 } 70 70 71 void DOMWindowNotifications::disconnectFrameFor PageCache()71 void DOMWindowNotifications::disconnectFrameForDocumentSuspension() 72 72 { 73 73 m_suspendedNotificationCenter = m_notificationCenter.release(); 74 DOMWindowProperty::disconnectFrameFor PageCache();74 DOMWindowProperty::disconnectFrameForDocumentSuspension(); 75 75 } 76 76 77 void DOMWindowNotifications::reconnectFrameFrom PageCache(Frame* frame)77 void DOMWindowNotifications::reconnectFrameFromDocumentSuspension(Frame* frame) 78 78 { 79 DOMWindowProperty::reconnectFrameFrom PageCache(frame);79 DOMWindowProperty::reconnectFrameFromDocumentSuspension(frame); 80 80 m_notificationCenter = m_suspendedNotificationCenter.release(); 81 81 } -
trunk/Source/WebCore/Modules/notifications/DOMWindowNotifications.h
r168144 r192848 47 47 static DOMWindowNotifications* from(DOMWindow*); 48 48 49 virtual void disconnectFrameFor PageCache() override;50 virtual void reconnectFrameFrom PageCache(Frame*) override;49 virtual void disconnectFrameForDocumentSuspension() override; 50 virtual void reconnectFrameFromDocumentSuspension(Frame*) override; 51 51 virtual void willDestroyGlobalObjectInCachedFrame() override; 52 52 virtual void willDestroyGlobalObjectInFrame() override; -
trunk/Source/WebCore/Modules/notifications/Notification.cpp
r185336 r192848 176 176 } 177 177 178 bool Notification::canSuspendFor PageCache() const178 bool Notification::canSuspendForDocumentSuspension() const 179 179 { 180 180 // We can suspend if the Notification is not shown yet or after it is closed. -
trunk/Source/WebCore/Modules/notifications/Notification.h
r185336 r192848 141 141 void contextDestroyed() override; 142 142 const char* activeDOMObjectName() const override; 143 bool canSuspendFor PageCache() const override;143 bool canSuspendForDocumentSuspension() const override; 144 144 145 145 // EventTarget API. -
trunk/Source/WebCore/Modules/notifications/NotificationCenter.cpp
r183365 r192848 138 138 } 139 139 140 bool NotificationCenter::canSuspendFor PageCache() const140 bool NotificationCenter::canSuspendForDocumentSuspension() const 141 141 { 142 142 // We don't need to worry about Notifications because those are ActiveDOMObject too. -
trunk/Source/WebCore/Modules/notifications/NotificationCenter.h
r183365 r192848 66 66 void stop() override; 67 67 const char* activeDOMObjectName() const override; 68 bool canSuspendFor PageCache() const override;68 bool canSuspendForDocumentSuspension() const override; 69 69 70 70 void timerFired(); -
trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp
r192027 r192848 356 356 } 357 357 358 bool AudioContext::canSuspendFor PageCache() const358 bool AudioContext::canSuspendForDocumentSuspension() const 359 359 { 360 360 // FIXME: We should be able to suspend while rendering as well with some more code. -
trunk/Source/WebCore/Modules/webaudio/AudioContext.h
r192027 r192848 309 309 // ActiveDOMObject API. 310 310 void stop() override; 311 bool canSuspendFor PageCache() const override;311 bool canSuspendForDocumentSuspension() const override; 312 312 const char* activeDOMObjectName() const override; 313 313 -
trunk/Source/WebCore/Modules/webdatabase/DatabaseContext.cpp
r191427 r192848 143 143 } 144 144 145 bool DatabaseContext::canSuspendFor PageCache() const145 bool DatabaseContext::canSuspendForDocumentSuspension() const 146 146 { 147 147 if (!hasOpenDatabases() || !m_databaseThread) -
trunk/Source/WebCore/Modules/webdatabase/DatabaseContext.h
r187926 r192848 72 72 void contextDestroyed() override; 73 73 void stop() override; 74 bool canSuspendFor PageCache() const override;74 bool canSuspendForDocumentSuspension() const override; 75 75 const char* activeDOMObjectName() const override { return "DatabaseContext"; } 76 76 -
trunk/Source/WebCore/Modules/websockets/WebSocket.cpp
r192354 r192848 476 476 } 477 477 478 bool WebSocket::canSuspendFor PageCache() const478 bool WebSocket::canSuspendForDocumentSuspension() const 479 479 { 480 480 return true; -
trunk/Source/WebCore/Modules/websockets/WebSocket.h
r187556 r192848 116 116 // ActiveDOMObject API. 117 117 void contextDestroyed() override; 118 bool canSuspendFor PageCache() const override;118 bool canSuspendForDocumentSuspension() const override; 119 119 void suspend(ReasonForSuspension) override; 120 120 void resume() override; -
trunk/Source/WebCore/css/FontLoader.cpp
r192354 r192848 162 162 } 163 163 164 bool FontLoader::canSuspendFor PageCache() const164 bool FontLoader::canSuspendForDocumentSuspension() const 165 165 { 166 166 return !m_numLoadingFromCSS && !m_numLoadingFromJS; -
trunk/Source/WebCore/css/FontLoader.h
r192354 r192848 90 90 // ActiveDOMObject API. 91 91 const char* activeDOMObjectName() const override; 92 bool canSuspendFor PageCache() const override;92 bool canSuspendForDocumentSuspension() const override; 93 93 94 94 void scheduleEvent(PassRefPtr<Event>); -
trunk/Source/WebCore/dom/ActiveDOMObject.cpp
r182544 r192848 91 91 } 92 92 93 bool ActiveDOMObject::canSuspendFor PageCache() const93 bool ActiveDOMObject::canSuspendForDocumentSuspension() const 94 94 { 95 95 return false; -
trunk/Source/WebCore/dom/ActiveDOMObject.h
r182544 r192848 43 43 virtual bool hasPendingActivity() const; 44 44 45 // The canSuspendFor PageCache() function is used by the caller if there is a choice between suspending45 // The canSuspendForDocumentSuspension() function is used by the caller if there is a choice between suspending 46 46 // and stopping. For example, a page won't be suspended and placed in the back/forward 47 47 // cache if it contains any objects that cannot be suspended. 48 48 49 // However, the suspend function will sometimes be called even if canSuspendFor PageCache() returns false.49 // However, the suspend function will sometimes be called even if canSuspendForDocumentSuspension() returns false. 50 50 // That happens in step-by-step JS debugging for example - in this case it would be incorrect 51 51 // to stop the object. Exact semantics of suspend is up to the object in cases like that. … … 63 63 // These three functions must not have a side effect of creating or destroying 64 64 // any ActiveDOMObject. That means they must not result in calls to arbitrary JavaScript. 65 virtual bool canSuspendFor PageCache() const = 0; // Returning false in canSuspendForPageCache() will prevent the page from entering the PageCache.65 virtual bool canSuspendForDocumentSuspension() const = 0; // Returning false in canSuspendForDocumentSuspension() will prevent the page from entering the PageCache. 66 66 virtual void suspend(ReasonForSuspension); 67 67 virtual void resume(); -
trunk/Source/WebCore/dom/Document.cpp
r192711 r192848 605 605 // FIXME: Should we reset m_domWindow when we detach from the Frame? 606 606 if (m_domWindow) 607 m_domWindow->resetUnlessSuspendedFor PageCache();607 m_domWindow->resetUnlessSuspendedForDocumentSuspension(); 608 608 609 609 m_scriptRunner = nullptr; -
trunk/Source/WebCore/dom/ScriptExecutionContext.cpp
r192354 r192848 177 177 } 178 178 179 bool ScriptExecutionContext::canSuspendActiveDOMObjectsFor PageCache(Vector<ActiveDOMObject*>* unsuspendableObjects)179 bool ScriptExecutionContext::canSuspendActiveDOMObjectsForDocumentSuspension(Vector<ActiveDOMObject*>* unsuspendableObjects) 180 180 { 181 181 checkConsistency(); … … 194 194 NoEventDispatchAssertion assertNoEventDispatch; 195 195 for (auto* activeDOMObject : m_activeDOMObjects) { 196 if (!activeDOMObject->canSuspendFor PageCache()) {196 if (!activeDOMObject->canSuspendForDocumentSuspension()) { 197 197 canSuspend = false; 198 198 if (unsuspendableObjects) -
trunk/Source/WebCore/dom/ScriptExecutionContext.h
r188388 r192848 86 86 87 87 // Active objects are not garbage collected even if inaccessible, e.g. because their activity may result in callbacks being invoked. 88 WEBCORE_EXPORT bool canSuspendActiveDOMObjectsFor PageCache(Vector<ActiveDOMObject*>* unsuspendableObjects = nullptr);89 90 // Active objects can be asked to suspend even if canSuspendActiveDOMObjectsFor PageCache() returns 'false' -88 WEBCORE_EXPORT bool canSuspendActiveDOMObjectsForDocumentSuspension(Vector<ActiveDOMObject*>* unsuspendableObjects = nullptr); 89 90 // Active objects can be asked to suspend even if canSuspendActiveDOMObjectsForDocumentSuspension() returns 'false' - 91 91 // step-by-step JS debugging is one example. 92 92 virtual void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension); -
trunk/Source/WebCore/fileapi/FileReader.cpp
r189485 r192848 66 66 } 67 67 68 bool FileReader::canSuspendFor PageCache() const68 bool FileReader::canSuspendForDocumentSuspension() const 69 69 { 70 70 // FIXME: It is not currently possible to suspend a FileReader, so pages with FileReader can not go into page cache. -
trunk/Source/WebCore/fileapi/FileReader.h
r189485 r192848 98 98 // ActiveDOMObject API. 99 99 const char* activeDOMObjectName() const override; 100 bool canSuspendFor PageCache() const override;100 bool canSuspendForDocumentSuspension() const override; 101 101 void stop() override; 102 102 -
trunk/Source/WebCore/history/CachedFrame.cpp
r192711 r192848 171 171 m_cachedFrameScriptData = std::make_unique<ScriptCachedFrameData>(frame); 172 172 173 m_document->domWindow()->suspendFor PageCache();173 m_document->domWindow()->suspendForDocumentSuspension(); 174 174 175 175 frame.loader().client().savePlatformDataToCachedFrame(this); -
trunk/Source/WebCore/history/PageCache.cpp
r188765 r192848 150 150 151 151 Vector<ActiveDOMObject*> unsuspendableObjects; 152 if (!frame.document()->canSuspendActiveDOMObjectsFor PageCache(&unsuspendableObjects)) {152 if (!frame.document()->canSuspendActiveDOMObjectsForDocumentSuspension(&unsuspendableObjects)) { 153 153 PCLOG(" -The document cannot suspend its active DOM Objects"); 154 154 for (auto* activeDOMObject : unsuspendableObjects) { -
trunk/Source/WebCore/html/HTMLMarqueeElement.cpp
r182544 r192848 167 167 } 168 168 169 bool HTMLMarqueeElement::canSuspendFor PageCache() const169 bool HTMLMarqueeElement::canSuspendForDocumentSuspension() const 170 170 { 171 171 return true; -
trunk/Source/WebCore/html/HTMLMarqueeElement.h
r189841 r192848 58 58 59 59 // ActiveDOMObject 60 virtual bool canSuspendFor PageCache() const override;60 virtual bool canSuspendForDocumentSuspension() const override; 61 61 virtual void suspend(ReasonForSuspension) override; 62 62 virtual void resume() override; -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r192711 r192848 4947 4947 } 4948 4948 4949 bool HTMLMediaElement::canSuspendFor PageCache() const4949 bool HTMLMediaElement::canSuspendForDocumentSuspension() const 4950 4950 { 4951 4951 return true; -
trunk/Source/WebCore/html/HTMLMediaElement.h
r192711 r192848 505 505 // ActiveDOMObject API. 506 506 const char* activeDOMObjectName() const override; 507 bool canSuspendFor PageCache() const override;507 bool canSuspendForDocumentSuspension() const override; 508 508 void suspend(ReasonForSuspension) override; 509 509 void resume() override; -
trunk/Source/WebCore/html/HTMLSourceElement.cpp
r187031 r192848 130 130 } 131 131 132 bool HTMLSourceElement::canSuspendFor PageCache() const132 bool HTMLSourceElement::canSuspendForDocumentSuspension() const 133 133 { 134 134 return true; -
trunk/Source/WebCore/html/HTMLSourceElement.h
r187031 r192848 55 55 // ActiveDOMObject. 56 56 const char* activeDOMObjectName() const override; 57 bool canSuspendFor PageCache() const override;57 bool canSuspendForDocumentSuspension() const override; 58 58 void suspend(ReasonForSuspension) override; 59 59 void resume() override; -
trunk/Source/WebCore/html/PublicURLManager.cpp
r190613 r192848 81 81 } 82 82 83 bool PublicURLManager::canSuspendFor PageCache() const83 bool PublicURLManager::canSuspendForDocumentSuspension() const 84 84 { 85 85 // Suspending an PublicURLManager is safe as it does not cause any JS to be executed. -
trunk/Source/WebCore/html/PublicURLManager.h
r182544 r192848 54 54 // ActiveDOMObject API. 55 55 void stop() override; 56 bool canSuspendFor PageCache() const override;56 bool canSuspendForDocumentSuspension() const override; 57 57 const char* activeDOMObjectName() const override; 58 58 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r192607 r192848 3928 3928 } 3929 3929 3930 bool WebGLRenderingContextBase::canSuspendFor PageCache() const3930 bool WebGLRenderingContextBase::canSuspendForDocumentSuspension() const 3931 3931 { 3932 3932 // FIXME: We should try and do better here. -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.h
r191049 r192848 385 385 virtual void stop() override; 386 386 virtual const char* activeDOMObjectName() const override; 387 bool canSuspendFor PageCache() const override;387 bool canSuspendForDocumentSuspension() const override; 388 388 389 389 void addSharedObject(WebGLSharedObject*); -
trunk/Source/WebCore/loader/FrameLoader.cpp
r192844 r192848 585 585 if (clearWindowProperties) { 586 586 InspectorInstrumentation::frameWindowDiscarded(&m_frame, m_frame.document()->domWindow()); 587 m_frame.document()->domWindow()->resetUnlessSuspendedFor PageCache();587 m_frame.document()->domWindow()->resetUnlessSuspendedForDocumentSuspension(); 588 588 m_frame.script().clearWindowShell(newDocument->domWindow(), m_frame.document()->inPageCache()); 589 589 } … … 2075 2075 2076 2076 m_frame.setDocument(document); 2077 document->domWindow()->resumeFrom PageCache();2077 document->domWindow()->resumeFromDocumentSuspension(); 2078 2078 2079 2079 updateFirstPartyForCookies(); -
trunk/Source/WebCore/loader/appcache/DOMApplicationCache.cpp
r191369 r192848 47 47 } 48 48 49 void DOMApplicationCache::disconnectFrameFor PageCache()49 void DOMApplicationCache::disconnectFrameForDocumentSuspension() 50 50 { 51 51 if (ApplicationCacheHost* cacheHost = applicationCacheHost()) 52 52 cacheHost->setDOMApplicationCache(nullptr); 53 DOMWindowProperty::disconnectFrameFor PageCache();53 DOMWindowProperty::disconnectFrameForDocumentSuspension(); 54 54 } 55 55 56 void DOMApplicationCache::reconnectFrameFrom PageCache(Frame* frame)56 void DOMApplicationCache::reconnectFrameFromDocumentSuspension(Frame* frame) 57 57 { 58 DOMWindowProperty::reconnectFrameFrom PageCache(frame);58 DOMWindowProperty::reconnectFrameFromDocumentSuspension(frame); 59 59 if (ApplicationCacheHost* cacheHost = applicationCacheHost()) 60 60 cacheHost->setDOMApplicationCache(this); -
trunk/Source/WebCore/loader/appcache/DOMApplicationCache.h
r181169 r192848 47 47 virtual ~DOMApplicationCache() { ASSERT(!m_frame); } 48 48 49 virtual void disconnectFrameFor PageCache() override;50 virtual void reconnectFrameFrom PageCache(Frame*) override;49 virtual void disconnectFrameForDocumentSuspension() override; 50 virtual void reconnectFrameFromDocumentSuspension(Frame*) override; 51 51 virtual void willDestroyGlobalObjectInFrame() override; 52 52 -
trunk/Source/WebCore/page/DOMWindow.cpp
r192582 r192848 394 394 , FrameDestructionObserver(document->frame()) 395 395 , m_shouldPrintWhenFinishedLoading(false) 396 , m_suspendedFor PageCache(false)396 , m_suspendedForDocumentSuspension(false) 397 397 , m_lastPageStatus(PageStatusNone) 398 398 , m_weakPtrFactory(this) … … 419 419 { 420 420 #ifndef NDEBUG 421 if (!m_suspendedFor PageCache) {421 if (!m_suspendedForDocumentSuspension) { 422 422 ASSERT(!m_screen); 423 423 ASSERT(!m_history); … … 441 441 #endif 442 442 443 if (m_suspendedFor PageCache)443 if (m_suspendedForDocumentSuspension) 444 444 willDestroyCachedFrame(); 445 445 else … … 543 543 } 544 544 545 void DOMWindow::resetUnlessSuspendedFor PageCache()546 { 547 if (m_suspendedFor PageCache)545 void DOMWindow::resetUnlessSuspendedForDocumentSuspension() 546 { 547 if (m_suspendedForDocumentSuspension) 548 548 return; 549 549 willDestroyDocumentInFrame(); … … 551 551 } 552 552 553 void DOMWindow::suspendFor PageCache()553 void DOMWindow::suspendForDocumentSuspension() 554 554 { 555 555 disconnectDOMWindowProperties(); 556 m_suspendedFor PageCache= true;557 } 558 559 void DOMWindow::resumeFrom PageCache()556 m_suspendedForDocumentSuspension = true; 557 } 558 559 void DOMWindow::resumeFromDocumentSuspension() 560 560 { 561 561 reconnectDOMWindowProperties(); 562 m_suspendedFor PageCache= false;562 m_suspendedForDocumentSuspension = false; 563 563 } 564 564 … … 566 566 { 567 567 // It is necessary to copy m_properties to a separate vector because the DOMWindowProperties may 568 // unregister themselves from the DOMWindow as a result of the call to disconnectFrameFor PageCache.568 // unregister themselves from the DOMWindow as a result of the call to disconnectFrameForDocumentSuspension. 569 569 Vector<DOMWindowProperty*> properties; 570 570 copyToVector(m_properties, properties); 571 571 for (auto& property : properties) 572 property->disconnectFrameFor PageCache();572 property->disconnectFrameForDocumentSuspension(); 573 573 } 574 574 575 575 void DOMWindow::reconnectDOMWindowProperties() 576 576 { 577 ASSERT(m_suspendedFor PageCache);577 ASSERT(m_suspendedForDocumentSuspension); 578 578 // It is necessary to copy m_properties to a separate vector because the DOMWindowProperties may 579 579 // unregister themselves from the DOMWindow as a result of the call to reconnectFromPageCache. … … 581 581 copyToVector(m_properties, properties); 582 582 for (auto& property : properties) 583 property->reconnectFrameFrom PageCache(m_frame);583 property->reconnectFrameFromDocumentSuspension(m_frame); 584 584 } 585 585 -
trunk/Source/WebCore/page/DOMWindow.h
r192354 r192848 120 120 void unregisterProperty(DOMWindowProperty*); 121 121 122 void resetUnlessSuspendedFor PageCache();123 void suspendFor PageCache();124 void resumeFrom PageCache();122 void resetUnlessSuspendedForDocumentSuspension(); 123 void suspendForDocumentSuspension(); 124 void resumeFromDocumentSuspension(); 125 125 126 126 PassRefPtr<MediaQueryList> matchMedia(const String&); … … 370 370 371 371 bool m_shouldPrintWhenFinishedLoading; 372 bool m_suspendedFor PageCache;372 bool m_suspendedForDocumentSuspension; 373 373 374 374 HashSet<DOMWindowProperty*> m_properties; -
trunk/Source/WebCore/page/DOMWindowExtension.cpp
r185231 r192848 44 44 } 45 45 46 void DOMWindowExtension::disconnectFrameFor PageCache()46 void DOMWindowExtension::disconnectFrameForDocumentSuspension() 47 47 { 48 48 // Calling out to the client might result in this DOMWindowExtension being destroyed … … 55 55 m_disconnectedFrame = frame; 56 56 57 DOMWindowProperty::disconnectFrameFor PageCache();57 DOMWindowProperty::disconnectFrameForDocumentSuspension(); 58 58 } 59 59 60 void DOMWindowExtension::reconnectFrameFrom PageCache(Frame* frame)60 void DOMWindowExtension::reconnectFrameFromDocumentSuspension(Frame* frame) 61 61 { 62 62 ASSERT(m_disconnectedFrame == frame); 63 63 64 DOMWindowProperty::reconnectFrameFrom PageCache(frame);64 DOMWindowProperty::reconnectFrameFromDocumentSuspension(frame); 65 65 m_disconnectedFrame = nullptr; 66 66 -
trunk/Source/WebCore/page/DOMWindowExtension.h
r177733 r192848 44 44 } 45 45 46 virtual void disconnectFrameFor PageCache() override;47 virtual void reconnectFrameFrom PageCache(Frame*) override;46 virtual void disconnectFrameForDocumentSuspension() override; 47 virtual void reconnectFrameFromDocumentSuspension(Frame*) override; 48 48 virtual void willDestroyGlobalObjectInCachedFrame() override; 49 49 virtual void willDestroyGlobalObjectInFrame() override; -
trunk/Source/WebCore/page/DOMWindowProperty.cpp
r185231 r192848 56 56 } 57 57 58 void DOMWindowProperty::disconnectFrameFor PageCache()58 void DOMWindowProperty::disconnectFrameForDocumentSuspension() 59 59 { 60 60 // If this property is being disconnected from its Frame to enter the PageCache, it must have … … 66 66 } 67 67 68 void DOMWindowProperty::reconnectFrameFrom PageCache(Frame* frame)68 void DOMWindowProperty::reconnectFrameFromDocumentSuspension(Frame* frame) 69 69 { 70 70 // If this property is being reconnected to its Frame to enter the PageCache, it must have -
trunk/Source/WebCore/page/DOMWindowProperty.h
r119136 r192848 36 36 explicit DOMWindowProperty(Frame*); 37 37 38 virtual void disconnectFrameFor PageCache();39 virtual void reconnectFrameFrom PageCache(Frame*);38 virtual void disconnectFrameForDocumentSuspension(); 39 virtual void reconnectFrameFromDocumentSuspension(Frame*); 40 40 virtual void willDestroyGlobalObjectInCachedFrame(); 41 41 virtual void willDestroyGlobalObjectInFrame(); -
trunk/Source/WebCore/page/EventSource.cpp
r192354 r192848 405 405 } 406 406 407 bool EventSource::canSuspendFor PageCache() const407 bool EventSource::canSuspendForDocumentSuspension() const 408 408 { 409 409 // FIXME: We should try and do better here. -
trunk/Source/WebCore/page/EventSource.h
r192354 r192848 91 91 void stop() override; 92 92 const char* activeDOMObjectName() const override; 93 bool canSuspendFor PageCache() const override;93 bool canSuspendForDocumentSuspension() const override; 94 94 95 95 void connect(); -
trunk/Source/WebCore/page/SuspendableTimer.cpp
r182544 r192848 85 85 } 86 86 87 bool SuspendableTimer::canSuspendFor PageCache() const87 bool SuspendableTimer::canSuspendForDocumentSuspension() const 88 88 { 89 89 return true; -
trunk/Source/WebCore/page/SuspendableTimer.h
r182544 r192848 61 61 bool hasPendingActivity() const override final; 62 62 void stop() override final; 63 bool canSuspendFor PageCache() const override final;63 bool canSuspendForDocumentSuspension() const override final; 64 64 void suspend(ReasonForSuspension) override final; 65 65 void resume() override final; -
trunk/Source/WebCore/workers/Worker.cpp
r190281 r192848 125 125 } 126 126 127 bool Worker::canSuspendFor PageCache() const127 bool Worker::canSuspendForDocumentSuspension() const 128 128 { 129 129 // FIXME: It is not currently possible to suspend a worker, so pages with workers can not go into page cache. -
trunk/Source/WebCore/workers/Worker.h
r184709 r192848 76 76 77 77 // ActiveDOMObject API. 78 bool canSuspendFor PageCache() const override;78 bool canSuspendForDocumentSuspension() const override; 79 79 void stop() override; 80 80 const char* activeDOMObjectName() const override; -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r192680 r192848 1247 1247 } 1248 1248 1249 bool XMLHttpRequest::canSuspendFor PageCache() const1249 bool XMLHttpRequest::canSuspendForDocumentSuspension() const 1250 1250 { 1251 1251 // If the load event has not fired yet, cancelling the load in suspend() may cause -
trunk/Source/WebCore/xml/XMLHttpRequest.h
r192680 r192848 149 149 // ActiveDOMObject 150 150 void contextDestroyed() override; 151 bool canSuspendFor PageCache() const override;151 bool canSuspendForDocumentSuspension() const override; 152 152 void suspend(ReasonForSuspension) override; 153 153 void resume() override; -
trunk/Source/WebKit/mac/ChangeLog
r192844 r192848 1 2015-11-30 Katlyn Graff <kgraff@apple.com> 2 3 Rename ActiveDOMObject/DOMWindow PageCacheSuspension code to support more reasons for suspension 4 https://bugs.webkit.org/show_bug.cgi?id=151677 5 6 Reviewed by Ryosuke Niwa. 7 8 * WebView/WebFrame.mm: 9 (-[WebFrame _cacheabilityDictionary]): 10 1 11 2015-11-30 Jiewen Tan <jiewen_tan@apple.com> 2 12 -
trunk/Source/WebKit/mac/WebView/WebFrame.mm
r192140 r192848 2054 2054 if (DatabaseManager::singleton().hasOpenDatabases(document)) 2055 2055 [result setObject:[NSNumber numberWithBool:YES] forKey:WebFrameUsesDatabases]; 2056 if (!document->canSuspendActiveDOMObjectsFor PageCache())2056 if (!document->canSuspendActiveDOMObjectsForDocumentSuspension()) 2057 2057 [result setObject:[NSNumber numberWithBool:YES] forKey:WebFrameCanSuspendActiveDOMObjects]; 2058 2058 }
Note: See TracChangeset
for help on using the changeset viewer.