Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Use new site instance for SessionStorageNamespaceImpl clone when opener_suppressed(noopener) specified #632

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Jul 14, 2018

because WebContentsImpl::CreateNewWindow will use target_url as new site instance

The problem was cloning original site instance cause the inconsistency
between original partition and target partition because tor browser
context enforce isolation storage so every different site has its own storage partition

fix brave/browser-laptop#14392

Test Plan:

  1. Open tor tab
  2. Visit site contains rel="noopener" href (https://jsfiddle.net/dqokhmsg/)
  3. Click the link
  4. Brave shouldn't crash

Auditors: @bridiver, @bbondy

…er_suppressed(noopener) specified

because WebContentsImpl::CreateNewWindow will use target_url as new site instance

The problem was cloning original site instance cause the inconsistency
between original partition and target partition because tor browser
context enforce isolation storage so every different site has its own storage partition

fix brave/browser-laptop#14392

Test Plan:
1. Open tor tab
2. Visit site contains rel="noopener" href (https://jsfiddle.net/dqokhmsg/)
3. Click the link
4. Brave shouldn't crash

Auditors: @bridiver, @bbondy
@darkdh darkdh self-assigned this Jul 14, 2018
@darkdh darkdh requested review from bridiver and bbondy July 14, 2018 04:19
@darkdh darkdh changed the title Use new site instance for SessionStorageNamespaceImpl clone when open… Use new site instance for SessionStorageNamespaceImpl clone when opener_suppressed(noopener) specified Jul 14, 2018
@darkdh darkdh merged commit 0ef0d3c into tor_browser_context Jul 18, 2018
@darkdh darkdh deleted the noopener_check branch July 18, 2018 18:07
darkdh added a commit that referenced this pull request Jul 18, 2018
Use new site instance for SessionStorageNamespaceImpl clone when opener_suppressed(noopener) specified
darkdh added a commit that referenced this pull request Jul 18, 2018
Use new site instance for SessionStorageNamespaceImpl clone when opener_suppressed(noopener) specified
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants