From 20cef22783bdbb5be68756045e14be458626a38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Daoust?= Date: Tue, 14 Jan 2020 19:23:29 +0100 Subject: [PATCH] Fix cross-spec links and references A few editorial updates to fix a few broken links and references: - Drop custom dfns that are no longer needed (fixes a few outdated fragments and allows to see which additional dfns the spec needs on top of those that the referenced specs export) - Replace "triggered by user activation" with new user activation model (see https://github.com/whatwg/html/issues/5129). This may warrant another iteration as I'm not clear whether we're supposed to call the "activation notification" steps - Update definition of methods to fix IDL links - Update reference to Web App Manifest and flag the paragraph as informative - Fix links to "action" --- index.bs | 73 +++++++++++++++++++------------------------------------- 1 file changed, 24 insertions(+), 49 deletions(-) diff --git a/index.bs b/index.bs index 828a29f..e6b0535 100644 --- a/index.bs +++ b/index.bs @@ -2,7 +2,7 @@ Title: Media Session Standard Repository: w3c/mediasession Status: ED -ED: https://w3c.github.io/mediasession +ED: https://w3c.github.io/mediasession/ Shortname: mediasession Level: 1 Editor: Mounir Lamouri, w3cid 45389, Google Inc., mlamouri@google.com @@ -51,64 +51,34 @@ table td, table th {
 urlPrefix: https://html.spec.whatwg.org/multipage/; spec: HTML
     type: dfn
-        urlPrefix: infrastructure.html
-            text: case-sensitive; url: #case-sensitivity-and-string-comparison
-            text: ASCII case-insensitive; url: #ascii-case-insensitive
-            text: in parallel
+        urlPrefix: common-microsyntaxes.html
             text: unordered set of unique space-separated tokens; url: #unordered-set-of-unique-space-separated-tokens
-            text: document base url
-            text: MIME type
-        urlPrefix: embedded-content.html
+        urlPrefix: media.html
             text: media element
             text: muted; url: #concept-media-muted
-            text: pause event; url: #event-media-pause
-            text: play event; url: #event-media-play
             text: potentially playing
         urlPrefix: browsers.html
             text: browsing context
-            text: top-level browsing context
-            text: nested browsing context
         urlPrefix: webappapis.html
-            text: API base URL
             text: entry settings object
-            text: queue a task
-            text: task
-            text: task source
         urlPrefix: semantics.html
             text: link; for: HTMLLinkElement; url:#the-link-element
         urlPrefix: interaction.html
-            text: triggered by user activation
-    type: attribute
-        urlPrefix: semantics.html
-            text: sizes; for: HTMLLinkElement; url: #attr-link-sizes;
-urlPrefix: https://url.spec.whatwg.org/; spec: URL
-    type: dfn; urlPrefix: #concept-
-        text: url parser
-    type: dfn
-        text: absolute URL; url: #syntax-url-absolute
-        text: relative URL; url: #syntax-url-relative
+            text: activation notification
 urlPrefix: https://fetch.spec.whatwg.org/; spec: FETCH
     type: dfn; urlPrefix: #concept-
         text: fetch
-        text: request
-        text: context; url: request-context
-        text: context frame type; url: request-context-frame-type
         text: internal response
-        text: origin; url: request-origin
-        text: referrer; url: request-referrer
         text: response
         text: response type
-        text: url; url: request-url
     type: dfn;
         text: force Origin header flag
-urlPrefix: https://www.w3.org/TR/appmanifest/; spec: appmanifest
+urlPrefix: https://www.w3.org/TR/appmanifest/#dom-; spec: appmanifest
     type: dfn
-        text: image object; url: #dfn-image-object
-urlPrefix: https://heycam.github.io/webidl/
-    type: exception
-        text: TypeError
-urlPrefix: https://tc39.github.io/ecma262/#sec-object.; type: dfn
-    text: freeze
+        text: ImageResource
+urlPrefix: https://tc39.es/ecma262/#sec-object.; spec: WEBIDL;
+    type: dfn
+        text: freeze
 

Introduction

@@ -504,7 +474,7 @@ conforming IDL fragments, as described in the Web IDL specification. [[!WEBIDL]] that a media session action named action has been triggered, the user agent MUST run the handle media session action steps - as follows and consider it triggered by user activation: + as follows:
  1. If the active media session is null, abort these @@ -539,6 +509,11 @@ conforming IDL fragments, as described in the Web IDL specification. [[!WEBIDL]]
  2. +
  3. + Run the activation notification steps in the + browsing context associated with the + active media session. +

@@ -848,13 +823,13 @@ interface MediaSession {

- The setActionHandler() method, when + The setActionHandler(action, handler) method, when invoked, MUST run the update action handler algorithm with action and handler on the {{MediaSession}}.

- The setPositionState() method, when invoked + The setPositionState(state) method, when invoked MUST perform the following steps: