[Webkit-unassigned] [Bug 101963] New: [WebInspector] Uncaught TypeError: Cannot call method 'isInlineScript' of undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 12 12:07:29 PST 2012


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

           Summary: [WebInspector] Uncaught TypeError: Cannot call method
                    'isInlineScript' of undefined
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: johnjbarton at chromium.org
                CC: keishi at webkit.org, pmuellr at yahoo.com,
                    pfeldman at chromium.org, yurys at chromium.org,
                    apavlov at chromium.org, loislo at chromium.org,
                    vsevik at chromium.org,
                    web-inspector-bugs at googlegroups.com


This is a new exception introduced within the last 7 days on WebKit master

WebInspector.ResourceScriptMapping._createUISourceCode (ResourceScriptMapping.js:224)
WebInspector.ResourceScriptMapping._getOrCreateTemporaryUISourceCode (ResourceScriptMapping.js:243)
WebInspector.ResourceScriptMapping.rawLocationToUILocation (ResourceScriptMapping.js:61)
WebInspector.Script.rawLocationToUILocation (Script.js:189)
WebInspector.Script.Location.uiLocation (Script.js:238)
WebInspector.LiveLocation.update (UISourceCode.js:662)
WebInspector.Script.createLiveLocation (Script.js:213)
WebInspector.Linkifier.linkifyRawLocation (Linkifier.js:83)
WebInspector.Linkifier.linkifyLocation (Linkifier.js:69)
WebInspector.ConsoleMessageImpl._linkifyLocation (ConsoleMessage.js:183)
WebInspector.ConsoleMessageImpl._formatMessage (ConsoleMessage.js:133)
formattedMessage (ConsoleMessage.js:174)
WebInspector.ConsoleMessageImpl.toMessageElement (ConsoleMessage.js:615)
WebInspector.ConsoleGroup.addMessage (ConsoleView.js:713)
WebInspector.ConsoleView._appendConsoleMessage (ConsoleView.js:414)
WebInspector.ConsoleView._consoleMessageAdded (ConsoleView.js:391)
WebInspector.Object.dispatchEventToListeners (Object.js:101)
WebInspector.ConsoleModel.addMessage (ConsoleModel.js:80)
WebInspector.ConsoleDispatcher.messageAdded (ConsoleModel.js:279)
InspectorBackendClass.dispatch (InspectorBackend.js:233)
WebInspector.socket.onmessage (inspector.js:332)


    _getOrCreateTemporaryUISourceCode: function(script)
    {
        var temporaryUISourceCode = this._temporaryUISourceCodeForScriptId[script.scriptId];
        if (temporaryUISourceCode)
            return temporaryUISourceCode;

        var scripts = script.isInlineScript() ? this._scriptsForSourceURL(script.sourceURL, true) : [script];

script.isInlineScript() is true, this.scripts[] has zero length

        temporaryUISourceCode = this._createUISourceCode(scripts);
...

    _createUISourceCode: function(scripts, divergedVersion)
    {
        var script = scripts[0];
        var contentProvider = script.isInlineScript() ? new WebInspector.ConcatenatedScriptsContentProvider(scripts) : script;

scripts has length 0, script is undefined.

I am issuing reload Control + R in Chrome devtools. Seems like it could be timing sensitive, it does not happen every time.

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