WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
217042
[Preferences] Generate base preferences for WebKitLegacy
https://bugs.webkit.org/show_bug.cgi?id=217042
Summary
[Preferences] Generate base preferences for WebKitLegacy
Sam Weinig
Reported
2020-09-27 12:47:45 PDT
[Preferences] Generate base preferences for WebKitLegacy
Attachments
Patch
(112.67 KB, patch)
2020-09-27 13:12 PDT
,
Sam Weinig
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(112.75 KB, patch)
2020-09-27 14:29 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2020-09-27 13:12:02 PDT
Created
attachment 409856
[details]
Patch
Sam Weinig
Comment 2
2020-09-27 14:29:09 PDT
Created
attachment 409859
[details]
Patch
Sam Weinig
Comment 3
2020-09-27 15:01:44 PDT
For those playing along, the steps after this lands are: - Move yaml files and GeneratePreferences.rb to WTF (installing them $SDKROOT/usr/local/include/wtf/preferences/?) and adopt in WebKitLegacy - Adopt in WebKit - Adopt in WebCore, removing need for separate Settings.yaml file. Past this, I'm not 100% sure, but the goal will be to utilize this work for DumpRenderTree and WebKitTestRunner. One idea, that I am not super fond of, but has some merit, would be to add an additional key to the yaml files called 'testingDefaultValue' that could be used to replace the need for DumpRenderTree / WebKitTestRunner to override things manually. Another idea, that is not really mutually exclusive with the previous one, would be to extend the existing "test header" system (where you can enable features with a comment at the top of a test) to support all preferences automatically. In addition to automating the mapping of strings to preferences, we could consider allowing per-directory "manifest" files that specify what preferences to enabled / disable for the entire directory. We could then consider expanding on that to allow specifying features that are *required*, to make it more clear why tests are being skipped then the current use of TestExpectations. In addition to making testing easier, there are bunch of loose ends to make nicer in GeneratePreferences.rb, such as dealing with enums in a better way, and allowing a frontend (WebKit or WebKitLegacy) to specify that feature is not supported at all, and should not be configurable, and have the right default value set in WebCore::Settings.
Simon Fraser (smfr)
Comment 4
2020-09-27 18:38:28 PDT
Comment on
attachment 409859
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=409859&action=review
> Source/WebKitLegacy/mac/WebView/WebView.mm:3106 > + // FIXME: Is this relevent to WebKitLegacy? If not, we should rmeove it.
rmeove
EWS
Comment 5
2020-09-27 18:42:27 PDT
Committed
r267689
: <
https://trac.webkit.org/changeset/267689
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 409859
[details]
.
Radar WebKit Bug Importer
Comment 6
2020-09-27 18:43:18 PDT
<
rdar://problem/69671644
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug