Bug 187047

Summary: Promote some experimental features to traditional features
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, dino, mcatanzaro, mjs, rniwa, simon.fraser, webkit-bug-importer, wenson_hsieh, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
simon.fraser: review+, thorton: commit-queue+
patch for cq none

Description Tim Horton 2018-06-26 08:37:15 PDT
Promote some experimental features to traditional features
Comment 1 Tim Horton 2018-06-26 08:37:41 PDT
Created attachment 343604 [details]
Patch
Comment 2 Michael Catanzaro 2018-06-26 08:51:14 PDT
Comment on attachment 343604 [details]
Patch

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

> Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp:127
> -    RuntimeEnabledFeatures::sharedFeatures().setCacheAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::cacheAPIEnabledKey()));
> +    RuntimeEnabledFeatures::sharedFeatures().setCacheAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::serviceWorkersEnabledKey()));

I'm not sure I like this, but I agree that it makes sense to tie these settings together... and we probably don't want to get into the rabbit hole of having runtime options depend on each other, like we do for build options.
Comment 3 Tim Horton 2018-06-26 09:16:59 PDT
(In reply to Michael Catanzaro from comment #2)
> Comment on attachment 343604 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=343604&action=review
> 
> > Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp:127
> > -    RuntimeEnabledFeatures::sharedFeatures().setCacheAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::cacheAPIEnabledKey()));
> > +    RuntimeEnabledFeatures::sharedFeatures().setCacheAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::serviceWorkersEnabledKey()));
> 
> I'm not sure I like this, but I agree that it makes sense to tie these
> settings together... and we probably don't want to get into the rabbit hole
> of having runtime options depend on each other, like we do for build options.

This plan came from some of the SW people, so I Cc’d them so they could comment.
Comment 4 Tim Horton 2018-06-26 09:18:59 PDT
Ahh, it doesn’t work because it doesn’t turn on the WebCore RuntimeEnabledFeature.
Comment 5 Tim Horton 2018-06-26 09:21:59 PDT
Created attachment 343609 [details]
Patch
Comment 6 WebKit Commit Bot 2018-06-26 11:31:05 PDT
Comment on attachment 343609 [details]
Patch

Rejecting attachment 343609 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 343609, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

contributors.json is malformed: Expecting property name enclosed in double quotes: line 166 column 4 (char 3586)

Full output: https://webkit-queues.webkit.org/results/8349424
Comment 7 Michael Catanzaro 2018-06-26 11:35:50 PDT
(In reply to WebKit Commit Bot from comment #6)
> contributors.json is malformed: Expecting property name enclosed in double
> quotes: line 166 column 4 (char 3586)

Tim, I think it's complaining about the trailing comma that you added in r233209... try removing that comma.
Comment 8 Tim Horton 2018-06-26 11:59:47 PDT
Created attachment 343627 [details]
patch for cq
Comment 9 WebKit Commit Bot 2018-06-26 12:27:51 PDT
Comment on attachment 343627 [details]
patch for cq

Clearing flags on attachment: 343627

Committed r233215: <https://trac.webkit.org/changeset/233215>
Comment 10 WebKit Commit Bot 2018-06-26 12:27:53 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2018-06-26 12:28:43 PDT
<rdar://problem/41484261>