NV / chrome-devtools-autosave

Auto-saving CSS and JavaScript changes from the Chrome Developer Tools
MIT License
1.05k stars 90 forks source link

Excess tabs characters added, can result in browser freeze #61

Closed zemaj closed 8 years ago

zemaj commented 12 years ago

I've been using autosave for many versions and occasionally hit up against a rare issue where it would put too many tabs into saved updates. If I kept editing the file, eventually autosave would get itself into a loop where it would cause the browser to hang.

I've finally been able to consistently reproduce it. Say we have this CSS.

.quote {
    color: red;
}

Now add a tab after the opening bracket on first line, save and open a page using the css file in chrome. At this point if any new properties to the .quote expression, when autosave saves the updates, additional tabs will be added to the start of the new property. Every time you change this property additional tabs are added with their number increasing exponentially each time. It only take a few updates and my browser will hang with the load.

I'm using Chrome 20 in OsX 10.7.4

NV commented 12 years ago

I recorded a screencast of me trying to reproduce the bug. All work well for me.