Bug 97655

Summary: [WK2] WebKitTestRunner should enable <style scoped> support for testing
Product: WebKit Reporter: Zan Dobersek <zan>
Component: WebKitGTKAssignee: Zan Dobersek <zan>
Status: RESOLVED INVALID    
Severity: Normal CC: benjamin, koivisto, mrobinson, philn, pnormand, sam, svillar, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Rebased patch
none
Updated patch
none
Patch
none
Patch
none
Patch none

Zan Dobersek
Reported 2012-09-26 04:23:31 PDT
Currently the <style scoped> support is enabled by default at compile-time, but should also be enabled at runtime in WebKitTestRunner. The feature was enabled (along with proper support in DumpRenderTree) in r129604. http://trac.webkit.org/changeset/129604
Attachments
Patch (5.81 KB, patch)
2012-10-01 01:16 PDT, Zan Dobersek
no flags
Rebased patch (5.38 KB, patch)
2012-12-26 09:30 PST, Zan Dobersek
no flags
Updated patch (7.08 KB, patch)
2012-12-27 00:30 PST, Zan Dobersek
no flags
Patch (6.74 KB, patch)
2012-12-30 00:02 PST, Zan Dobersek
no flags
Patch (7.29 KB, patch)
2012-12-30 01:22 PST, Zan Dobersek
no flags
Patch (6.24 KB, patch)
2013-01-17 11:15 PST, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2012-10-01 01:16:57 PDT
Build Bot
Comment 2 2012-10-01 01:38:57 PDT
Build Bot
Comment 3 2012-10-01 01:41:46 PDT
Zan Dobersek
Comment 4 2012-10-01 02:39:44 PDT
The build failures indicate the forwarding header for RuntimeEnabledFeatures.h isn't generated on mac and win platforms. Don't really know if this is a real problem or just a build system fluke (i.e. whether it would require a clean build on those two platforms when the patch lands).
Zan Dobersek
Comment 5 2012-12-26 09:30:18 PST
Created attachment 180752 [details] Rebased patch
Martin Robinson
Comment 6 2012-12-26 09:32:45 PST
Comment on attachment 180752 [details] Rebased patch Shouldn't this patch also unskip some tests?
Zan Dobersek
Comment 7 2012-12-27 00:30:51 PST
Created attachment 180776 [details] Updated patch Also removes failure expectations from the gtk-wk2 TestExpectations file.
Martin Robinson
Comment 8 2012-12-27 10:00:18 PST
Comment on attachment 180776 [details] Updated patch Okay. This looks good to me, though I don't understand how these tests pass for other WebKit2 ports. It would be good to have the final review done by one of the core WK2 maintainers.
Sam Weinig
Comment 9 2012-12-29 13:54:05 PST
Since this doesn't just touch GTK code, taking off the [GTK] prefix.
Sam Weinig
Comment 10 2012-12-29 13:56:19 PST
This patch seems to add a declaration for WKPreferencesGetStyleScopedEnabled but no implementation.
Zan Dobersek
Comment 11 2012-12-30 00:02:52 PST
Early Warning System Bot
Comment 12 2012-12-30 00:08:00 PST
Build Bot
Comment 13 2012-12-30 00:12:05 PST
EFL EWS Bot
Comment 14 2012-12-30 00:13:02 PST
Zan Dobersek
Comment 15 2012-12-30 01:22:31 PST
Benjamin Poulain
Comment 16 2013-01-08 18:20:43 PST
I don't know anything about the state of STYLE_SCOPED's implementation so correct me if I am wrong. I suppose StyleScoped is a RuntimeEnabledFeatures because the feature is not ready(?). As soon as it will be in a good state, we can remove all that jazz and just enable it by default. If that is the case, can't you just hack something in GTK's injected bundle instead of extending WKPreferences? Why do you want to enable a experimental feature? Are you planning to work on it?
Zan Dobersek
Comment 17 2013-01-09 00:08:25 PST
(In reply to comment #16) > I don't know anything about the state of STYLE_SCOPED's implementation so correct me if I am wrong. > > I suppose StyleScoped is a RuntimeEnabledFeatures because the feature is not ready(?). As soon as it will be in a good state, we can remove all that jazz and just enable it by default. > > If that is the case, can't you just hack something in GTK's injected bundle instead of extending WKPreferences? I see, it doesn't make any sense to expose API for enabling a feature that might not be compiled at all. There might be other features in a similar position as well. I'll concoct something that performs the required through the injected bundle. > Why do you want to enable a experimental feature? Are you planning to work on it? No, I'm trying to provide test coverage in WKTR much like it's provided in Gtk's DRT since the feature is enabled in development builds.
Benjamin Poulain
Comment 18 2013-01-09 00:12:54 PST
> > Why do you want to enable a experimental feature? Are you planning to work on it? > > No, I'm trying to provide test coverage in WKTR much like it's provided in Gtk's DRT since the feature is enabled in development builds. "Because WebKit1 has it" is not really the answer I was expecting. :) Why is it enabled on GTK's DRT? If you are not actually working on the feature, or deploying it, it might just be causing some unnecessary pain.
Zan Dobersek
Comment 19 2013-01-09 00:34:50 PST
(In reply to comment #18) > > > Why do you want to enable a experimental feature? Are you planning to work on it? > > > > No, I'm trying to provide test coverage in WKTR much like it's provided in Gtk's DRT since the feature is enabled in development builds. > > "Because WebKit1 has it" is not really the answer I was expecting. :) > Why is it enabled on GTK's DRT? If you are not actually working on the feature, or deploying it, it might just be causing some unnecessary pain. Enabling and testing the feature while it's in the implementation process gives valuable test coverage and change feedback to people who are doing the implementation. The pain of managing the test expectations does not occur that often, but I believe is appreciated by the implementors. It also saves some time and stress when the feature is deemed stable enough to enable it by default.
Benjamin Poulain
Comment 20 2013-01-09 00:49:15 PST
Comment on attachment 180951 [details] Patch > Enabling and testing the feature while it's in the implementation process gives valuable test coverage and change feedback to people who are doing the implementation. The pain of managing the test expectations does not occur that often, but I believe is appreciated by the implementors. > > It also saves some time and stress when the feature is deemed stable enough to enable it by default. Fair enough. If you don't mind the rebaselines :) I r- this one until you look at a simpler way to enable this for GTK. Feel free to r? back if needed.
Zan Dobersek
Comment 21 2013-01-17 11:15:51 PST
Andreas Kling
Comment 22 2014-02-05 11:09:15 PST
Comment on attachment 183225 [details] Patch Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
Martin Robinson
Comment 23 2014-03-08 12:04:14 PST
Style scoped support is gone for the moment.
Note You need to log in before you can comment on or make changes to this bug.