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

Define an algorithm for launching a web app #1056

Merged
merged 17 commits into from
Nov 8, 2022

Conversation

alancutter
Copy link
Contributor

@alancutter alancutter commented Oct 28, 2022

This is in service of: WICG/web-app-launch#67

This change (choose at least one, delete ones that don't apply):

  • Makes editorial changes (changes informative sections, or changes normative sections without changing behavior)

Commit message:

This change adds an algorithm for launching a web app to be used by manifest features that invoke launches like shortcut items, share target, file handling etc. This is also intended to be a point for https://wicg.github.io/web-app-launch/#launching-a-web-app to replace the behaviour with something that can re-use existing web app instances.

Person merging, please make sure that commits are squashed with one of the following as a commit message prefix:

  • chore:
  • editorial:
  • BREAKING CHANGE:
  • And use none if it's a normative change

Preview | Diff

@alancutter
Copy link
Contributor Author

Seems like the Node CI failed with The W3C_API_KEY input is required with VALIDATE_PUBRULES. Maybe I need to set up something in my fork?

@alancutter alancutter force-pushed the launch-web-app branch 2 times, most recently from d618f09 to 6c942c8 Compare October 28, 2022 05:19
index.html Outdated Show resolved Hide resolved
index.html Outdated
Comment on lines 2264 to 2303
<li>Let |client| be the result of
<a href="https://html.spec.whatwg.org/multipage/browsers.html#creating-a-new-top-level-browsing-context">
creating a new top-level browsing context</a>.
</li>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<li>Let |client| be the result of
<a href="https://html.spec.whatwg.org/multipage/browsers.html#creating-a-new-top-level-browsing-context">
creating a new top-level browsing context</a>.
</li>
<li>Let |client| be the result of
<a data-cite="html#creating-a-new-top-level-browsing-context">
creating a new top-level browsing context</a>.
</li>

Copy link
Member

Choose a reason for hiding this comment

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

We should speak to the HTML folks about this... if we need "creating a new top-level browsing context" to be exported, we should get them to do that (and they can sanity check this).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. Filed: whatwg/html#8449

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are going to export "creating a new top-level traversable" soon that this can use: whatwg/html#8449 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rebased onto the new html concepts. Note that main branch now has ReSpec errors: #1061

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
@marcoscaceres
Copy link
Member

Seems like the Node CI failed with The W3C_API_KEY input is required with VALIDATE_PUBRULES. Maybe I need to set up something in my fork?

I'll have a look. Don't worry too much about the CI errors - I'll deal with them.

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
@alancutter
Copy link
Contributor Author

Updated with suggestions from @mgiuca.

@alancutter alancutter changed the title Define an algorithm for launching web app Define an algorithm for launching a web app Nov 6, 2022
@alancutter
Copy link
Contributor Author

I'll have a look. Don't worry too much about the CI errors - I'll deal with them.

Nvm I had a spec error, it's passing now.

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Show resolved Hide resolved
@alancutter
Copy link
Contributor Author

alancutter commented Nov 7, 2022

As discussed offline with @mgiuca I will:

  • Add prose stating the launch algorithm can be replaced by another algorithm.
  • Extract creating a new client out to a separate algorithm so the replacing algorithm can still use it.

Copy link
Collaborator

@mgiuca mgiuca left a comment

Choose a reason for hiding this comment

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

LGTM, with changes discussed offline.

@alancutter
Copy link
Contributor Author

Requested changes made, giving @marcoscaceres a chance to review and add comments before landing.

@alancutter alancutter merged commit a0808b8 into w3c:main Nov 8, 2022
github-actions bot added a commit that referenced this pull request Nov 8, 2022
SHA: a0808b8
Reason: push, by alancutter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
alancutter added a commit to WICG/web-app-launch that referenced this pull request Nov 8, 2022
…er behaviors (#79)

This builds on top of w3c/manifest#1056 which adds a launch web application algorithm to the manifest spec. This updates the launch handler spec to replace that algorithm with its own. This enables other webapp specs (not in WICG) to gain the launch_handler behaviour without directly referencing this WICG spec.

Additionally this replaces the concept of "web app launch client" with the existing "application context" concept from the manifest spec which is effectively the same thing.

#67 #69 #84
#79
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.

3 participants