Re: [w3c/manifest] Added CatchTypeError to all fields of WebAppManifest and other places. (#750)

The `WebAppManifest` dictionary now looks like this:

```idl
dictionary WebAppManifest {
   [CatchTypeError] TextDirectionType dir = "auto";
   [CatchTypeError] DOMString lang;
   [CatchTypeError] USVString name;
   [CatchTypeError] USVString short_name;
   [CatchTypeError] USVString description;
   [CatchTypeError] sequence<[CatchTypeError] ImageResource> icons;
   [CatchTypeError] sequence<[CatchTypeError] ImageResource> screenshots;
   [CatchTypeError] sequence<[CatchTypeError] USVString> categories;
   [CatchTypeError] DOMString iarc_rating_id;
   [CatchTypeError] USVString start_url;
   [CatchTypeError] DisplayModeType display = "browser";
   [CatchTypeError] OrientationLockType orientation;
   [CatchTypeError] USVString theme_color;
   [CatchTypeError] USVString background_color;
   [CatchTypeError] USVString scope;
   [CatchTypeError] ServiceWorkerRegistrationObject serviceworker;
   [CatchTypeError]
   sequence<[CatchTypeError] ExternalApplicationResource> related_applications;
   [CatchTypeError] boolean prefer_related_applications = "false";
};
```

Hmm. Perhaps we need a `[CatchAllTypeErrors]` extended attribute which we can put on a dictionary, to avoid having so much repetition.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/750#issuecomment-445701441

Received on Monday, 10 December 2018 06:26:01 UTC