[Webkit-unassigned] [Bug 9895] Unloaded files still show in Drosera's file dropdown

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 30 23:32:06 PDT 2009


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





--- Comment #4 from Pavel Feldman <pfeldman at chromium.org>  2009-09-30 23:32:06 PDT ---
(In reply to comment #3)
> I don't know about "unloaded files" anymore but certainly every single time you
> execute a command in the Console a new "(program)" shows up in the Script's
> drop down list.  For example:
> http://grab.by/6X3
> 
> Note that you also see the Injected command line API:
> http://grab.by/6X4
> 
> Are these changes related to how InjectedScript works (pfeldman)?

Every time something is evaluated using console / watch expressions / any eval
in the inspected page, compile -> run takes place under the hood. It reports
compiled scripts to the inspector and hence they appear in the UI. Due to the
original bug described here, collected scripts are not removed from the
frontend.

We could wrap service evals and filter them from the UI, but that might lead to
the following problem. Imagine you override some function definition using
console (functionFoo = function() { do-something-new }). Then you debug the
control flow that is getting into this function. You'd like to have a snippet
available in the scripts list in order to step through it. So real solution to
this problem is to report collected scripts into the framework.

As a short term fix we could try marking these scripts as 'hidden', not adding
them into the scripts list, but displaying the snippet content when it is
present in a backtrace while debugging. Timothy, what do you think?

-- 
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