[Webkit-unassigned] [Bug 53497] Web Inspector: do not hide scope variables with command line api.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 1 16:40:51 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=53497





--- Comment #3 from Patrick Mueller <pmuellr at yahoo.com>  2011-02-01 16:40:51 PST ---
(In reply to comment #2)
> If the fact that a value can be shadowed can be detected, then I think we could ask for disambiguation from the user (with a little popup menu?).
> 
> Stuffing the API in some object just makes it harder to have a collision, not impossible ;)

If the user shadows "console" with their own variable, they have bigger problems than shadowed functions from the console command-line.  eg, they won't be able to console.log().  "console" seems like a pretty safe namespace to hang some more debug API on.

The only thing I don't like about it, is that it make the name of something like "keys()" longer - "console.keys()".  But since it's something needed only for shadowed command-line APIs, don't think the long-form would get used much; nice to know it's there - but I will likely forget.  :-)

I wonder also about maybe having some kind of command-line prefix that would change the behavior.  For instance, if the first char in the command-line input is a ".", then don't use the command-line API when invoking the command.  Or something.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list