OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <!-- | 3 <!-- |
4 The bug is that the CSS Regions feature leaks information at run-time. T
here are JS properties that exist even | 4 The bug is that the CSS Regions feature leaks information at run-time. T
here are JS properties that exist even |
5 if the feature is disabled at run-time (document.webkitGetNamedFlows, docume
nt.body.webkitRegionOverset, | 5 if the feature is disabled at run-time (document.webkitGetNamedFlows, docume
nt.body.webkitRegionOverset, |
6 document.body.webkitGetRegionFlowRanges and window.WebKitCSSRegionRule). | 6 document.body.webkitGetRegionFlowRanges and window.WebKitCSSRegionRule). |
7 The best LayoutTest would test that the properties exist when the featur
e is enabled and that the properties | 7 The best LayoutTest would test that the properties exist when the featur
e is enabled and that the properties |
8 just aren't there when the feature is disabled. | 8 just aren't there when the feature is disabled. |
9 But, since during running Layout Tests the feature is enabled by default
and switching the | 9 But, since during running Layout Tests the feature is enabled by default
and switching the |
10 RuntimeEnabledFeatures requires the process to be restarted and that is curr
ently not possible, we can only test | 10 RuntimeEnabledFeatures requires the process to be restarted and that is curr
ently not possible, we can only test |
(...skipping 18 matching lines...) Expand all Loading... |
29 // process to be restarted. | 29 // process to be restarted. |
30 if(window.testRunner) | 30 if(window.testRunner) |
31 window.testRunner.overridePreference("WebKitCSSRegionsEnabled", fals
e); | 31 window.testRunner.overridePreference("WebKitCSSRegionsEnabled", fals
e); |
32 | 32 |
33 shouldBeFalse( "'webkitGetNamedFlows' in document" ); | 33 shouldBeFalse( "'webkitGetNamedFlows' in document" ); |
34 shouldBeFalse( "document.body.hasOwnProperty( 'webkitRegionOverset' )" )
; | 34 shouldBeFalse( "document.body.hasOwnProperty( 'webkitRegionOverset' )" )
; |
35 shouldBeFalse( "'webkitGetRegionFlowRanges' in document.body" ); | 35 shouldBeFalse( "'webkitGetRegionFlowRanges' in document.body" ); |
36 shouldBeUndefined( "window.WebKitCSSRegionRule" ); | 36 shouldBeUndefined( "window.WebKitCSSRegionRule" ); |
37 */ | 37 */ |
38 </script> | 38 </script> |
39 <script src="../../http/tests/resources/js-test-post.js"></script> | |
40 </body> | 39 </body> |
41 </html> | 40 </html> |
OLD | NEW |