DevTools: [sources] fails to load sometimes. mimeType.indexOf error.
Reported by
xob....@gmail.com,
Jun 23 2016
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2763.0 Safari/537.36
Steps to reproduce the problem:
It may caught by adding too many script snippets. I tried to reproduce this by adding a lot of snippets but failed.
Or it may caught by the size of the snippets.
What is the expected behavior?
What went wrong?
This is a snippet I found in dev tools' localStorage['previouslyViewedFiles']
{
"url": "Script snippet #143",
"selectionRange": {
"startLine": 14,
"startColumn": 33,
"endLine": 14,
"endColumn": 33
}
},
{
"url": "Script snippet #142"
}
My question is: since the source tab is crashed, how can I export my snippets now?
https://github.com/bgrins/devtools-snippets
This tool is not available now, the snippets are not stored in the localStorage.
Did this work before? N/A
Chrome version: 53.0.2763.0 Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0
,
Jul 1 2016
Here's the other technique for exporting: https://github.com/bahmutov/code-snippets/issues/23 But looks like somehow you're finding a way to create a sourceFrame that has no mimeType. Interesting.. we can fix that.
,
Jul 1 2016
,
Jul 6 2016
,
Jul 8 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/14c7fe37a4c3821328e4f930626cc60616b1f14e commit 14c7fe37a4c3821328e4f930626cc60616b1f14e Author: einbinder <einbinder@chromium.org> Date: Fri Jul 08 01:20:19 2016 DevTools: Convert mimeTypeByExtension and mimeTypeByName to Map Filenames corresponding to Object properties would return functions instead of undefined BUG= 622644 Review-Url: https://codereview.chromium.org/2126973002 Cr-Commit-Position: refs/heads/master@{#404299} [modify] https://crrev.com/14c7fe37a4c3821328e4f930626cc60616b1f14e/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model-expected.txt [modify] https://crrev.com/14c7fe37a4c3821328e4f930626cc60616b1f14e/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html [modify] https://crrev.com/14c7fe37a4c3821328e4f930626cc60616b1f14e/third_party/WebKit/Source/devtools/front_end/common/ResourceType.js
,
Jul 8 2016
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by xob....@gmail.com
, Jun 24 2016