UserContentController should keep track of user scripts
[WebKit-https.git] / Source / WebCore / ChangeLog
index 5b33d07..b71250d 100644 (file)
@@ -1,7 +1,34 @@
 2014-01-20  Anders Carlsson  <andersca@apple.com>
 
+        UserContentController should keep track of user scripts
+        https://bugs.webkit.org/show_bug.cgi?id=127317
+        <rdar://problem/15861296>
+
+        Reviewed by Andreas Kling.
+
+        Move handling of user scripts from PageGroup to UserContentController.
+
+        * page/Frame.cpp:
+        (WebCore::Frame::injectUserScripts):
+        * page/PageGroup.cpp:
+        (WebCore::PageGroup::addUserScriptToWorld):
+        (WebCore::PageGroup::removeUserScriptFromWorld):
+        (WebCore::PageGroup::removeUserScriptsFromWorld):
+        (WebCore::PageGroup::removeAllUserContent):
+        * page/PageGroup.h:
+        * page/UserContentController.cpp:
+        (WebCore::UserContentController::addUserScript):
+        (WebCore::UserContentController::removeUserScript):
+        (WebCore::UserContentController::removeUserScripts):
+        (WebCore::UserContentController::removeAllUserContent):
+        * page/UserContentController.h:
+        (WebCore::UserContentController::userScripts):
+
+2014-01-20  Anders Carlsson  <andersca@apple.com>
+
         Give each page a UserContentController
         https://bugs.webkit.org/show_bug.cgi?id=127315
+        <rdar://problem/15861296>
 
         Reviewed by Andreas Kling.