RESOLVED FIXED 28941
Add webSocketEnabled flag in Settings
https://bugs.webkit.org/show_bug.cgi?id=28941
Summary Add webSocketEnabled flag in Settings
Fumitoshi Ukai
Reported 2009-09-03 02:41:26 PDT
Add webSocketEnabled flag in Settings to control WebSocket availability.
Attachments
add webSocketEnabled in Settings (2.44 KB, patch)
2009-09-03 02:47 PDT, Fumitoshi Ukai
no flags
rename webSocketsEnabled to experimentalWebSocketEnabled (17.08 KB, patch)
2009-09-28 04:46 PDT, Fumitoshi Ukai
eric: review+
commit-queue: commit-queue-
Fumitoshi Ukai
Comment 1 2009-09-03 02:47:09 PDT
Created attachment 38977 [details] add webSocketEnabled in Settings --- 3 files changed, 23 insertions(+), 0 deletions(-)
Eric Seidel (no email)
Comment 2 2009-09-04 00:25:16 PDT
Comment on attachment 38977 [details] add webSocketEnabled in Settings Why? This doesn't do anything yet? Are there other web sockets code paths you're about to add? Generally we don't add dead code (unless it's about to be used...), which seems to be exactly what this patch is doing.
Fumitoshi Ukai
Comment 3 2009-09-04 00:33:46 PDT
(In reply to comment #2) > (From update of attachment 38977 [details]) > Why? This doesn't do anything yet? Are there other web sockets code paths > you're about to add? Generally we don't add dead code (unless it's about to be > used...), which seems to be exactly what this patch is doing. I want this code to support --enable-web-sockets switch (in chromium). Will add hooks once WebSocket API code (bug 28038) is landed.
Mark Rowe (bdash)
Comment 4 2009-09-04 02:32:25 PDT
Why is it necessary for this to be a runtime setting rather than a compile-time choice?
Eric Seidel (no email)
Comment 5 2009-09-08 09:43:48 PDT
I expect his response will be that "chromium makes all new features command-line switches, so they need to be run-time switchable." Chromium is constantly shipping from tip of tree (the developer branch) so in-progress features like this default to off, but can be enabled by passing command-line switches.
Brett Wilson (Google)
Comment 6 2009-09-08 10:45:12 PDT
Eric is correct. We like to ship off trunk without worrying about half-completed features. On the dev channel, we can make a feature available for testing by interested devlopers, and still eventually push that build to stable without major changes.
Alexey Proskuryakov
Comment 7 2009-09-08 10:47:22 PDT
It would be nice to mention this policy on webkit-dev, along with some guidelines on when these runtime switches can be removed.
Eric Seidel (no email)
Comment 8 2009-09-08 10:52:08 PDT
Eric Seidel (no email)
Comment 9 2009-09-24 14:06:56 PDT
Comment on attachment 38977 [details] add webSocketEnabled in Settings My understanding of the new policy is that this should have "experimental" in the name.
Fumitoshi Ukai
Comment 10 2009-09-28 04:46:58 PDT
Created attachment 40226 [details] rename webSocketsEnabled to experimentalWebSocketEnabled
Eric Seidel (no email)
Comment 11 2009-09-28 11:40:06 PDT
Comment on attachment 40226 [details] rename webSocketsEnabled to experimentalWebSocketEnabled I dont' think the explicit resetDefaultsToConsistentValues reset calls are really necessary, but they're certainly not a bad idea either. LGTM. If you want this auto-committed, you'll need to set cq? as well. I can't remember if you're a committer yet or not.
WebKit Commit Bot
Comment 12 2009-09-28 19:00:56 PDT
Comment on attachment 40226 [details] rename webSocketsEnabled to experimentalWebSocketEnabled Rejecting patch 40226 from commit-queue. ukai@chromium.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py.
Fumitoshi Ukai
Comment 13 2009-09-28 19:02:56 PDT
(In reply to comment #12) > (From update of attachment 40226 [details]) > Rejecting patch 40226 from commit-queue. > > ukai@chromium.org does not have committer permissions according to > http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py. Hmm, I was too early to set commit-queue+?
WebKit Commit Bot
Comment 14 2009-09-28 20:31:48 PDT
Comment on attachment 40226 [details] rename webSocketsEnabled to experimentalWebSocketEnabled Rejecting patch 40226 from commit-queue. ukai@chromium.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py.
Eric Seidel (no email)
Comment 15 2009-09-29 01:41:06 PDT
Clearly you did not use bugzilla-tool to do the commit, or run the layout tests, since it looks like you broke all platforms: http://build.webkit.org/changes/1106 http://build.webkit.org/waterfall :( Assuming I'm reading the buildbot output correctly. I'm going to roll out this patch.
Eric Seidel (no email)
Comment 16 2009-09-29 01:41:55 PDT
(In reply to comment #13) > (In reply to comment #12) > > (From update of attachment 40226 [details] [details]) > > Rejecting patch 40226 from commit-queue. > > > > ukai@chromium.org does not have committer permissions according to > > http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py. > > Hmm, I was too early to set commit-queue+? No, you just haven't added yourself to committers.py yet. You can't set commit-queue+ until you do.
Eric Seidel (no email)
Comment 17 2009-09-29 01:44:25 PDT
I'm glad to see that you have commit bit now! But please get another committer to walk you through your next commit, since there were several process errors here. Most notably, you did not watch the bots after committing. You also did not update the bug with the committed revision (yes, we need to document that somewhere). And you did not close the bug after committing. bugzilla-tool land-diff can do all of these things for you, although you're also welcome to perform the actions manually.
Fumitoshi Ukai
Comment 18 2009-09-29 01:47:29 PDT
(In reply to comment #16) > (In reply to comment #13) > > (In reply to comment #12) > > > (From update of attachment 40226 [details] [details] [details]) > > > Rejecting patch 40226 from commit-queue. > > > > > > ukai@chromium.org does not have committer permissions according to > > > http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py. > > > > Hmm, I was too early to set commit-queue+? > > No, you just haven't added yourself to committers.py yet. You can't set > commit-queue+ until you do. I believe I added myself to committers.py (r48852) before I set commit-queue+...
Fumitoshi Ukai
Comment 19 2009-09-29 01:50:42 PDT
(In reply to comment #15) > Clearly you did not use bugzilla-tool to do the commit, or run the layout > tests, since it looks like you broke all platforms: > http://build.webkit.org/changes/1106 > http://build.webkit.org/waterfall > > :( > > Assuming I'm reading the buildbot output correctly. > > I'm going to roll out this patch. Sorry, I've prepared a fix in http://bugs.webkit.org/show_bug.cgi?id=29840. Do you roll back this? If so, I'll merge the fix here.
Eric Seidel (no email)
Comment 20 2009-09-29 01:52:38 PDT
(In reply to comment #18) > I believe I added myself to committers.py (r48852) before I set > commit-queue+... Sorry, that's my fault. I was running the commit-queue in a way such that it was not auto-updating committers.py correctly. I've fixed that now.
Eric Seidel (no email)
Comment 21 2009-09-29 01:54:43 PDT
My apologies for my aggressive tone above. It was undeserved. Thank you for so quick a response!
Fumitoshi Ukai
Comment 22 2009-09-29 02:01:19 PDT
(In reply to comment #21) > My apologies for my aggressive tone above. It was undeserved. Thank you for > so quick a response! No problem. I should be more carefully before I committed. Thanks for your help!
Fumitoshi Ukai
Comment 23 2009-09-29 02:01:57 PDT
Landed as r48861
Sam Weinig
Comment 24 2009-09-29 10:43:48 PDT
I am confused why this flag is called experimentalWebSocketsEnabled (I see in one comment it was stated this is a new rule. Where was this rule established). Do we plan on changing the setting once the implementation is done? Does this work for things like "WebSocket" in window? window.hasOwnProperty("WebSocket")?
Fumitoshi Ukai
Comment 25 2009-09-29 18:51:43 PDT
(In reply to comment #24) > I am confused why this flag is called experimentalWebSocketsEnabled (I see in > one comment it was stated this is a new rule. Where was this rule > established). In this thread? https://lists.webkit.org/pipermail/webkit-dev/2009-September/009881.html > Do we plan on changing the setting once the implementation is > done? Does this work for things like "WebSocket" in window? > window.hasOwnProperty("WebSocket")? I assumed a web developer would check with 'typeof window.WebSocket == "undefined"', as described in https://lists.webkit.org/pipermail/webkit-dev/2009-September/010000.html
Note You need to log in before you can comment on or make changes to this bug.