RESOLVED FIXED 204785
Web Inspector: add WI.EngineeringSetting and WI.DebugSetting to avoid callsite checking
https://bugs.webkit.org/show_bug.cgi?id=204785
Summary Web Inspector: add WI.EngineeringSetting and WI.DebugSetting to avoid callsit...
Devin Rousso
Reported 2019-12-02 22:38:22 PST
We have lots of `WI.isEngineeringBuild && WI.settings.engineering___.value` anywhere we need to use engineering settings (similar case for debug settings), when in reality the callsites really don't need to be concerned with this logic. Ideally, they'd just get the engineering/debug setting's value and the value getter itself would know whether to use the actual value or the default value based on `WI.isEngineeringBuild`/`WI.isDebugUIEnabled`.
Attachments
Patch (24.24 KB, patch)
2019-12-02 22:43 PST, Devin Rousso
no flags
Patch (24.26 KB, patch)
2019-12-05 14:13 PST, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-12-02 22:43:00 PST
WebKit Commit Bot
Comment 2 2019-12-05 12:19:27 PST Comment hidden (obsolete)
Devin Rousso
Comment 3 2019-12-05 14:13:09 PST
WebKit Commit Bot
Comment 4 2019-12-05 14:48:56 PST
Comment on attachment 384947 [details] Patch Clearing flags on attachment: 384947 Committed r253172: <https://trac.webkit.org/changeset/253172>
WebKit Commit Bot
Comment 5 2019-12-05 14:48:58 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2019-12-05 14:49:20 PST
Joseph Pecoraro
Comment 7 2019-12-05 16:30:47 PST
Nice!
Note You need to log in before you can comment on or make changes to this bug.