WICG / bfcache-not-restored-reason

Other
18 stars 5 forks source link

Make reasons = null for cross-origin iframes? #3

Open domenic opened 2 years ago

domenic commented 2 years ago

https://github.com/rubberyuzu/bfcache-not-retored-reason/blob/main/NotRestoredReason.md#example-2-cross-origin-iframes confused me a bit because I saw blocked = true, but reasons = []. I then realized it was because you are hiding sensitive information about cross-origin iframes. But maybe this would be more obvious if reasons was null instead of the empty array? Or maybe that would be annoying for web developers to deal with. I am not sure, but I think it's worth considering.