RESOLVED DUPLICATE of bug 205844 205753
The "ITP Database Backend" flag is not working correctly
https://bugs.webkit.org/show_bug.cgi?id=205753
Summary The "ITP Database Backend" flag is not working correctly
Kate Cheney
Reported 2020-01-03 15:37:36 PST
Since being turned on-by-default, the ITP Database flag has stopped working correctly.
Attachments
Patch (5.93 KB, patch)
2020-01-03 16:49 PST, Kate Cheney
dino: review+
Radar WebKit Bug Importer
Comment 1 2020-01-03 15:38:58 PST
Kate Cheney
Comment 2 2020-01-03 16:49:34 PST
Dean Jackson
Comment 3 2020-01-05 14:40:34 PST
Comment on attachment 386730 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=386730&action=review > Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:402 > + if (!isITPDatabaseEnabledValue) > + parameters.shouldEnableITPDatabase = m_defaultPageGroup->preferences().isITPDatabaseEnabled(); > + else > + parameters.shouldEnableITPDatabase = isITPDatabaseEnabledValue.boolValue; I think this conditional should be reversed. i.e. if the value from user prefs exists, use it, otherwise go to the page group defaults.
Kate Cheney
Comment 4 2020-01-06 08:41:17 PST
(In reply to Dean Jackson from comment #3) > Comment on attachment 386730 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=386730&action=review > > > Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:402 > > + if (!isITPDatabaseEnabledValue) > > + parameters.shouldEnableITPDatabase = m_defaultPageGroup->preferences().isITPDatabaseEnabled(); > > + else > > + parameters.shouldEnableITPDatabase = isITPDatabaseEnabledValue.boolValue; > > I think this conditional should be reversed. i.e. if the value from user > prefs exists, use it, otherwise go to the page group defaults. I agree, that order is more readable. I'll change it before landing. These api test failures also look concerning, I'll investigate.
Kate Cheney
Comment 5 2020-01-13 12:58:50 PST
this was fixed (along with the failing api tests) in https://bugs.webkit.org/show_bug.cgi?id=205844
Kate Cheney
Comment 6 2020-01-13 12:59:19 PST
*** This bug has been marked as a duplicate of bug 205844 ***
Note You need to log in before you can comment on or make changes to this bug.