RESOLVED FIXED 54961
Web Inspector: refactor "script or resource" mess in scripts panel
https://bugs.webkit.org/show_bug.cgi?id=54961
Summary Web Inspector: refactor "script or resource" mess in scripts panel
Pavel Podivilov
Reported 2011-02-22 08:27:52 PST
Web Inspector: refactor "script or resource" mess in scripts panel. - use sourceName instead of scriptOrResource - replace two huge functions _addScriptToFilesMenu and _showScriptOrResource that are calling each other recursively with small one-purpose non-recursive functions
Attachments
Patch. (31.93 KB, patch)
2011-02-22 08:29 PST, Pavel Podivilov
pfeldman: review+
Pavel Podivilov
Comment 1 2011-02-22 08:29:12 PST
Pavel Feldman
Comment 2 2011-02-22 12:33:02 PST
Comment on attachment 83320 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=83320&action=review r+ with nits and request for tests. > LayoutTests/inspector/debugger/scripts-panel.html:30 > + InspectorTest.runDebuggerTestSuite([ InspectorTest.runTestSuite ? > Source/WebCore/inspector/front-end/ScriptsPanel.js:335 > + // 1) Added script url is the first item in files select Can you add tests for these? (I.e. make sure SourceFrame is not created). There was a huge regression once in this logic. > Source/WebCore/inspector/front-end/ScriptsPanel.js:540 > + _showSourceFrame: function(sourceName, addToBackForwardList, saveAsLastViewedScriptFile) saveAsLastViewedScriptFile -> userGesture? Aslo, I'd prefer couple of wrapper functions with sound names instead of these two boolean params all over the calling code.
Pavel Podivilov
Comment 3 2011-02-24 06:38:41 PST
Note You need to log in before you can comment on or make changes to this bug.