Skip to content

Conversation

@domenic
Copy link
Member

@domenic domenic commented Apr 8, 2016

Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=28772.

This needs pretty careful review to see if it's actually capturing the intention of that bug and of the original algorithm. @bzbarsky, would appreciate your help here, especially since I took a different approach (of not setting the flag for document.open() at all) than you suggested (of re-setting the flag to false at some point).

@bzbarsky
Copy link
Contributor

Not setting the flag like that is a bit worrisome. In particular, it's assuming that there will be no script running between that point and the poing when we'd reset the flag to false, right? I don't really have the time to sort through all the little twisty side-effects and determine whether this condition holds or not.

I think it would be a lot safer to set the flag normally, then unset it in the steps of document.open that correspond to "new document is now loading" in navigation.

@bzbarsky bzbarsky removed their assignment Apr 11, 2016
@domenic
Copy link
Member Author

domenic commented Apr 11, 2016

I think you are right, in particular due to the unloading of child browsing contexts. Thanks.

@domenic
Copy link
Member Author

domenic commented Apr 11, 2016

Fixed to just reset the flag, as suggested in the original bug. Probably any old editor can review this now.

@annevk
Copy link
Member

annevk commented Apr 12, 2016

I'm not old... The change looks okay, although I don't fully grasp all the implications of this yet admittedly.

@domenic domenic merged commit 1f6fa09 into master Apr 12, 2016
@domenic domenic deleted the fix-unload-flag branch April 12, 2016 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants