[Webkit-unassigned] [Bug 42265] Runtime feature switch for device orientation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 14 11:46:16 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=42265
--- Comment #13 from Steve Block <steveblock at google.com> 2010-07-14 11:46:15 PST ---
> Should we be creating this lazily on first use?
I don't think this is a big deal. The controller is a very thin shim. If we're to change this, let's change them all in a separate patch.
> WebKit/chromium/src/WebRuntimeFeatures.cpp:236
> + bool WebRuntimeFeatures::isDeviceOrientationEnabled()
> Interesting. I was going to say the same here, but I realized that we don't
> want it to say true when support isn't even compiled in. But then I realized I
> could say the same about what's in WebCore as well. I almost wonder if it
> should default to false if the feature isn't compiled in. But in that case, we
> should probably do the same for the other features.
I think that in general, we should use as few guards as possible. I think it's fine for the runtime feature to default to true, even if it's never used because the calling code is behind an enable guard.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list