RESOLVED FIXED Bug 207481
[DRT] InternalSettingsGenerated::resetToConsistentState() may override TestOptions::enableBackForwardCache
https://bugs.webkit.org/show_bug.cgi?id=207481
Summary [DRT] InternalSettingsGenerated::resetToConsistentState() may override TestOp...
Chris Dumez
Reported 2020-02-10 10:50:11 PST
InternalSettingsGenerated::resetToConsistentState() may override TestOptions such as enableBackForwardCache. This is causing issues such as the back/forward cache sometimes getting enabled on tests where TestOptions::enableBackForwardCache() is false, because a previous test has enabled the back/forward cache.
Attachments
Patch (2.24 KB, patch)
2020-02-10 10:52 PST, Chris Dumez
no flags
Patch (2.51 KB, patch)
2020-02-10 16:09 PST, Chris Dumez
no flags
Patch (5.16 KB, patch)
2020-03-13 15:41 PDT, Chris Dumez
no flags
Patch (6.16 KB, patch)
2020-03-13 15:58 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2020-02-10 10:52:34 PST
Alexey Proskuryakov
Comment 2 2020-02-10 13:21:56 PST
Comment on attachment 390265 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390265&action=review > Tools/DumpRenderTree/mac/DumpRenderTree.mm:1927 > + resetWebPreferencesToConsistentValues(); > + setWebPreferencesForTestOptions(options); I recall that we had bugs fixed by moving various "reset preferences" calls around in the past too. Probably not these exact ones. Can you add a comment explaining the invariant that need to be maintained ("do this after ... because ...")? That will help keep this fix preserved for longer. And maybe even a pair of regression tests that reproduces this directly and reliably?
Chris Dumez
Comment 3 2020-02-10 16:09:20 PST
WebKit Commit Bot
Comment 4 2020-02-10 16:53:41 PST
Comment on attachment 390307 [details] Patch Clearing flags on attachment: 390307 Committed r256232: <https://trac.webkit.org/changeset/256232>
WebKit Commit Bot
Comment 5 2020-02-10 16:53:43 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2020-02-10 16:54:15 PST
Chris Dumez
Comment 7 2020-03-13 15:32:34 PDT
Reverted r256232 for reason: Caused ResizeObserver tests to become flaky Committed r258438: <https://trac.webkit.org/changeset/258438>
Chris Dumez
Comment 8 2020-03-13 15:41:36 PDT
Chris Dumez
Comment 9 2020-03-13 15:58:51 PDT
WebKit Commit Bot
Comment 10 2020-03-15 18:17:07 PDT
Comment on attachment 393550 [details] Patch Clearing flags on attachment: 393550 Committed r258482: <https://trac.webkit.org/changeset/258482>
WebKit Commit Bot
Comment 11 2020-03-15 18:17:09 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.