Bug 173994 - Make Legacy EME API controlled by RuntimeEnabled setting.
Summary: Make Legacy EME API controlled by RuntimeEnabled setting.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-06-29 16:46 PDT by Jer Noble
Modified: 2017-06-30 14:14 PDT (History)
6 users (show)

See Also:


Attachments
Patch (33.22 KB, patch)
2017-06-29 16:52 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-elcapitan (1.10 MB, application/zip)
2017-06-29 18:14 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-elcapitan (1.80 MB, application/zip)
2017-06-29 18:40 PDT, Build Bot
no flags Details
Patch (34.23 KB, patch)
2017-06-30 10:33 PDT, Jer Noble
sam: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2017-06-29 16:46:06 PDT
Make Legacy EME API controlled by RuntimeEnabled setting.
Comment 1 Jer Noble 2017-06-29 16:52:45 PDT
Created attachment 314188 [details]
Patch
Comment 2 Sam Weinig 2017-06-29 16:54:43 PDT
Can this use Settings instead? If these is something missing from the bindings generator that is prohibiting it, I can add that. Note, that [EnabledBySetting] works in most cases.
Comment 3 Jer Noble 2017-06-29 17:07:54 PDT
(In reply to Sam Weinig from comment #2)
> Can this use Settings instead? If these is something missing from the
> bindings generator that is prohibiting it, I can add that. Note, that
> [EnabledBySetting] works in most cases.

A setting is fine with me; I'll update the patch.
Comment 4 Sam Weinig 2017-06-29 17:50:27 PDT
(In reply to Jer Noble from comment #3)
> (In reply to Sam Weinig from comment #2)
> > Can this use Settings instead? If these is something missing from the
> > bindings generator that is prohibiting it, I can add that. Note, that
> > [EnabledBySetting] works in most cases.
> 
> A setting is fine with me; I'll update the patch.

Hm, I may have spoken too fast. I'm not sure you can disable an entire interface with settings yet. I'll add that.
Comment 5 Build Bot 2017-06-29 18:14:37 PDT Comment hidden (obsolete)
Comment 6 Build Bot 2017-06-29 18:14:38 PDT
Created attachment 314198 [details]
Archive of layout-test-results from ews103 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 7 Build Bot 2017-06-29 18:40:51 PDT Comment hidden (obsolete)
Comment 8 Build Bot 2017-06-29 18:40:52 PDT
Created attachment 314202 [details]
Archive of layout-test-results from ews114 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 9 Sam Weinig 2017-06-29 20:44:32 PDT
(In reply to Sam Weinig from comment #4)
> (In reply to Jer Noble from comment #3)
> > (In reply to Sam Weinig from comment #2)
> > > Can this use Settings instead? If these is something missing from the
> > > bindings generator that is prohibiting it, I can add that. Note, that
> > > [EnabledBySetting] works in most cases.
> > 
> > A setting is fine with me; I'll update the patch.
> 
> Hm, I may have spoken too fast. I'm not sure you can disable an entire
> interface with settings yet. I'll add that.

Actually, you can. Jeeze, I'm having trouble remember what works tonight.
Comment 10 Jer Noble 2017-06-30 10:28:04 PDT
(In reply to Sam Weinig from comment #9)
> (In reply to Sam Weinig from comment #4)
> > (In reply to Jer Noble from comment #3)
> > > (In reply to Sam Weinig from comment #2)
> > > > Can this use Settings instead? If these is something missing from the
> > > > bindings generator that is prohibiting it, I can add that. Note, that
> > > > [EnabledBySetting] works in most cases.
> > > 
> > > A setting is fine with me; I'll update the patch.
> > 
> > Hm, I may have spoken too fast. I'm not sure you can disable an entire
> > interface with settings yet. I'll add that.
> 
> Actually, you can. Jeeze, I'm having trouble remember what works tonight.

Sam and I looked into this, and there's a bug in the bindings if you use both EnabledAtRuntime and EnabledBySetting on a window exposed object.  So I'll just use RuntimeEnabledFeature for this now, and he'll fix everything at once at a later date.
Comment 11 Jer Noble 2017-06-30 10:33:45 PDT
Created attachment 314273 [details]
Patch
Comment 12 Sam Weinig 2017-06-30 13:26:24 PDT
Comment on attachment 314273 [details]
Patch

Actually...just kidding! r=me
Comment 13 WebKit Commit Bot 2017-06-30 14:00:17 PDT
Comment on attachment 314273 [details]
Patch

Rejecting attachment 314273 [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-03', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 314273, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
.webkit.org/git/WebKit
   f2ed8ac..d216288  master     -> origin/master
Partial-rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ...
Currently at 219009 = f2ed8acf000e1b135354e2a6f639957f7f85266a
r219010 = d216288f7701c4470c504e3ad9e58f929677c6ab
Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc
First, rewinding head to replay your work on top of it...
Fast-forwarded master to refs/remotes/origin/master.

Full output: http://webkit-queues.webkit.org/results/4028343
Comment 14 Jer Noble 2017-06-30 14:04:30 PDT
Committed r219012: <http://trac.webkit.org/changeset/219012>
Comment 15 Radar WebKit Bug Importer 2017-06-30 14:14:12 PDT
<rdar://problem/33084847>