Title: [140893] trunk/Source/WebCore
Revision
140893
Author
[email protected]
Date
2013-01-25 17:42:02 -0800 (Fri, 25 Jan 2013)

Log Message

Remove InjectedScript::wrapSerializedObject()
https://bugs.webkit.org/show_bug.cgi?id=107906

Reviewed by Abhishek Arya.

InjectedScript::wrapSerializedObject() is unused.
(This is one of steps to remove raw pointers of SerializedScriptValue*,
which can be a security concern.)

* inspector/InjectedScript.cpp:
* inspector/InjectedScript.h:
(InjectedScript):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (140892 => 140893)


--- trunk/Source/WebCore/ChangeLog	2013-01-26 01:38:05 UTC (rev 140892)
+++ trunk/Source/WebCore/ChangeLog	2013-01-26 01:42:02 UTC (rev 140893)
@@ -1,5 +1,20 @@
 2013-01-25  Kentaro Hara  <[email protected]>
 
+        Remove InjectedScript::wrapSerializedObject()
+        https://bugs.webkit.org/show_bug.cgi?id=107906
+
+        Reviewed by Abhishek Arya.
+
+        InjectedScript::wrapSerializedObject() is unused.
+        (This is one of steps to remove raw pointers of SerializedScriptValue*,
+        which can be a security concern.)
+
+        * inspector/InjectedScript.cpp:
+        * inspector/InjectedScript.h:
+        (InjectedScript):
+
+2013-01-25  Kentaro Hara  <[email protected]>
+
         Keep a RefPtr<SerializedScriptValue*> when we call serialize()/deserialize() in code generators
         https://bugs.webkit.org/show_bug.cgi?id=107902
 

Modified: trunk/Source/WebCore/inspector/InjectedScript.cpp (140892 => 140893)


--- trunk/Source/WebCore/inspector/InjectedScript.cpp	2013-01-26 01:38:05 UTC (rev 140892)
+++ trunk/Source/WebCore/inspector/InjectedScript.cpp	2013-01-26 01:42:02 UTC (rev 140893)
@@ -222,12 +222,6 @@
     return wrapObject(nodeAsScriptValue(node), groupName);
 }
 
-PassRefPtr<TypeBuilder::Runtime::RemoteObject> InjectedScript::wrapSerializedObject(SerializedScriptValue* serializedScriptValue, const String& groupName) const
-{
-    ScriptValue scriptValue = serializedScriptValue->deserializeForInspector(scriptState());
-    return scriptValue.hasNoValue() ? 0 : wrapObject(scriptValue, groupName);
-}
-
 ScriptValue InjectedScript::findObjectById(const String& objectId) const
 {
     ASSERT(!hasNoValue());

Modified: trunk/Source/WebCore/inspector/InjectedScript.h (140892 => 140893)


--- trunk/Source/WebCore/inspector/InjectedScript.h	2013-01-26 01:38:05 UTC (rev 140892)
+++ trunk/Source/WebCore/inspector/InjectedScript.h	2013-01-26 01:42:02 UTC (rev 140893)
@@ -92,7 +92,6 @@
 
     PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue&, const String& groupName, bool generatePreview = false) const;
     PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapNode(Node*, const String& groupName);
-    PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapSerializedObject(SerializedScriptValue*, const String& groupName) const;
     ScriptValue findObjectById(const String& objectId) const;
 
     void inspectNode(Node*);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to