Bug 156778 - WebIDL: [StrictTypeChecking] should be the default behavior
Summary: WebIDL: [StrictTypeChecking] should be the default behavior
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 157321 157467
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-19 19:27 PDT by Chris Dumez
Modified: 2016-05-08 19:13 PDT (History)
3 users (show)

See Also:


Attachments
WIP patch (28.28 KB, patch)
2016-04-19 20:18 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-04-19 19:27:30 PDT
We currently have to explicitly use [StrictTypeChecking] in order to get standard behavior. Of course, every one forget. We need to flip it so [StrictTypeChecking] becomes the default and we can use a [LegacyTreatWrongTypeAsNull] attribute for existing IDL code.

Relevant spec:
http://heycam.github.io/webidl/#es-interface
http://heycam.github.io/webidl/#es-nullable-type
Comment 1 Chris Dumez 2016-04-19 20:18:52 PDT
Created attachment 276796 [details]
WIP patch
Comment 2 Chris Dumez 2016-04-19 20:21:39 PDT
Comment on attachment 276796 [details]
WIP patch

Wrong bug