Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Unified Diff: LayoutTests/http/tests/security/same-origin-css.html

Issue 1169713004: Allow lax MIME type parsing for same-origin CSS in quirks mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comment. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/same-origin-css.html
diff --git a/LayoutTests/http/tests/security/cross-origin-css.html b/LayoutTests/http/tests/security/same-origin-css.html
similarity index 77%
copy from LayoutTests/http/tests/security/cross-origin-css.html
copy to LayoutTests/http/tests/security/same-origin-css.html
index 36ab99ecef51f9e029cef73aec28ccca798cd4a5..9d5a40c90f3fdd53f3cb349bcbeed59ea957e7a7 100644
--- a/LayoutTests/http/tests/security/cross-origin-css.html
+++ b/LayoutTests/http/tests/security/same-origin-css.html
@@ -1,26 +1,26 @@
<!DOCTYPE html>
<html>
<head>
-<title>Cross-origin CSS</title>
+<title>Same-origin CSS</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="stylesheet"
- href="resources/redir.php?url=http://localhost:8000/security/resources/xorigincss1.html"></link>
+ href="resources/redir.php?url=/security/resources/xorigincss1.html"></link>
<link rel="stylesheet"
type="text/css"
- href="resources/redir.php?url=http://localhost:8000/security/resources/xorigincss2.html"></link>
+ href="resources/redir.php?url=/security/resources/xorigincss2.html"></link>
<link rel="stylesheet"
- href="resources/redir.php?url=http://localhost:8000/security/resources/xorigincss1.css"></link>
+ href="resources/redir.php?url=/security/resources/xorigincss1.css"></link>
<link rel="stylesheet"
href="resources/xorigincss3.html"></link>
<style>
/* Deliberately reuse the same file / class / id on this first one */
-@import "resources/redir.php?url=http://localhost:8000/security/resources/xorigincss2.html";
-@import "resources/redir.php?url=http://localhost:8000/security/resources/xorigincss4.html";
-@import "resources/redir.php?url=http://localhost:8000/security/resources/xorigincss7.html";
-@import "resources/redir.php?url=http://localhost:8000/security/resources/xorigincss2.css";
+@import "resources/redir.php?url=/security/resources/xorigincss2.html";
+@import "resources/redir.php?url=/security/resources/xorigincss4.html";
+@import "resources/redir.php?url=/security/resources/xorigincss7.html";
+@import "resources/redir.php?url=/security/resources/xorigincss2.css";
@import "resources/xorigincss5.html";
/* Check that data: is still allowed for non-CORS cross-origin image fetches. */
@@ -33,7 +33,7 @@
function getBackgroundColorForId(id) {
return window.getComputedStyle(document.getElementById(id), null).getPropertyValue('background-color')
}
- var onloadTest = async_test("Testing cross-origin and MIME behavior for CSS.");
+ var onloadTest = async_test("Testing same-origin and MIME behavior for CSS.");
window.onload = function () {
test(function () {
assert_equals(getBackgroundColorForId('id1'), 'rgba(0, 0, 0, 0)');

Powered by Google App Engine
This is Rietveld 408576698