DisableThirdPartyStoragePartitioning Trial Test isn't working

Open
#102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
security, web-dev

Research direction

The issue provides an HTML page and inline test.js content, but names no repository file or test. Start by reproducing the trial with two different top-level domains and inspect localStorage in Chrome DevTools; done means determining why the observed storage differs and documenting the expected behavior.

Written by the indexing model from the issue text.

Description

Hey Everyone,
I am trying to the DisableThirdPartyStoragePartitioning for a third-party iframe with 0 success.
I did everything in the right order.
I have the following HTML Page:
`

<script src="https://www.example.com/test.js"></script> aaa `

Which rendered as an iframe with test.js content as:
`const TOKEN = 'TOKEN';

const otMeta = document.createElement('meta');
otMeta.httpEquiv = 'origin-trial';
otMeta.content = TOKEN;
document.head.append(otMeta);
console.log(localStorage);
localStorage.test=1;
console.log(localStorage)
`

When I open the Chrome dev tools on the Application I can see that everything is working
image

But when I am running the test on two different top TLD's I get two different localStorages which means that the test is failing and I can't understand why as everything is in green.

Dominant language
Bikeshed
Stars
536
Forks
145
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GoogleChrome/OriginTrials

All issues in GoogleChrome/OriginTrials

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.