Summary: | Web Inspector: error when expanding an HTMLAllCollection object in the console | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yury Semikhatsky <yurys> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Yury Semikhatsky <yurys> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Yury Semikhatsky
2012-05-17 08:38:55 PDT
Created attachment 142482 [details]
Patch
Committed r117454: <http://trac.webkit.org/changeset/117454> Comment on attachment 142482 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142482&action=review > Source/WebCore/inspector/InjectedScriptSource.js:274 > + if (!this._isDefined(object)) Should we also modify the code below in the same way: 287 var resolvedArg = this._objectForId(parsedArgId); 288 if (!resolvedArg) 289 return "Could not find object with given id"; ? Otherwise, although this does fix the original problem, but for example setting a property to a document.all still is not working. Scenario to repro this in DevTools: 1) type in console "var a = {foo:123}; a;" 2) expand the result, double click on "123", and write "document.all" 3) observe the live edit getting ignored (unlike, for example, "document.all[0]") - I guess this is because of line 288 as I pointed out Reopening to attach new patch. Created attachment 142725 [details]
Patch
(In reply to comment #5) > Created an attachment (id=142725) [details] > Patch This patch addresses the problem pointed out by Andrey. Committed r117599: <http://trac.webkit.org/changeset/117599> |