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

Issue 804098 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Refresh warning doesnt show up when refreshing in the developer tools

Reported by smok...@roc-dev.com, Jan 20 2018

Issue description

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

Steps to reproduce the problem:
1. I made a javascript warning that warns the user when refreshing the page:
window.onbeforeunload = function()
{
    return "";
};
2. It works.

What is the expected behavior?
show a popup warning to warn user that he is refreshing the page, It works

What went wrong?
but when i click on the developer tools (f12) and then refresh it bypasses the warning

Did this work before? N/A 

Chrome version: 63.0.3239.132  Channel: stable
OS Version: 10.0
Flash Version:
 
Cc: sc00335...@techmahindra.com
Components: Platform>DevTools>Authoring
Labels: Needs-Triage-M63 Triaged-ET Needs-Feedback
Tested this issue with below steps on reported version 63.0.3239.132 using windows 10 and unable to reproduce this issue.

1. Launched chrome and opened devtools console. Pasted window.onbeforeunload = function()
{
    return "";
}; in dev console.
2. Now selected outer page and reloaded page -- observed warning showing whether to reload or not
3. Now clicked inside console and reloaded page -- even now observed popup. Attaching screencast for reference.

@Reporter: Please check the video and let us know if we miss anything. This would help in further triaging of the issue.

Thanks!


Comment 2 by smok...@roc-dev.com, Jan 22 2018

After retrying it is seems that it works like normal and the warning shows up.
Sorry about wasting time :/

please lock it or mark it as solved.
Project Member

Comment 3 by sheriffbot@chromium.org, Jan 22 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sc00335628@techmahindra.com" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by kozy@chromium.org, Jan 22 2018

Status: WontFix (was: Unconfirmed)

Sign in to add a comment