New issue
Advanced search Search tips

Issue 759513 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 2
Type: Bug



Sign in to add a comment

Closing the Developer Tools feature discards any unsaved snippet

Project Member Reported by phistuck@gmail.com, Aug 28 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36

Steps to reproduce the problem:
1. Create a snippet.
2. Write some code in it.
3. Accidentally (:)) close the Developer Tools feature.

What is the expected behavior?
"Do you want to discard your snippet?"

What went wrong?
I have to write my long and sophisticated snippet again because of my mistake. Help me. :)

Did this work before? N/A 

Chrome version: 60.0.3112.78  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

Using the Developer Tools on the Developer Tools, I added onbeforeunload and it worked, so perhaps it can be leveraged as a start (and switch the focus to the Sources panel and the last unsaved snippet).
 

Comment 1 by phistuck@gmail.com, Aug 28 2017

Related -
Issues 755075, 249030,  631459 .

Labels: OS-Android OS-Chrome OS-Fuchsia OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
adel
Owner: einbinder@chromium.org
Status: Assigned (was: Untriaged)
We should extend our onbeforeunload logic to the snippets.

Sign in to add a comment