Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/register-bypassing-scheme-partial.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/register-bypassing-scheme-partial.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/register-bypassing-scheme-partial.html |
index 0fff2cb397e532f5c4bff8711b29235abc29ab63..348a84577703888adc677acef7db89d612616bc1 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/register-bypassing-scheme-partial.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/register-bypassing-scheme-partial.html |
@@ -34,7 +34,7 @@ |
return produceOutput(new Promise(function(resolve, reject) { |
var iframe = document.createElement('iframe'); |
iframe.onload = function() { |
- var didLoad = iframe.contentDocument.styleSheets.length > 0; |
+ var didLoad = iframe.contentDocument.styleSheets.length > 0 && iframe.contentDocument.styleSheets[0].rules.length > 0; |
(shouldLoad == didLoad) ? resolve() : reject(new Error()); |
setTimeout(function() { iframe.remove(); }, 0); |
}; |