DevTools clears before the onbeforeunload handler is closed
Reported by
aroseme...@gmail.com,
May 8 2017
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36 Steps to reproduce the problem: 1. Open devtools 2. Load a page that has an onbeforeunload handler that stops you from leaving the page 3. Attempt to exit the page 4. Press stay on the confirm box What is the expected behavior? All the logged data stays because you didn't leave the page. What went wrong? All data is lost if preserve log isn't enabled. Did this work before? No Chrome version: 58.0.3029.96 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 25.0 r0 DevTools should wait until the onbeforeunload confirm box is closed before deciding if it should clear the data or not.
,
May 8 2017
Could you please provide us with a sample testcase for the ease of reproducing.
,
May 8 2017
I've attached an example. Steps to reproduce: - open chrome - open the devtools (f12) - go to the network tab - open the file attached (example.htm), the network tab will look like exhibit_1.png - try to refresh the page (f5, ctrl + r, etc...) - press don't reload on the confirm box after these steps the network tab is completely cleared along other data in other tabs, the correct behavior would be to keep the data until the page is actually reloaded, not before the confirm box
,
May 8 2017
Great, Thanks! We will investigate further.
,
May 9 2017
Tested in chrome stable #58.0.3029.96 and canary #60.0.3094.0 on Win 10.0 & 7 able to reproduce the issue.Below are the Bisect Details: Bisect Info: ============= Good Build: 46.0.2484.0 (Revision - 343549) Bad Build: 46.0.2485.0 (Revision - 343613) Bisect URL: =========== You are probably looking for a change made after 343604 (known good), but no later than 343608 (first known bad). CHANGELOG URL: https://chromium.googlesource.com/chromium/src/+log/5ec12d3b0796e893728999e9d0e25e2e3d6731b4..3030f314d43c2ca51cff507f92911e03067dbecf From the CL above, assigning the issue to the concern owner @dgozman: Could you please look into the issue, pardon me if it has nothing to do with your changes and if possible please assign it to concern owner. Review-Url:https://codereview.chromium.org/1292403004 Note: Able to reproduce the issue in Mac 10.12.3 & Ubuntu 14.04.
,
Oct 31
Bulk closing low-priority issues with no activity. Please re-file and refer to the closed issue if it's essential to fix. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by aroseme...@gmail.com
, May 8 2017