Bug 167230

Summary: Simplify InjectedBundle::overrideBoolPreferenceForTestRunner
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Tools / TestsAssignee: Joseph Pecoraro <joepeck>
Status: NEW ---    
Severity: Normal CC: buildbot, dbates, dino, fred.wang, joepeck, lforschler, rniwa, sam, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[PATCH] Proposed Fix
none
[PATCH] Proposed Fix
buildbot: commit-queue-
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
none
[PATCH] Proposed Fix
joepeck: review-, buildbot: commit-queue-
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
none
Archive of layout-test-results from ews124 for ios-simulator-wk2 none

Description Joseph Pecoraro 2017-01-19 22:04:08 PST
Simplify InjectedBundle::overrideBoolPreferenceForTestRunner

This path of toggling preferences should only be used for WebKit2 level settings.

- When setting a WebCore::Setting tests can just use internals.settings.setFoo()
- When setting a RuntimeEnabledFeature no good approach exists yet, but this is not ideal.

In any case the majority of these are not being used currently, so we should stop the pattern of adding code here that isn't getting used.
Comment 1 Joseph Pecoraro 2017-01-19 22:05:57 PST
Created attachment 299317 [details]
[PATCH] Proposed Fix
Comment 2 Joseph Pecoraro 2017-01-19 22:29:54 PST
Created attachment 299320 [details]
[PATCH] Proposed Fix
Comment 3 Joseph Pecoraro 2017-01-19 22:45:08 PST
Comment on attachment 299320 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=299320&action=review

> Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp:-166
> -#if ENABLE(SERVICE_CONTROLS)

Need to add this back around this particular control I guess. Won't know why my local builds didn't see this...
Comment 4 Build Bot 2017-01-19 23:16:34 PST
Comment on attachment 299320 [details]
[PATCH] Proposed Fix

Attachment 299320 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2918778

Number of test failures exceeded the failure limit.
Comment 5 Build Bot 2017-01-19 23:16:38 PST
Created attachment 299323 [details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 6 Joseph Pecoraro 2017-01-20 12:18:20 PST
Once bug 167115 lands (in commit-queue) then we can remove more, so holding off on this until later today.
Comment 7 Joseph Pecoraro 2017-01-20 21:56:03 PST
Created attachment 299425 [details]
[PATCH] Proposed Fix
Comment 8 Build Bot 2017-01-20 22:43:18 PST
Comment on attachment 299425 [details]
[PATCH] Proposed Fix

Attachment 299425 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2924140

Number of test failures exceeded the failure limit.
Comment 9 Build Bot 2017-01-20 22:43:22 PST
Created attachment 299426 [details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 10 Build Bot 2017-01-20 22:54:10 PST
Comment on attachment 299425 [details]
[PATCH] Proposed Fix

Attachment 299425 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2924145

Number of test failures exceeded the failure limit.
Comment 11 Build Bot 2017-01-20 22:54:13 PST
Created attachment 299427 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.6
Comment 12 Joseph Pecoraro 2017-01-20 22:55:22 PST
Comment on attachment 299425 [details]
[PATCH] Proposed Fix

Whoa, the TestRunner APIs end up re-using this path... Might need to keep some of these.