[Webkit-unassigned] [Bug 95954] New: Web Inspector: [REGRESSION] Content is not available for dynamically loaded script sometimes.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 6 02:02:31 PDT 2012


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

           Summary: Web Inspector: [REGRESSION] Content is not available
                    for dynamically loaded script sometimes.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vsevik at chromium.org
                CC: timothy at apple.com, rik at webkit.org, keishi at webkit.org,
                    pmuellr at yahoo.com, joepeck at webkit.org,
                    pfeldman at chromium.org, yurys at chromium.org,
                    bweinstein at apple.com, apavlov at chromium.org,
                    loislo at chromium.org


Reproduction scenario:

1. Script element with src attribute is inserted in the page dynamically.
2. Corresponding resource is added to inspector.
3. CachedResource is garbage collected by CachedResourceLoader once its loading is finished (See m_document->cachedResourceLoader()->loadDone(); call in SubresourceLoader::releaseResources())
4. After some more loading happening the corresponding Cachedresource is evicted from memory cache.
5. from this moment on it is not possible to get resource content via PageAgent, we can only use NetworkAgent for that.

This has become a major problem since web developers are switching to RequireJS to load dependencies which is using script element with src approach to load scripts dynamically.

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