Changeset 80623 in webkit
- Timestamp:
- Mar 8, 2011 10:32:41 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r80622 r80623 1 2011-03-08 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: remove groupName from objectId. 6 https://bugs.webkit.org/show_bug.cgi?id=55825 7 8 * inspector/protocol/runtime-agent-expected.txt: 9 1 10 2011-03-08 Xiaomei Ji <xji@chromium.org> 2 11 -
trunk/LayoutTests/inspector/protocol/runtime-agent-expected.txt
r80349 r80623 24 24 injectedScriptId : <number> 25 25 id : <number> 26 groupName : "test"27 26 } 28 27 type : "object" … … 34 33 35 34 ----------------------------------------------------------- 36 RuntimeAgent.evaluateOn({"injectedScriptId":<number>,"id":<number> ,"groupName":"test"},"this.assignedByEvaluateOn = \"evaluateOn function works fine\";")35 RuntimeAgent.evaluateOn({"injectedScriptId":<number>,"id":<number>},"this.assignedByEvaluateOn = \"evaluateOn function works fine\";") 37 36 38 37 request: … … 45 44 injectedScriptId : <number> 46 45 id : <number> 47 groupName : "test"48 46 } 49 47 expression : "this.assignedByEvaluateOn = "evaluateOn function works fine";" … … 65 63 66 64 ----------------------------------------------------------- 67 RuntimeAgent.setPropertyValue({"injectedScriptId":<number>,"id":<number> ,"groupName":"test"},"assignedBySetPropertyValue","true")65 RuntimeAgent.setPropertyValue({"injectedScriptId":<number>,"id":<number>},"assignedBySetPropertyValue","true") 68 66 69 67 request: … … 76 74 injectedScriptId : <number> 77 75 id : <number> 78 groupName : "test"79 76 } 80 77 propertyName : "assignedBySetPropertyValue" … … 92 89 93 90 ----------------------------------------------------------- 94 RuntimeAgent.setPropertyValue({"injectedScriptId":<number>,"id":<number> ,"groupName":"test"},"removedBySetPropertyValue","")91 RuntimeAgent.setPropertyValue({"injectedScriptId":<number>,"id":<number>},"removedBySetPropertyValue","") 95 92 96 93 request: … … 103 100 injectedScriptId : <number> 104 101 id : <number> 105 groupName : "test"106 102 } 107 103 propertyName : "removedBySetPropertyValue" … … 119 115 120 116 ----------------------------------------------------------- 121 RuntimeAgent.getProperties({"injectedScriptId":<number>,"id":<number> ,"groupName":"test"},false,false)117 RuntimeAgent.getProperties({"injectedScriptId":<number>,"id":<number>},false,false) 122 118 123 119 request: … … 130 126 injectedScriptId : <number> 131 127 id : <number> 132 groupName : "test"133 128 } 134 129 ignoreHasOwnProperty : false … … 166 161 injectedScriptId : <number> 167 162 id : <number> 168 groupName : "test"169 163 } 170 164 type : "object" … … 178 172 179 173 ----------------------------------------------------------- 180 RuntimeAgent.releaseObject({"injectedScriptId":<number>,"id":<number> ,"groupName":"test"})174 RuntimeAgent.releaseObject({"injectedScriptId":<number>,"id":<number>}) 181 175 182 176 request: … … 189 183 injectedScriptId : <number> 190 184 id : <number> 191 groupName : "test"192 185 } 193 186 } -
trunk/Source/WebCore/ChangeLog
r80622 r80623 1 2011-03-08 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: remove groupName from objectId. 6 https://bugs.webkit.org/show_bug.cgi?id=55825 7 8 * inspector/InjectedScriptSource.js: 9 1 10 2011-03-08 Xiaomei Ji <xji@chromium.org> 2 11 -
trunk/Source/WebCore/inspector/InjectedScriptSource.js
r80349 r80623 47 47 this._lastBoundObjectId = 1; 48 48 this._idToWrappedObject = {}; 49 this._idToObjectGroupName = {}; 49 50 this._objectGroups = {}; 50 51 } … … 105 106 } 106 107 group.push(id); 107 objectId.groupName= objectGroupName;108 this._idToObjectGroupName[id] = objectGroupName; 108 109 } 109 110 } … … 125 126 return; 126 127 for (var i = 0; i < group.length; i++) 127 delete this._idToWrappedObject[group[i]];128 this._releaseObject(group[i]); 128 129 delete this._objectGroups[objectGroupName]; 129 130 }, … … 144 145 var parsedObjectId = this._parseObjectId(objectId); 145 146 var object = this._objectForId(parsedObjectId); 147 var objectGroupName = this._idToObjectGroupName[parsedObjectId.id]; 146 148 147 149 if (!this._isDefined(object)) … … 162 164 if (!isGetter) { 163 165 try { 164 property.value = this._wrapObject(object[propertyName], parsedObjectId.groupName, abbreviate);166 property.value = this._wrapObject(object[propertyName], objectGroupName, abbreviate); 165 167 } catch(e) { 166 168 property.value = new InjectedScript.RemoteObject.fromException(e); … … 214 216 { 215 217 var parsedObjectId = this._parseObjectId(objectId); 216 delete this._idToWrappedObject[parsedObjectId.id]; 218 this._releaseObject(parsedObjectId.id); 219 }, 220 221 _releaseObject: function(id) 222 { 223 delete this._idToWrappedObject[id]; 224 delete this._idToObjectGroupName[id]; 217 225 }, 218 226
Note: See TracChangeset
for help on using the changeset viewer.