I have two files: index.html and resource.js
After I modify resource.js, (dirty mark appears)
I clicked 'Download' for index.html.
But the following dialog pop-ups.
- If "Leave", error page is shown saying {"result":"failed","reason":"Not authorized."}
- If "Don't Leave", nothing happens

Please check.
I think it may be related with beforeunload handler.