Unreviewed, add comment to make it clearer that the code restored in r254857 is not...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jan 2020 17:55:47 +0000 (17:55 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jan 2020 17:55:47 +0000 (17:55 +0000)
* page/DOMWindow.cpp:
(WebCore::DOMWindow::prewarmLocalStorageIfNecessary):

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

Source/WebCore/ChangeLog
Source/WebCore/page/DOMWindow.cpp

index 5c0c777..a132ddf 100644 (file)
@@ -1,5 +1,12 @@
 2020-01-21  Chris Dumez  <cdumez@apple.com>
 
+        Unreviewed, add comment to make it clearer that the code restored in r254857 is not dead
+
+        * page/DOMWindow.cpp:
+        (WebCore::DOMWindow::prewarmLocalStorageIfNecessary):
+
+2020-01-21  Chris Dumez  <cdumez@apple.com>
+
         Unreviewed, rolling out r254753.
 
         It turns out this is not dead code
index ad9ad13..295540d 100644 (file)
@@ -450,6 +450,7 @@ void DOMWindow::prewarmLocalStorageIfNecessary()
     if (!page->mainFrame().mayPrewarmLocalStorage())
         return;
 
+    // This eagerly constructs the StorageArea, which will load items from disk.
     auto localStorageResult = this->localStorage();
     if (localStorageResult.hasException())
         return;