Bug 213084

Summary: Replace uses of black/white list with block/allow list
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, benjamin, ews-watchlist, fpizlo, ggaren, gskachkov, guijemont, hi, joepeck, keith_miller, mark.lam, msaboff, rmorisset, ross.kirsling, ticaiolima, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=214371
Bug Depends on:    
Bug Blocks: 213092    
Attachments:
Description Flags
patch
keith_miller: review+
patch for landing none

Description Saam Barati 2020-06-11 11:05:05 PDT
...
Comment 1 Keith Miller 2020-06-11 11:13:32 PDT
Less important than just making the change but exclude/include might fit better too, depending on the context.
Comment 2 Saam Barati 2020-06-11 11:18:19 PDT
Created attachment 401659 [details]
patch
Comment 3 Keith Miller 2020-06-11 11:19:01 PDT
Comment on attachment 401659 [details]
patch

r=me.
Comment 4 EWS Watchlist 2020-06-11 11:19:16 PDT
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`)
Comment 5 Mark Lam 2020-06-11 11:23:39 PDT
Comment on attachment 401659 [details]
patch

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

> Source/JavaScriptCore/inspector/scripts/codegen/objc_generator.py:134
> +        allowlist = set(ObjCGenerator.DOMAINS_TO_GENERATE)

Capitalize the L to be consistent with how we do it elsewhere?

> Source/JavaScriptCore/tools/FunctionAllowList.cpp:2
> + * Copyright (C) 2014, 2016, 2020 Apple Inc. All rights reserved.

Just use "2014-2020" instead.

> Source/JavaScriptCore/tools/FunctionAllowList.h:2
> + * Copyright (C) 2014, 2016, 2020 Apple Inc. All rights reserved.

Ditto.
Comment 6 Saam Barati 2020-06-11 11:31:39 PDT
Comment on attachment 401659 [details]
patch

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

>> Source/JavaScriptCore/inspector/scripts/codegen/objc_generator.py:134
>> +        allowlist = set(ObjCGenerator.DOMAINS_TO_GENERATE)
> 
> Capitalize the L to be consistent with how we do it elsewhere?

I should probably do
allow_list to be consistent in this file.
Comment 7 Ross Kirsling 2020-06-11 11:35:37 PDT
Comment on attachment 401659 [details]
patch

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

Personally I'd vote for a lowercase "l", but whichever works.

> Source/JavaScriptCore/tools/FunctionAllowList.h:35
> +class FunctionWhitelist {

Seems like this file got renamed but its contents weren't updated?
Comment 8 Saam Barati 2020-06-11 11:40:53 PDT
Comment on attachment 401659 [details]
patch

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

>> Source/JavaScriptCore/tools/FunctionAllowList.h:35
>> +class FunctionAllowList {
> 
> Seems like this file got renamed but its contents weren't updated?

This is just bugzilla showing diff in two parts I believe
Comment 9 Saam Barati 2020-06-11 12:31:28 PDT
Created attachment 401669 [details]
patch for landing
Comment 10 EWS 2020-06-11 15:47:26 PDT
Committed r262928: <https://trac.webkit.org/changeset/262928>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 401669 [details].
Comment 11 Radar WebKit Bug Importer 2020-06-11 15:48:18 PDT
<rdar://problem/64273619>
Comment 12 Filip Pizlo 2020-07-15 12:46:56 PDT
R=me too.