Skip to content

Commit

Permalink
Add tutorial for default fenced frames in explainer (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
blu25 authored Aug 10, 2023
1 parent 72125c6 commit b04f687
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions explainer/use_cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ This use case is the fenced frames with no special restrictions on the src and n
* Since there is no unpartitioned/cross-site data available to the fenced frame, it is not able to do any cross-site data joining.
* Like all use cases, the fenced frame is isolated from the embedded context via any JS window references, script access, storage access, messaging APIs etc. The fenced frame does not know the embedding sites origin or etld+1.

To begin experimenting with fenced frames in default mode, enable the following experiments in `chrome://flags`:
* Privacy Sandbox Ads APIs (chrome://flags/#privacy-sandbox-ads-apis)
* Enable the \`FencedFrameConfig\` constructor. (chrome://flags/#enable-fenced-frames-developer-mode)
After relaunching Chrome, a fenced frame can be added to a page with the following code:
```
const frame = document.createElement("fencedframe");
const config = new FencedFrameConfig("https://example.com/");
frame.config = config;
document.body.append(frame);
```
## **Read-only**
Expand Down

0 comments on commit b04f687

Please sign in to comment.