Remove DataDetectorType::None, it's not appropriate for a enum used as an OptionSet
Created attachment 414689 [details] Patch
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 { } ?
(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.
Well, oops, looks like this breaks Debug tests due to an assert in OptionSet (which makes sense). Maybe { } will fair better.
Created attachment 414696 [details] Patch
<rdar://problem/71766018>
@Ryan - you landed this: https://github.com/WebKit/WebKit/commit/8cf368ed3d211063f591761aaa24bf3d5e4deda3 After above, is this required? Or we can do further clean-up?
@Ahmad That patch was written by Richard Robinson.