Bug 58187 - Web Inspector: refactor / document call frames in debugger domain.
Summary: Web Inspector: refactor / document call frames in debugger domain.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 01:09 PDT by Pavel Feldman
Modified: 2011-04-11 04:45 PDT (History)
12 users (show)

See Also:


Attachments
Patch (10.78 KB, patch)
2011-04-09 01:21 PDT, Pavel Feldman
no flags Details | Formatted Diff | Diff
Patch (10.60 KB, patch)
2011-04-11 02:13 PDT, Pavel Feldman
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Feldman 2011-04-09 01:09:18 PDT
Patch to follow. Note that it regresses visual representation a bit: we are not special casing with(element) and with(document) anymore and do not tell user that it is "Event target" and "Event document". However, strictly speaking, we should not have done it for with(element) not necessarily related to an event.
Comment 1 Pavel Feldman 2011-04-09 01:21:40 PDT
Created attachment 88925 [details]
Patch
Comment 2 Yury Semikhatsky 2011-04-10 23:40:40 PDT
Comment on attachment 88925 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=88925&action=review

> Source/WebCore/inspector/InjectedScriptSource.js:-513
> -                        scopeObjectProxy.isElement = true;

We should be able to figure it out on the front-end side and avoid the regression.

> Source/WebCore/inspector/front-end/ScopeChainSidebarPane.js:100
> +            if (scope.type !== "global") {

This way you won't expand global scope when it is the only one. This is a regression.
Comment 3 Pavel Feldman 2011-04-11 02:13:11 PDT
Created attachment 88977 [details]
Patch
Comment 4 Early Warning System Bot 2011-04-11 03:19:16 PDT
Attachment 88977 [details] did not build on qt:
Build output: http://queues.webkit.org/results/8376824
Comment 5 Csaba Osztrogonác 2011-04-11 03:52:55 PDT
(In reply to comment #4)
> Attachment 88977 [details] did not build on qt:
> Build output: http://queues.webkit.org/results/8376824

It was a false positive alarm, sorry for the inconvenience.

I fixed the Qt EWS, and tried to build this patch manually,
and it works for me. ;)
Comment 6 Pavel Feldman 2011-04-11 04:45:26 PDT
Committed r83434: <http://trac.webkit.org/changeset/83434>