From 18c815e94fa65de3088cc9a67e5284ba7b352ff6 Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Thu, 16 Nov 2017 18:50:48 +0000 Subject: [PATCH 1/2] Removing link rel=serviceworker for now. This is being removed as part of foreign fetch, but we may add it again once we have a better understanding of the use cases. --- source | 83 +--------------------------------------------------------- 1 file changed, 1 insertion(+), 82 deletions(-) diff --git a/source b/source index 249890067f8..21a9e231f8a 100755 --- a/source +++ b/source @@ -3915,7 +3915,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • service worker client
  • service worker registration
  • service worker type
  • -
  • serviceworker link
  • ServiceWorker interface
  • ServiceWorkerContainer interface
  • ServiceWorkerGlobalScope interface
  • @@ -13057,9 +13056,6 @@ interface HTMLBaseElement : HTMLElement {
    referrerpolicy
    sizes
    as
    -
    scope
    -
    updateviacache
    -
    workertype
    color
    Also, the title attribute has special semantics on this element.
    DOM interface:
    @@ -13079,9 +13075,6 @@ interface HTMLLinkElement : HTMLElement { [CEReactions] attribute DOMString type; [SameObject, PutForwards=value] readonly attribute DOMTokenList sizes; [CEReactions] attribute DOMString referrerPolicy; - [CEReactions] attribute USVString scope; - [CEReactions] attribute DOMString workerType; - [CEReactions] attribute DOMString updateViaCache; }; HTMLLinkElement implements LinkStyle; @@ -13124,8 +13117,7 @@ interface HTMLLinkElement : HTMLElement { prefetch, preload, prerender, - search, - serviceworker, and + search, and stylesheet. rel's supported tokens must only include the tokens from this list that the user agent implements the @@ -13283,32 +13275,6 @@ interface HTMLLinkElement : HTMLElement {
    -

    The scope attribute specifies the scope - url for a service worker registration. If the attribute is present, the value - must be a valid URL potentially surrounded by spaces. The attribute must not be - specified on link elements that do not have a rel - attribute that contains the serviceworker keyword.

    - -

    The updateviacache attribute - specifies the update via cache mode for a service worker registration. - It is an enumerated attribute. Each update via cache mode is a keyword - for this attribute, mapping to a state of the same name. The missing value default is - the imports state. The attribute must not be specified on link elements that - do not have a rel attribute that contains the - serviceworker keyword.

    - -

    The workertype attribute is an - enumerated attribute that specifies the service worker type for a - service worker registration. The attribute's keywords are classic and module, which map to the respective states - classic and module. The missing value default is the classic - state. There is an additional state, not represented by a keyword: the invalid state. The - invalid value default is the invalid state. The attribute must not be - specified on link elements that do not have a rel - attribute that contains the serviceworker keyword.

    - -
    -

    The color attribute is used with the mask-icon link type. The attribute must not be specified on link elements that do not have a rel attribute that contains the @@ -13356,14 +13322,6 @@ interface HTMLLinkElement : HTMLElement {

    The relList IDL attribute must reflect the rel content attribute.

    -

    The updateViaCache IDL attribute must - reflect the updateviacache content - attribute, limited to only known values.

    - -

    The workerType IDL attribute must - reflect the workertype content - attribute, limited to only known values.

    -
    Processing the media attribute

    If the link is a hyperlink then the media @@ -23610,14 +23568,6 @@ interface HTMLHyperlinkElementUtils { Gives a link to a resource that can be used to search through the current document and its related pages. - - serviceworker - Hyperlink - not allowed - · - Declares a service worker registration. - - stylesheet External Resource @@ -24266,22 +24216,6 @@ interface HTMLHyperlinkElementUtils { the search link type to enable user agents to autodiscover search interfaces.

    -
    Link - type "serviceworker"
    - -

    The serviceworker keyword may be used with - link elements. This keyword creates an external - resource link that is used to declare a service worker registration and its - script url, scope url, type, - and update via cache mode.

    - -

    User agents must implement the processing model for link-element - serviceworker links described in Service - Workers, using the href, scope, workertype, and - updateviacache attributes. -

    -
    Link type "stylesheet"
    @@ -117934,11 +117868,6 @@ interface External { "col"; "rowgroup"; "colgroup" - - scope - link - Scope url for a service worker registration (for rel="serviceworker") - Valid URL potentially surrounded by spaces selected option @@ -118126,11 +118055,6 @@ interface External { object Whether the type attribute and the Content-Type value need to match for the resource to be used Boolean attribute - - updateviacache - link - Update via cache mode for a service worker registration (for rel="serviceworker") - Update via cache mode usemap img; @@ -118180,11 +118104,6 @@ interface External { video Horizontal dimension Valid non-negative integer - - workertype - link - Service worker type for a service worker registration (for rel="serviceworker") - "classic"; "module" wrap textarea From 4dbee197e301acda0de854a6f0fb28027d13bc23 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Wed, 22 Nov 2017 18:01:08 +0900 Subject: [PATCH 2/2] Remove some remaining link rel=serviceworker bits --- source | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source b/source index 21a9e231f8a..b7539f11d9f 100755 --- a/source +++ b/source @@ -3909,16 +3909,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • control
  • handle fetch
  • match service worker registration
  • -
  • scope url
  • -
  • script url
  • service worker
  • service worker client
  • -
  • service worker registration
  • -
  • service worker type
  • ServiceWorker interface
  • ServiceWorkerContainer interface
  • ServiceWorkerGlobalScope interface
  • -
  • update via cache mode
  • @@ -13299,7 +13294,6 @@ interface HTMLLinkElement : HTMLElement { media, nonce, rel, - scope, sizes, and type each must reflect the respective content attributes of the same name.