You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Iframes always load with about:blank in history #14720
Similarly, if the nested browsing context's session history contained only one Document when the process the iframe attributes algorithm was invoked, and that was the about:blank Document created when the nested browsing context was created, then any navigation required of the user agent in that algorithm must be completed with replacement enabled.
cc @asajeffrey
One solution is to wait until Urls are stored in FrameState and then when an iframe is loading a new Url, check the Frame prev see if it has a single entry with the url about:blank, if so, enable replacement.
Activity
cbrewster commentedon Dec 28, 2016
cc @asajeffrey
One solution is to wait until
Urls are stored inFrameStateand then when an iframe is loading a new Url, check the Frameprevsee if it has a single entry with the urlabout:blank, if so, enable replacement.Ms2ger commentedon Dec 29, 2016
Not sure that's quite enough; we might need to store the "is initial about:blank document" flag.
cbrewster commentedon Dec 29, 2016
@Ms2ger you're right, otherwise subsequent
about:blankloads would be replaced as well. I think we could store this flag on theFrameitself.asajeffrey commentedon Jan 1, 2017
We could check to see if the old URL is about: blank and prev is empty? Not sure what is meant to happen if the iframe "really" contains about: blank.
cbrewster commentedon Jan 1, 2017
If it "really" contains about:blank it just does a normal navigation without replacement enabled
asajeffrey commentedon Jan 1, 2017
So an iframe which starts with src=about:blank is treated differently from one which starts with no src?
cbrewster commentedon Jan 1, 2017
@asajeffrey I believe so
Ms2ger commentedon Jan 2, 2017
https://html.spec.whatwg.org/multipage/#process-the-iframe-attributes seems quite clear on that point; I don't understand where the confusion arises.
Auto merge of #16848 - cbrewster:replace_initial_about_blank, r=<try>
Auto merge of #16848 - cbrewster:replace_initial_about_blank, r=asaje…
Auto merge of #20579 - cbrewster:about_blank_replace, r=<try>
Auto merge of #20579 - cbrewster:about_blank_replace, r=asajeffrey