RESOLVED FIXED 201042
Web Inspector: REGRESSION(r248485): stack overflow when viewing a source map generated from inline content
https://bugs.webkit.org/show_bug.cgi?id=201042
Summary Web Inspector: REGRESSION(r248485): stack overflow when viewing a source map ...
Devin Rousso
Reported 2019-08-22 09:46:02 PDT
RangeError:​ Maximum call stack size exceeded. (at Object.js:​172:​17)​ dispatchEventToListeners @ Object.js:​172:​17 markAsFinished @ Resource.js:​894:​38 sourceMapResourceLoaded @ SourceMapResource.js:​121:​32 requestContent @ SourceCode.js:​140:​100 _tryEnableCustomResponseContentView @ ResourceClusterContentView.js:​371:​38 _resourceLoadingDidFinish @ ResourceClusterContentView.js:​331:​49 dispatch @ Object.js:​165:​30 dispatchEventToListeners @ Object.js:​172:​17 markAsFinished @ Resource.js:​894:​38 sourceMapResourceLoaded @ SourceMapResource.js:​121:​32 requestContent @ SourceCode.js:​140:​100 _tryEnableCustomResponseContentView @ ResourceClusterContentView.js:​371:​38 _resourceLoadingDidFinish @ ResourceClusterContentView.js:​331:​49 dispatch @ Object.js:​165:​30 dispatchEventToListeners @ Object.js:​172:​17 markAsFinished @ Resource.js:​894:​38 ...
Attachments
Patch (2.50 KB, patch)
2019-08-22 10:01 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-08-22 09:46:12 PDT
Devin Rousso
Comment 2 2019-08-22 10:01:46 PDT
Created attachment 377019 [details] Patch I haven't tested this, as I am in the middle of a build, but logically this should work :P
Joseph Pecoraro
Comment 3 2019-08-22 13:57:54 PDT
Comment on attachment 377019 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377019&action=review > Source/WebInspectorUI/UserInterface/Models/SourceMapResource.js:87 > + return Promise.resolve().then(sourceMapResourceLoaded.bind(this, {content: inlineContent, mimeType: this.mimeType, statusCode: 200})); I like this solution! I noticed this the other day and did something similar but this is even better!
WebKit Commit Bot
Comment 4 2019-08-22 18:07:48 PDT
Comment on attachment 377019 [details] Patch Clearing flags on attachment: 377019 Committed r249037: <https://trac.webkit.org/changeset/249037>
WebKit Commit Bot
Comment 5 2019-08-22 18:07:50 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.