Bug 167230 - Simplify InjectedBundle::overrideBoolPreferenceForTestRunner
Summary: Simplify InjectedBundle::overrideBoolPreferenceForTestRunner
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-19 22:04 PST by Joseph Pecoraro
Modified: 2017-05-12 06:45 PDT (History)
9 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (8.55 KB, patch)
2017-01-19 22:05 PST, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[PATCH] Proposed Fix (8.41 KB, patch)
2017-01-19 22:29 PST, Joseph Pecoraro
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (558.64 KB, application/zip)
2017-01-19 23:16 PST, Build Bot
no flags Details
[PATCH] Proposed Fix (7.87 KB, patch)
2017-01-20 21:56 PST, Joseph Pecoraro
joepeck: review-
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (535.98 KB, application/zip)
2017-01-20 22:43 PST, Build Bot
no flags Details
Archive of layout-test-results from ews124 for ios-simulator-wk2 (540.86 KB, application/zip)
2017-01-20 22:54 PST, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.