Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Technical Review: Add documentation for Fenced Frames #27781

Closed
wants to merge 29 commits into from

Conversation

chrisdavidmills
Copy link
Contributor

@chrisdavidmills chrisdavidmills commented Jul 5, 2023

Note: This technical review is now completed and approved. For the follow-on editorial review, see #30874


Description

Fenced frames are an integral part of Google's privacy sandbox technologies. Many parts of this set are being made available by default in Chrome 115 (depending on a gradual ramp up to 100% of userbase over the 115 release period).

This PR provides documentation for the <fencedframe> element and the APIs that underpin it.

See my research document for more details of exactly what changes are expected in the PR.

Motivation

Additional details

Related issues and pull requests

@chrisdavidmills chrisdavidmills requested review from a team as code owners July 5, 2023 18:23
@chrisdavidmills chrisdavidmills requested review from wbamberg and bsmth and removed request for a team July 5, 2023 18:23
@chrisdavidmills chrisdavidmills marked this pull request as draft July 5, 2023 18:23
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jul 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

Preview URLs (29 pages)
Flaws (28)

Note! 12 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTTP/Headers/Content-Security-Policy/fenced-frame-src
Title: CSP: fenced-frame-src
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: http.headers.Content-Security-Policy.fenced-frame-src

URL: /en-US/docs/Web/HTML/Element/fencedframe
Title: <fencedframe>: The Fenced Frame element
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: html.elements.fencedframe

URL: /en-US/docs/Web/API/FencedFrameConfig
Title: FencedFrameConfig
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.FencedFrameConfig

URL: /en-US/docs/Web/API/FencedFrameConfig/setSharedStorageContext
Title: FencedFrameConfig: setSharedStorageContext() method
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.FencedFrameConfig.setSharedStorageContext

URL: /en-US/docs/Web/API/HTMLFencedFrameElement
Title: HTMLFencedFrameElement
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.HTMLFencedFrameElement

URL: /en-US/docs/Web/API/HTMLFencedFrameElement/width
Title: HTMLFencedFrameElement: width property
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.HTMLFencedFrameElement.width

URL: /en-US/docs/Web/API/HTMLFencedFrameElement/config
Title: HTMLFencedFrameElement: config property
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.HTMLFencedFrameElement.config

URL: /en-US/docs/Web/API/HTMLFencedFrameElement/allow
Title: HTMLFencedFrameElement: allow property
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.HTMLFencedFrameElement.allow

URL: /en-US/docs/Web/API/HTMLFencedFrameElement/height
Title: HTMLFencedFrameElement: height property
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.HTMLFencedFrameElement.height

URL: /en-US/docs/Web/API/Window/fence
Title: Window: fence property
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.Window.fence

URL: /en-US/docs/Web/API/Navigator
Title: Navigator
Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/Navigator/standalone does not exist

URL: /en-US/docs/Web/API/Navigator/deprecatedReplaceInURN
Title: Navigator: deprecatedReplaceInURN() method
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: api.Navigator.deprecatedReplaceInURN

URL: /en-US/docs/Web/API/Fenced_frame_API
Title: Fenced Frame API
Flaw count: 3

  • macros:
    • /en-US/docs/Web/API/Navigator/runAdAuction does not exist
  • broken_links:
    • Can't resolve /en-US/docs/Web/Privacy/Privacy_sandbox/Enrollment
  • bad_bcd_queries:
    • No BCD data for query: html.elements.fencedframe

URL: /en-US/docs/Web/API/Fence
Title: Fence
Flaw count: 3

  • macros:
    • /en-US/docs/Web/API/InterestGroupReportingScriptRunnerGlobalScope/registerAdBeacon does not exist
    • /en-US/docs/Web/API/InterestGroupReportingScriptRunnerGlobalScope/registerAdBeacon does not exist
  • bad_bcd_queries:
    • No BCD data for query: api.Fence

URL: /en-US/docs/Web/API/Fence/setReportEventDataForAutomaticBeacons
Title: Fence: setReportEventDataForAutomaticBeacons() method
Flaw count: 3

  • macros:
    • /en-US/docs/Web/API/InterestGroupReportingScriptRunnerGlobalScope/registerAdBeacon does not exist
    • /en-US/docs/Web/API/InterestGroupReportingScriptRunnerGlobalScope/registerAdBeacon does not exist
  • bad_bcd_queries:
    • No BCD data for query: api.Fence.setReportEventDataForAutomaticBeacons

URL: /en-US/docs/Web/API/Fence/getNestedConfigs
Title: Fence: getNestedConfigs() method
Flaw count: 2

  • broken_links:
    • Can't resolve /docs/Web/API/Shared_Storage_API
  • bad_bcd_queries:
    • No BCD data for query: api.Fence.getNestedConfigs

URL: /en-US/docs/Web/API/Fence/reportEvent
Title: Fence: reportEvent() method
Flaw count: 5

  • macros:
    • /en-US/docs/Web/API/InterestGroupReportingScriptRunnerGlobalScope/registerAdBeacon does not exist
    • /en-US/docs/Web/API/InterestGroupReportingScriptRunnerGlobalScope/registerAdBeacon does not exist
    • /en-US/docs/Web/API/InterestGroupReportingScriptRunnerGlobalScope/registerAdBeacon does not exist
    • /en-US/docs/Web/API/PrivateAggregation/contributeToHistogramOnEvent does not exist
  • bad_bcd_queries:
    • No BCD data for query: api.Fence.reportEvent
External URLs (55)

URL: /en-US/docs/Web/HTML/Element/fencedframe
Title: <fencedframe>: The Fenced Frame element


URL: /en-US/docs/Web/API/FencedFrameConfig
Title: FencedFrameConfig


URL: /en-US/docs/Web/API/FencedFrameConfig/setSharedStorageContext
Title: FencedFrameConfig: setSharedStorageContext() method


URL: /en-US/docs/Web/API/HTMLFencedFrameElement
Title: HTMLFencedFrameElement


URL: /en-US/docs/Web/API/HTMLFencedFrameElement/width
Title: HTMLFencedFrameElement: width property


URL: /en-US/docs/Web/API/HTMLFencedFrameElement/config
Title: HTMLFencedFrameElement: config property


URL: /en-US/docs/Web/API/HTMLFencedFrameElement/allow
Title: HTMLFencedFrameElement: allow property


URL: /en-US/docs/Web/API/HTMLFencedFrameElement/height
Title: HTMLFencedFrameElement: height property


URL: /en-US/docs/Web/API/Window/fence
Title: Window: fence property


URL: /en-US/docs/Web/API/Navigator/deprecatedReplaceInURN
Title: Navigator: deprecatedReplaceInURN() method


URL: /en-US/docs/Web/API/Fenced_frame_API
Title: Fenced Frame API


URL: /en-US/docs/Web/API/Fenced_frame_API/Communication_with_embedded_frames
Title: Communication with embeded frames


URL: /en-US/docs/Web/API/Fence
Title: Fence


URL: /en-US/docs/Web/API/Fence/setReportEventDataForAutomaticBeacons
Title: Fence: setReportEventDataForAutomaticBeacons() method


URL: /en-US/docs/Web/API/Fence/getNestedConfigs
Title: Fence: getNestedConfigs() method


URL: /en-US/docs/Web/API/Fence/reportEvent
Title: Fence: reportEvent() method

(comment last updated: 2023-12-08 15:33:21)

@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs Content:HTTP HTTP docs labels Jul 10, 2023
@bsmth
Copy link
Member

bsmth commented Jul 12, 2023

Thanks @chrisdavidmills - do you want me to have a look already or should I wait until it's out of draft status?

@chrisdavidmills
Copy link
Contributor Author

Thanks @chrisdavidmills - do you want me to have a look already or should I wait until it's out of draft status?

It'd be better to wait until it is a) out of draft status, and b) I've got the Google eng folk to have a look at it, as there are still a fait few details here that I'm not sure about. I'll let you know. Cheers!

@chrisdavidmills chrisdavidmills marked this pull request as ready for review July 24, 2023 08:15
@chrisdavidmills chrisdavidmills requested review from a team as code owners July 24, 2023 08:15
@chrisdavidmills chrisdavidmills requested review from teoli2003 and estelle and removed request for a team July 24, 2023 08:15
@domfarolino
Copy link

I was pinged to take a look at this from Google's perspective, and I'm wondering if you could update the compiled documentation links above (in #27781 (comment)), since they seem outdated now?

Copy link

@gtanzer gtanzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. Left a new round of comments. Home stretch!

@chrisdavidmills
Copy link
Contributor Author

Thanks for the super-helpful comments @gtanzer; updated, and back to you.


```js
const configs = window.fence.getNestedConfigs();
console.log(configs.length);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might make more sense as an example here to have a different fenced frame, and then do fencedframe.config = configs[0] or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I've replaced it with something slightly more substantial.

@gtanzer
Copy link

gtanzer commented Dec 8, 2023

@chrisdavidmills Changes lgtm. I don't see an option to resolve each, maybe because I'm not technically a reviewer.

@chrisdavidmills
Copy link
Contributor Author

Thanks a lot @gtanzer. I have gone through and resolved all the comments that sound like a done deal. There are four left that I think still need input from you:

@gtanzer
Copy link

gtanzer commented Dec 8, 2023

@chrisdavidmills Responded, thanks for surfacing them

@chrisdavidmills
Copy link
Contributor Author

OK @gtanzer, just to let you know, next stage is to get this PR editorial reviewed. I'll close this PR and open up a new one based on the same branch to contain the editorial review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs Content:HTTP HTTP docs Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants