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

Description Zan Dobersek 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
Comment 1 Zan Dobersek 2012-10-01 01:16:57 PDT
Created attachment 166422 [details]
Patch
Comment 2 Build Bot 2012-10-01 01:38:57 PDT
Comment on attachment 166422 [details]
Patch

Attachment 166422 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/14078838
Comment 3 Build Bot 2012-10-01 01:41:46 PDT
Comment on attachment 166422 [details]
Patch

Attachment 166422 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/14074764
Comment 4 Zan Dobersek 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).
Comment 5 Zan Dobersek 2012-12-26 09:30:18 PST
Created attachment 180752 [details]
Rebased patch
Comment 6 Martin Robinson 2012-12-26 09:32:45 PST
Comment on attachment 180752 [details]
Rebased patch

Shouldn't this patch also unskip some tests?
Comment 7 Zan Dobersek 2012-12-27 00:30:51 PST
Created attachment 180776 [details]
Updated patch

Also removes failure expectations from the gtk-wk2 TestExpectations file.
Comment 8 Martin Robinson 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.
Comment 9 Sam Weinig 2012-12-29 13:54:05 PST
Since this doesn't just touch GTK code, taking off the [GTK] prefix.
Comment 10 Sam Weinig 2012-12-29 13:56:19 PST
This patch seems to add a declaration for WKPreferencesGetStyleScopedEnabled but no implementation.
Comment 11 Zan Dobersek 2012-12-30 00:02:52 PST
Created attachment 180950 [details]
Patch
Comment 12 Early Warning System Bot 2012-12-30 00:08:00 PST
Comment on attachment 180950 [details]
Patch

Attachment 180950 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/15599282
Comment 13 Build Bot 2012-12-30 00:12:05 PST
Comment on attachment 180950 [details]
Patch

Attachment 180950 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/15576013
Comment 14 EFL EWS Bot 2012-12-30 00:13:02 PST
Comment on attachment 180950 [details]
Patch

Attachment 180950 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/15584457
Comment 15 Zan Dobersek 2012-12-30 01:22:31 PST
Created attachment 180951 [details]
Patch
Comment 16 Benjamin Poulain 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?
Comment 17 Zan Dobersek 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.
Comment 18 Benjamin Poulain 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.
Comment 19 Zan Dobersek 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.
Comment 20 Benjamin Poulain 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.
Comment 21 Zan Dobersek 2013-01-17 11:15:51 PST
Created attachment 183225 [details]
Patch
Comment 22 Andreas Kling 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.
Comment 23 Martin Robinson 2014-03-08 12:04:14 PST
Style scoped support is gone for the moment.