Skip to content

Commit

Permalink
Address feedback on matching about: frames
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverdunk committed Jan 10, 2025
1 parent 9cb7e89 commit 31bfe98
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions specification/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ If `all_frames` is true, the content script must be injected into any subframes

### Key `match_about_blank`

If this is true, use the URL of the parent frame when matching a child frame whose document URL has the `about` [=scheme=]. See also [[#determine-the-url-for-content-script-matching]]. Defaults to `false`.

Note: In Firefox, setting `match_about_blank` to `true` also allows injection into top-level `about:blank` pages.
If this is true, use the URL of the parent frame when matching a child frame whose document URL is `about:blank` or `about:srcdoc`. See also [[#determine-the-url-for-content-script-matching]]. Defaults to `false`.

### Key `match_origin_as_fallback`

Expand Down Expand Up @@ -294,7 +292,7 @@ To determine the URL to use for a document when injecting a content script:

1. Let |url| be the document's URL.
1. If the document is within a child frame:
1. If the [=scheme=] of the document's URL is `about`, and `match_about_blank` or `match_origin_as_fallback` is set to true:
1. If the document's URL is `about:blank` or `about:srcdoc`, and `match_about_blank` or `match_origin_as_fallback` is set to true:
1. Set |url| to a URL based on the origin of the parent frame.
1. If the [=scheme=] of the document's URL is `data` and `match_origin_as_fallback` is set to true:
1. Set |url| to be a URL based on the origin of the parent frame.
Expand Down

0 comments on commit 31bfe98

Please sign in to comment.