Bug 150087

Summary: [GTK] Fix build for ENABLE_FULLSCREEN_API=OFF
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: New BugsAssignee: Sergio Villar Senin <svillar>
Status: RESOLVED WONTFIX    
Severity: Normal CC: andersca, bdakin, berto, cgarcia, commit-queue, darin, gustavo, mcatanzaro, mrobinson, zan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mcatanzaro: review-

Sergio Villar Senin
Reported 2015-10-13 05:05:26 PDT
[GTK] Fix build for ENABLE_FULLSCREEN_API=OFF
Attachments
Patch (8.33 KB, patch)
2015-10-13 05:06 PDT, Sergio Villar Senin
mcatanzaro: review-
Sergio Villar Senin
Comment 1 2015-10-13 05:06:53 PDT
WebKit Commit Bot
Comment 2 2015-10-13 05:09:41 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Carlos Garcia Campos
Comment 3 2015-10-13 05:58:44 PDT
Why do we allow to build with fullscreen API disabled? Does it have any external dependency? or is it unstable or experimental feature?
Sergio Villar Senin
Comment 4 2015-10-13 06:58:23 PDT
(In reply to comment #3) > Why do we allow to build with fullscreen API disabled? Does it have any > external dependency? or is it unstable or experimental feature? No idea, but in any case that's a project decision, isn't it?
Darin Adler
Comment 5 2015-10-13 09:30:43 PDT
My view is that not every platform needs to support all ENABLE flags on and off. A feature can be “required always on” for a particular platform even before we remove the ability to turn it off entirely. And it would be OK to do that for GTK if the folks working on that platform prefer to do that.
Martin Robinson
Comment 6 2015-10-13 09:46:14 PDT
I think in the case of GTK+ it only makes sense to ensure that things build with combinations of the public CMake flags. Complicated permutations of the private ones can quickly grow out of hand and make the project harder to maintain. At least, that is what I believe we were aiming for when we made some private and some public.
Michael Catanzaro
Comment 7 2015-10-13 10:10:38 PDT
(In reply to comment #6) > I think in the case of GTK+ it only makes sense to ensure that things build > with combinations of the public CMake flags. Complicated permutations of the > private ones can quickly grow out of hand and make the project harder to > maintain. At least, that is what I believe we were aiming for when we made > some private and some public. Yes, that's half the intent behind the public/private option split: so that we have a much smaller subset of compilation options to support. (The other advantage is that the user has far fewer options to think about.) It would be good for other ports to adopt this strategy as well. (In reply to comment #4) > (In reply to comment #3) > > Why do we allow to build with fullscreen API disabled? Does it have any > > external dependency? or is it unstable or experimental feature? > > No idea, but in any case that's a project decision, isn't it? I can't think of any reason to disable this feature. Even if you don't imagine your users entering fullscreen mode, what is the harm of compiling it in? If there is some good justification to have it disabled (besides to avoid compiling a couple files), then maybe it should be a public option.
Michael Catanzaro
Comment 8 2015-12-31 14:16:13 PST
Comment on attachment 262984 [details] Patch If we're going to add #ifdefs to allow turning off ENABLE_FULLSCREEN_API, then we should make the option public. But we should only make it public if there's a very strong reason to allow turning it off. We have enough build options already.
Sergio Villar Senin
Comment 9 2016-09-19 08:11:55 PDT
Let's close this.
Note You need to log in before you can comment on or make changes to this bug.