camillelamy / explainers

11 stars 5 forks source link

Clarify virtual browser context group id diagrams #13

Closed arturjanc closed 4 years ago

arturjanc commented 4 years ago

In this section https://github.com/camillelamy/explainers/blob/master/coop_reporting.md#virtual-browsing-context-group-id:

I understand the behavior of the first two, but I'm lost on diagrams 3 and 4. Specifically, why is there a BCG switch after the first navigation (BCG4 to BCG2)? Also, why is the first window in BCG4?

I expect this is correct and I'm just missing something; maybe it would be helpful to explain the interactions that are happening below each diagram?

camillelamy commented 4 years ago

I have added a legend. Basically, the first page decides to navigate to the same URL it opened, and COOP enforcement would put the two in different browsing context group since there are two switches happening and each one put the page in a brand new BCG.

arturjanc commented 4 years ago

Thanks! Now I see that my confusion was that I was looking at the diagrams as if they were 4 individual examples, whereas from your legend it's clear that it's a single scenario where different windows are navigated in each subsequent step.