New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 622644 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

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
 
source tab crashed in dev tools.png
151 KB View Download

Comment 1 by xob....@gmail.com, Jun 24 2016

WebInspector.scriptSnippetModel._snippetStorage._snippets

I finally found all my Snippets in this object.
And exported to a text file.
Cc: lushnikov@chromium.org
Owner: einbinder@chromium.org
Status: Assigned (was: Unconfirmed)
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.


Screen Shot 2016-07-01 at 3.19.23 PM.png
43.3 KB View Download
Summary: DevTools: [sources] fails to load sometimes. mimeType.indexOf error. (was: Source Tab crashes)
Status: Started (was: Assigned)
Status: Fixed (was: Started)

Sign in to add a comment