Bug 217101

Summary: [WebIDL] Make Exposed mandatory for IDL interfaces
Product: WebKit Reporter: Sam Weinig <sam>
Component: BindingsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, calvaris, cdumez, changseok, cmarcelo, darin, dbarton, dino, eric.carlson, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, graouts, gyuyoung.kim, hi, hta, japhet, jer.noble, jiewen_tan, kangil.han, kondapallykalyan, macpherson, menard, mifenton, mmaxfield, pdr, philipj, sabouhallawa, schenney, sergio, tommyw, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Sam Weinig 2020-09-29 13:21:26 PDT
Let's bite the bullet and make Exposed mandatory for IDL interfaces (matching WebIDL), and stop the silliness of inferring Window.
Comment 1 Sam Weinig 2020-09-30 15:21:49 PDT
Created attachment 410157 [details]
Patch
Comment 2 Darin Adler 2020-09-30 15:48:15 PDT
Comment on attachment 410157 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=410157&action=review

> Source/WebCore/Modules/applepay/ApplePaySetup.idl:31
>      SecureContext,
> +    Exposed=Window

Looks like the existing ones above are sorted alphabetically, but this new one is not.
Comment 3 Darin Adler 2020-09-30 15:48:36 PDT
Comment on attachment 410157 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=410157&action=review

>> Source/WebCore/Modules/applepay/ApplePaySetup.idl:31
>> +    Exposed=Window
> 
> Looks like the existing ones above are sorted alphabetically, but this new one is not.

Many other cases like this.
Comment 4 Sam Weinig 2020-09-30 15:57:27 PDT
(In reply to Darin Adler from comment #3)
> Comment on attachment 410157 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=410157&action=review
> 
> >> Source/WebCore/Modules/applepay/ApplePaySetup.idl:31
> >> +    Exposed=Window
> > 
> > Looks like the existing ones above are sorted alphabetically, but this new one is not.
> 
> Many other cases like this.

I'm going to write a script to check this (like I just did with the preferences) or just make the parser enforce it.
Comment 5 EWS 2020-09-30 17:16:02 PDT
Committed r267813: <https://trac.webkit.org/changeset/267813>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 410157 [details].
Comment 6 Radar WebKit Bug Importer 2020-09-30 17:17:19 PDT
<rdar://problem/69815504>