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

Fixes based on build warnings #498

Merged
merged 4 commits into from
Jan 10, 2023
Merged

Fixes based on build warnings #498

merged 4 commits into from
Jan 10, 2023

Conversation

arichiv
Copy link
Member

@arichiv arichiv commented Dec 14, 2022

This resolves all current compile errors except for those related to browser context. I need to followup in HTML for that.


💥 Error: connect ETIMEDOUT 173.230.149.95:443 💥

PR Preview failed to build. (Last tried on Jan 10, 2023, 12:47 PM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 CSS Spec Preprocessor - CSS Spec Preprocessor is the web service used to build Bikeshed specs.

🔗 Related URL

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

@arichiv ➜ /workspaces/webappsec-permissions-policy (main) $ bikeshed --print=plain -f spec
WARNING: The heading 'Changes since FPWD' needs a manually-specified ID.
WARNING: The following <var>s were only used once in the document:
  'declaration', in algorithm 'process-policy-attributes'
If these are not typos, please add an ignore='' attribute to the <var>.
WARNING: Multiple elements have the same ID 'default-allowlist'.
Deduping, but this ID may not be stable across revisions.
LINK ERROR: Multiple possible 'origins' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#concept-url-origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#http-origin
  https://html.spec.whatwg.org/multipage/dom.html#concept-document-origin
  https://html.spec.whatwg.org/multipage/semantics.html#link-options-origin
  https://html.spec.whatwg.org/multipage/media.html#media-resource-origin
  https://html.spec.whatwg.org/multipage/origin.html#concept-origin
  https://html.spec.whatwg.org/multipage/origin.html#coop-enforcement-origin
  https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-origin
[=origins=]
LINK ERROR: No 'dfn' refs found for 'permissions-policy'.
<a data-link-type="dfn" data-lt="Permissions-Policy">Permissions-Policy</a>
LINK ERROR: Multiple possible 'origin' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#concept-url-origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#http-origin
  https://html.spec.whatwg.org/multipage/dom.html#concept-document-origin
  https://html.spec.whatwg.org/multipage/semantics.html#link-options-origin
  https://html.spec.whatwg.org/multipage/media.html#media-resource-origin
  https://html.spec.whatwg.org/multipage/origin.html#concept-origin
  https://html.spec.whatwg.org/multipage/origin.html#coop-enforcement-origin
  https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-origin
<a data-link-type="dfn" data-lt="origin">origin</a>
LINK ERROR: Multiple possible 'origin' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#concept-url-origin
  https://html.spec.whatwg.org/multipage/infrastructure.html#http-origin
  https://html.spec.whatwg.org/multipage/dom.html#concept-document-origin
  https://html.spec.whatwg.org/multipage/semantics.html#link-options-origin
  https://html.spec.whatwg.org/multipage/media.html#media-resource-origin
  https://html.spec.whatwg.org/multipage/origin.html#concept-origin
  https://html.spec.whatwg.org/multipage/origin.html#coop-enforcement-origin
  https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-origin
[=origin=]
LINK ERROR: No 'dfn' refs found for 'parse policy directive' that are marked for export.
<a data-link-type="dfn" data-lt="Parse policy directive">Parse policy
directive</a>
LINK ERROR: Multiple possible 'browsing context' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:browsing context
  https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
  https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-browsing-context
<a data-link-type="dfn" data-lt="browsing context">browsing context</a>
LINK ERROR: Multiple possible 'browsing context' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:browsing context
  https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
  https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-browsing-context
<a data-link-type="dfn" data-lt="browsing context">browsing
    context</a>
LINE ~999: No 'dfn' refs found for 'generate and queue a report' with for='['reporting']'.
[=reporting/generate and queue a report=]
LINT: Unexported dfn that's not referenced locally - did you mean to export it?
<dfn data-dfn-type="dfn" id="serialized-permissions-policy" data-lt="serialized-permissions-policy" data-noexport="by-default">serialized-permissions-policy<a href="#serialized-permissions-policy" class="self-link"></a></dfn>
<dfn data-dfn-type="dfn" id="serialized-permissions-policy" data-lt="serialized-permissions-policy" data-noexport="by-default">serialized-permissions-policy<a href="#serialized-permissions-policy" class="self-link"></a></dfn>
 ✔  Successfully generated, with 8 linking errors
@arichiv
Copy link
Member Author

arichiv commented Dec 14, 2022

All but browser context errors below are fixed now:

@arichiv ➜ /workspaces/webappsec-permissions-policy (main) $ bikeshed --print=plain -f spec
WARNING: The heading 'Changes since FPWD' needs a manually-specified ID.
WARNING: The following s were only used once in the document:
'declaration', in algorithm 'process-policy-attributes'
If these are not typos, please add an ignore='' attribute to the .
WARNING: Multiple elements have the same ID 'default-allowlist'.
Deduping, but this ID may not be stable across revisions.
LINK ERROR: Multiple possible 'origins' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:origin
https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
https://html.spec.whatwg.org/multipage/infrastructure.html#concept-url-origin
https://html.spec.whatwg.org/multipage/infrastructure.html#http-origin
https://html.spec.whatwg.org/multipage/dom.html#concept-document-origin
https://html.spec.whatwg.org/multipage/semantics.html#link-options-origin
https://html.spec.whatwg.org/multipage/media.html#media-resource-origin
https://html.spec.whatwg.org/multipage/origin.html#concept-origin
https://html.spec.whatwg.org/multipage/origin.html#coop-enforcement-origin
https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-origin
[=origins=]
LINK ERROR: No 'dfn' refs found for 'permissions-policy'.
Permissions-Policy
LINK ERROR: Multiple possible 'origin' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:origin
https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
https://html.spec.whatwg.org/multipage/infrastructure.html#concept-url-origin
https://html.spec.whatwg.org/multipage/infrastructure.html#http-origin
https://html.spec.whatwg.org/multipage/dom.html#concept-document-origin
https://html.spec.whatwg.org/multipage/semantics.html#link-options-origin
https://html.spec.whatwg.org/multipage/media.html#media-resource-origin
https://html.spec.whatwg.org/multipage/origin.html#concept-origin
https://html.spec.whatwg.org/multipage/origin.html#coop-enforcement-origin
https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-origin
origin
LINK ERROR: Multiple possible 'origin' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:origin
https://html.spec.whatwg.org/multipage/infrastructure.html#concept-request-origin
https://html.spec.whatwg.org/multipage/infrastructure.html#concept-url-origin
https://html.spec.whatwg.org/multipage/infrastructure.html#http-origin
https://html.spec.whatwg.org/multipage/dom.html#concept-document-origin
https://html.spec.whatwg.org/multipage/semantics.html#link-options-origin
https://html.spec.whatwg.org/multipage/media.html#media-resource-origin
https://html.spec.whatwg.org/multipage/origin.html#concept-origin
https://html.spec.whatwg.org/multipage/origin.html#coop-enforcement-origin
https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-origin
[=origin=]
LINK ERROR: No 'dfn' refs found for 'parse policy directive' that are marked for export.
Parse policy
directive
LINK ERROR: Multiple possible 'browsing context' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:browsing context
https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-browsing-context
browsing context
LINK ERROR: Multiple possible 'browsing context' dfn refs for '/'.
Arbitrarily chose https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
The following refs show up multiple times in their spec, in a way that Bikeshed can't distinguish between. Either create a manual link, or ask the spec maintainer to add disambiguating attributes (usually a for='' attribute to all of them).
spec:html; type:dfn; for:/; text:browsing context
https://html.spec.whatwg.org/multipage/browsers.html#browsing-context
https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-browsing-context
browsing
context
LINE ~999: No 'dfn' refs found for 'generate and queue a report' with for='['reporting']'.
[=reporting/generate and queue a report=]
LINT: Unexported dfn that's not referenced locally - did you mean to export it?
serialized-permissions-policy
serialized-permissions-policy
✔ Successfully generated, with 8 linking errors

@arichiv
Copy link
Member Author

arichiv commented Dec 19, 2022

@clelland have time to take a look?

index.bs Outdated Show resolved Hide resolved
@arichiv arichiv requested a review from clelland January 10, 2023 12:46
@clelland clelland merged commit e138f22 into w3c:main Jan 10, 2023
@clelland
Copy link
Collaborator

LGTM, thanks for the cleanup!

github-actions bot added a commit that referenced this pull request Jan 10, 2023
SHA: e138f22
Reason: push, by clelland

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to clelland/feature-policy that referenced this pull request Jan 10, 2023
SHA: e138f22
Reason: push, by clelland

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
rakuco pushed a commit to w3c/battery that referenced this pull request Jan 5, 2024
* Remove `data-link-for="Navigator"`, unneeded since #42.
* Fix reference to "default allowlist", which has needed the
  "policy-controlled feature" scope since
  w3c/webappsec-permissions-policy#498. I could not get it to work using the
  `<a>` syntax with ReSpec though.
* While here, make "self" a reference to the corresponding term in the
  Permissions Policy spec.
rakuco pushed a commit to w3c/battery that referenced this pull request Jan 5, 2024
* Remove `data-link-for="Navigator"`, unneeded since #42.
* Fix reference to "default allowlist", which has needed the
  "policy-controlled feature" scope since
  w3c/webappsec-permissions-policy#498. I could not get it to work using the
  `<a>` syntax with ReSpec though.
* While here, make "self" a reference to the corresponding term in the
  Permissions Policy spec.
anssiko pushed a commit to w3c/battery that referenced this pull request Jan 5, 2024
* Remove `data-link-for="Navigator"`, unneeded since #42.
* Fix reference to "default allowlist", which has needed the
  "policy-controlled feature" scope since
  w3c/webappsec-permissions-policy#498. I could not get it to work using the
  `<a>` syntax with ReSpec though.
* While here, make "self" a reference to the corresponding term in the
  Permissions Policy spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants