Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10423,6 +10423,7 @@
/en-US/docs/Web/API/StorageQuota/queryInfo /en-US/docs/Web/API/StorageManager
/en-US/docs/Web/API/StorageQuota/requestPersistentQuota /en-US/docs/Web/API/StorageManager
/en-US/docs/Web/API/StorageQuota/supportedTypes /en-US/docs/Web/API/StorageManager
/en-US/docs/Web/API/Storage_Access_API/Related_website_sets /en-US/docs/Web/API/Storage_Access_API
/en-US/docs/Web/API/StyleSheet.disabled /en-US/docs/Web/API/StyleSheet/disabled
/en-US/docs/Web/API/StyleSheet.href /en-US/docs/Web/API/StyleSheet/href
/en-US/docs/Web/API/StyleSheet.media /en-US/docs/Web/API/StyleSheet/media
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ It is important to clarify the current standardization status of such features t
- Adding a "Standards positions" section to the same page as the above banner, as a sub-section of the standard "Specifications" section.

> [!NOTE]
> See [Related Website Sets](/en-US/docs/Web/API/Storage_Access_API/Related_website_sets) for an example of the "Standards positions" section and what it should contain, as well as the landing page banner.
> See [Shared Storage API](/en-US/docs/Web/API/Shared_Storage_API) for an example of the "Standards positions" section and what it should contain, as well as the landing page banner.
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ Using `allowIPAddress` to return IP addresses as-is:

```js
console.log(
browser.publicSuffix.getDomain("192.0.2.1", { allowIPAddress: true })
browser.publicSuffix.getDomain("192.0.2.1", { allowIPAddress: true }),
); // "192.0.2.1"
console.log(
browser.publicSuffix.getDomain("[2001:db8::1]", { allowIPAddress: true })
browser.publicSuffix.getDomain("[2001:db8::1]", { allowIPAddress: true }),
); // "2001:db8::1"
```

Using `allowPlainSuffix` to return hostnames that are public suffixes:

```js
console.log(
browser.publicSuffix.getDomain("co.uk", { allowPlainSuffix: true })
browser.publicSuffix.getDomain("co.uk", { allowPlainSuffix: true }),
); // "co.uk"
```

Expand All @@ -83,11 +83,11 @@ Using `allowUnknownSuffix` to handle private or local domains:
```js
console.log(
browser.publicSuffix.getDomain("mydevice.local", {
allowUnknownSuffix: true
})
allowUnknownSuffix: true,
}),
); // "mydevice.local"
console.log(
browser.publicSuffix.getDomain("host.intranet", { allowUnknownSuffix: true })
browser.publicSuffix.getDomain("host.intranet", { allowUnknownSuffix: true }),
); // "host.intranet"
```

Expand All @@ -97,16 +97,16 @@ Using `encoding: "display"` for internationalized domain names:
// "xn--nxasmq6b.com" is the punycode form of "βόλος.com"
console.log(
browser.publicSuffix.getDomain("sub.xn--nxasmq6b.com", {
encoding: "display"
})
encoding: "display",
}),
); // "βόλος.com"

// Domains with confusable characters remain in punycode
// "xn--bs-red.com" has characters confusable with another script
console.log(
browser.publicSuffix.getDomain("sub.xn--bs-red.com", {
encoding: "display"
})
encoding: "display",
}),
); // "xn--bs-red.com"
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ No exceptions are thrown.

## Examples

The following example calls the `getSupportFormat()` static method and logs
The following example calls the `getSupportedFormats()` static method and logs
the results to the console.

```js
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/barcodedetector/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (!("BarcodeDetector" in globalThis)) {

### Getting Supported Formats

The following example calls the `getSupportFormat()` static method and logs the results to the console.
The following example calls the `getSupportedFormats()` static method and logs the results to the console.

```js
// check supported types
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ _This interface also inherits from the {{DOMxRef("Node")}} and {{DOMxRef("EventT
- {{DOMxRef("Document.requestStorageAccess()")}}
- : Allows a document loaded in a third-party context (i.e., embedded in an {{htmlelement("iframe")}}) to request access to unpartitioned cookies, in cases where user agents by default block access to unpartitioned cookies by sites loaded in a third-party context to improve privacy.
- {{DOMxRef("Document.requestStorageAccessFor()")}} {{deprecated_inline}} {{non-standard_inline}}
- : Allows top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same [related website set](/en-US/docs/Web/API/Storage_Access_API/Related_website_sets).
- : Allows top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same [related website set](https://privacysandbox.google.com/cookies/related-website-sets-integration).
- {{domxref("Document.startViewTransition()")}}
- : Starts a new {{domxref("View Transition API", "view transition", "", "nocode")}} and returns a {{domxref("ViewTransition")}} object to represent it.

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/document/requeststorageaccessfor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ browser-compat: api.Document.requestStorageAccessFor

{{APIRef("Storage Access API")}}{{deprecated_header}}{{non-standard_header}}

The **`requestStorageAccessFor()`** method of the {{domxref("Document")}} interface allows top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same [related website set](/en-US/docs/Web/API/Storage_Access_API/Related_website_sets). It returns a {{jsxref("Promise")}} that resolves if the access was granted, and rejects if access was denied.
The **`requestStorageAccessFor()`** method of the {{domxref("Document")}} interface allows top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same [related website set](https://privacysandbox.google.com/cookies/related-website-sets-integration). It returns a {{jsxref("Promise")}} that resolves if the access was granted, and rejects if access was denied.

## Syntax

Expand Down Expand Up @@ -43,7 +43,7 @@ A {{jsxref("Promise")}} that fulfills with `undefined` if the access to third-pa
- The document is not the top-level document.
- The document has a `null` origin.
- The supplied `requestedOrigin` is [opaque](https://html.spec.whatwg.org/multipage/browsers.html#concept-origin-opaque).
- The top-level and embedded sites are not in the same [related website set](/en-US/docs/Web/API/Storage_Access_API/Related_website_sets).
- The top-level and embedded sites are not in the same [related website set](https://privacysandbox.google.com/cookies/related-website-sets-integration).
- The embedding {{htmlelement("iframe")}} is sandboxed, and the `allow-storage-access-by-user-activation` token is not set.
- Usage is blocked by a {{httpheader("Permissions-Policy/storage-access", "storage-access")}} [Permissions Policy](/en-US/docs/Web/HTTP/Guides/Permissions_Policy).
- Usage is denied by the user agent's permission request to use the API.
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/storage_access_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Third party content embedded in an {{htmlelement("iframe")}} that needs to acces
- Safari shows prompts for all embedded content that has not previously received storage access.
- Firefox only prompts users after an origin has requested storage access on more than a threshold number of sites.
- Chrome shows prompts for all embedded content that has not previously received storage access.
It will however automatically grant access and skip prompts if the embedded content and embedding site are part of the same [related website set](/en-US/docs/Web/API/Storage_Access_API/Related_website_sets).
It will however automatically grant access and skip prompts if the embedded content and embedding site are part of the same [related website set](https://privacysandbox.google.com/cookies/related-website-sets-integration).

3. Permission is granted or denied based on whether the content meets all the security requirements — see [Security considerations](#security_considerations) for general requirements, and [Browser-specific variations](#browser-specific_variations) for some browser-specific security requirements.
The {{jsxref("Promise")}}-based nature of `requestStorageAccess()` allows you to run code to handle success and failure cases.
Expand Down Expand Up @@ -311,8 +311,8 @@ Documentation for Firefox's new storage access policy for blocking tracking cook
- : New name for {{domxref("Document.hasStorageAccess()")}}.
- {{domxref("Document.requestStorageAccess()")}}
- : Allows content loaded in a third-party context (i.e., embedded in an {{htmlelement("iframe")}}) to request access to third-party cookies and unpartitioned state; returns a {{jsxref("Promise")}} that resolves if the access was granted, and rejects if access was denied.
- {{domxref("Document.requestStorageAccessFor()")}} {{experimental_inline}}
- : A proposed extension to the Storage Access API that allows top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same [related website set](/en-US/docs/Web/API/Storage_Access_API/Related_website_sets). Returns a {{jsxref("Promise")}} that resolves if the access was granted, and rejects if access was denied.
- {{domxref("Document.requestStorageAccessFor()")}} {{deprecated_inline}}
- : A non-standard deprecated extension to the Storage Access API that allows top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same [related website set](https://privacysandbox.google.com/cookies/related-website-sets-integration). Returns a {{jsxref("Promise")}} that resolves if the access was granted, and rejects if access was denied.

> [!NOTE]
> User interaction propagates to the promise returned by these methods, allowing the callers to take actions requiring user interaction without requiring a second click. For example, a caller could open a pop-up window from the resolved promise without triggering Firefox's pop-up blocker.
Expand Down
163 changes: 0 additions & 163 deletions files/en-us/web/api/storage_access_api/related_website_sets/index.md

This file was deleted.

Loading