Bug 28813 - REGRESSION: Debugger no longer lists all script sources
Summary: REGRESSION: Debugger no longer lists all script sources
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: http://testsuites.opera.com/JSON/corr...
Keywords:
: 31230 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-28 11:12 PDT by Oliver Hunt
Modified: 2014-01-12 16:12 PST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2009-08-28 11:12:26 PDT
The debugger no longer lists the full set of scripts that are available.

To Reproduce:
1. Go to http://testsuites.opera.com/JSON/correctness/004.html
2. Enable debugging
3. Look at the JS code drop down in the debugger window

In r47839 there are only 3 entries:
(program)
004.js
common.js

In 4.0.3 there is also
004.html (as this has script as well)
Comment 1 Pavel Feldman 2009-09-01 14:34:13 PDT
In addition to the problem reported, scripts do not have content available. The reason is that scripts are being reported as parsed prior to corresponding resources being reported as loaded. As a result, wrong viewer is being instantiated for the resource (resource type is "Other" during the parsedScript invocation).

[SubresourceLoader:137] m_client->didReceiveResponse(this, r); 
leads to InspectorController::didParseSource call, whereas

[SubresourceLoader:142] ResourceLoader::didReceiveResponse(r);
leads to the InspectorController::didReceiveResponse notification.

Frontend should either expect this order of events or notifications order should be fixed.

Timothy, what is your view on this?
Comment 2 Timothy Hatcher 2009-09-01 15:55:22 PDT
Yes, that is a correct diagnosis. This has been an issue from the beginning in some cases. But maybe it happens more now.

I think we can fix it either way. Might be easier to fix the order the InspectorController is notified.
Comment 3 Jon Evans 2009-11-04 05:31:21 PST
I think I'm seeing this bug. Scripts appear in the drop-down but don't display when you select them. Really frustrating if you're following code paths that span different js files.

Sometimes reloading the page helps, but not always.
Comment 4 Timothy Hatcher 2009-11-08 08:27:17 PST
*** Bug 31230 has been marked as a duplicate of this bug. ***
Comment 5 Alexey Proskuryakov 2009-11-08 11:42:26 PST
See also: bug 30506.