Skip to content

Commit

Permalink
Add a SUPPORTS_LOADING_MODE response header.
Browse files Browse the repository at this point in the history
The response header is needed for a document to be loaded in a fenced frame: https://developer.chrome.com/docs/privacy-sandbox/fenced-frame/#server-opt-in.

RELNOTES=`net`: Added `SUPPORTS_LOADING_MODE` HTTP response header.
PiperOrigin-RevId: 462659126
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Jul 22, 2022
1 parent 0bacca2 commit 0d5c16f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions android/guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,16 @@ private ReferrerPolicyValues() {}
*/
public static final String SOURCE_MAP = "SourceMap";

/**
* The HTTP <a href="https://github.com/WICG/nav-speculation/blob/main/opt-in.md">{@code
* Supports-Loading-Mode}</a> header field name. This can be used to specify, for example, <a
* href="https://developer.chrome.com/docs/privacy-sandbox/fenced-frame/#server-opt-in">fenced
* frames</a>.
*
* @since NEXT
*/
public static final String SUPPORTS_LOADING_MODE = "Supports-Loading-Mode";

/**
* The HTTP <a href="http://tools.ietf.org/html/rfc6797#section-6.1">{@code
* Strict-Transport-Security}</a> header field name.
Expand Down
10 changes: 10 additions & 0 deletions guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,16 @@ private ReferrerPolicyValues() {}
*/
public static final String SOURCE_MAP = "SourceMap";

/**
* The HTTP <a href="https://github.com/WICG/nav-speculation/blob/main/opt-in.md">{@code
* Supports-Loading-Mode}</a> header field name. This can be used to specify, for example, <a
* href="https://developer.chrome.com/docs/privacy-sandbox/fenced-frame/#server-opt-in">fenced
* frames</a>.
*
* @since NEXT
*/
public static final String SUPPORTS_LOADING_MODE = "Supports-Loading-Mode";

/**
* The HTTP <a href="http://tools.ietf.org/html/rfc6797#section-6.1">{@code
* Strict-Transport-Security}</a> header field name.
Expand Down

0 comments on commit 0d5c16f

Please sign in to comment.