Bug 219207

Summary: Remove DataDetectorType::None, it's not appropriate for a enum used as an OptionSet
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: Sam Weinig <sam>
Status: NEW ---    
Severity: Normal CC: andersca, ews-watchlist, mifenton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch ews-feeder: commit-queue-

Description Sam Weinig 2020-11-20 09:15:08 PST
Remove DataDetectorType::None, it's not appropriate for a enum used as an OptionSet
Comment 1 Sam Weinig 2020-11-20 09:17:08 PST
Created attachment 414689 [details]
Patch
Comment 2 Anders Carlsson 2020-11-20 10:02:34 PST
Comment on attachment 414689 [details]
Patch

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

> Source/WebCore/page/Settings.yaml:97
> +      default: static_cast<DataDetectorType>(0)

Not sure how this is turned into C++ but I wonder if it's possible to make it be { } ?
Comment 3 Sam Weinig 2020-11-20 10:33:42 PST
(In reply to Anders Carlsson from comment #2)
> Comment on attachment 414689 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=414689&action=review
> 
> > Source/WebCore/page/Settings.yaml:97
> > +      default: static_cast<DataDetectorType>(0)
> 
> Not sure how this is turned into C++ but I wonder if it's possible to make
> it be { } ?

Hm, not sure. Will experiment with that.
Comment 4 Sam Weinig 2020-11-20 10:34:49 PST
Well, oops, looks like this breaks Debug tests due to an assert in OptionSet (which makes sense). Maybe { } will fair better.
Comment 5 Sam Weinig 2020-11-20 10:36:19 PST
Created attachment 414696 [details]
Patch
Comment 6 Radar WebKit Bug Importer 2020-11-27 09:16:13 PST
<rdar://problem/71766018>