Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPanic with window.close() while loading #4690
Comments
|
Specifically, in this comment. |
|
Checked that this crash occurs only if "window.close()" is called after startup. If we close window by clicking on button with "onclick="window.close()", window closes properly. Stack trace from gdb: |
|
@dmarcos Oooh, we found a way to reproduce the failure :D |
|
The double-borrow should be avoided by #4692. |
|
@jdm I added a window.close() to my test page: https://dl.dropboxusercontent.com/u/4710867/v3brainstorming/template/index.html I'm definitely seeing "DOMRefCell already mutably borrowed...". Below the log I'm getting after running ./mach run https://dl.dropboxusercontent.com/u/4710867/v3brainstorming/template/index.html: http://pastebin.mozilla.org/8384167 They don't seem to come from the destructor though. One of them points to the borrow_mut call here: https://github.com/servo/servo/blob/master/components/script/page.rs#L270 |
|
I disagree; look at the second failure in those logs - it contains a frame with |
|
Nevermind, see #4692. |
|
No longer reproduces. I don't think we can easily test for it, sadly. |
|
For what it's worth, an empty WPT test (ie. the default template for |
|
Is it still actual issue? I can't reproduce it |
|
It is not. |
yields