Scripts panel without folders causes errors when creating content scripts section. "Uncaught TypeError: Cannot call method 'localeCompare' of undefined", source: chrome-devtools://devtools/ScriptsPanel.js (312) optionCompare() at ScriptsPanel.js:312 binarySearch() at BinarySearch.js:39 insertionIndexForObjectInListSortedByFunction() at BinarySearch.js:60 insertOrdered() at ScriptsPanel.js:314 WebInspector.ScriptsPanel._addOptionToFilesSelect() at ScriptsPanel.js:326 WebInspector.ScriptsPanel._showScriptFoldersSettingChanged() at ScriptsPanel.js:265 bound() at utilities.js:40 WebInspector.Object.dispatchEventToListeners() at Object.js:93 WebInspector.Setting.set() at Settings.js:157 listener() at SettingsScreen.js:101
Created attachment 108712 [details] Patch
Content scripts should be tested LayoutTests/inspector/debugger/scripts-sorting.html
Comment on attachment 108712 [details] Patch We should support content script section in both modes.
Should we? They are already highlighted in blue. Showing a separate section makes typing in file selector useless for content scripts. Anyway, currently they are not shown at all.
Created attachment 108857 [details] Patch
Comment on attachment 108857 [details] Patch Looks good.
Comment on attachment 108857 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=108857&action=review > LayoutTests/inspector/debugger/scripts-sorting.html:30 > + addOption("*Non*URL*path"); Move this string into the array. > LayoutTests/inspector/debugger/scripts-sorting.html:37 > + addOption("*Non*URL*path", true); Ditto.
Committed r96319: <http://trac.webkit.org/changeset/96319>