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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html

Issue 2872453002: Worklet: Specify JavaScript MIME type for Worklets created from Blob URL (Closed)
Patch Set: Created 3 years, 7 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: third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html b/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
index 7bb5bcd96d8c70cd14b20813a85cf6fc02cc9521..ed9f0ccfc5a30edb07f955b012dcd01494fd144d 100644
--- a/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
+++ b/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
@@ -27,7 +27,8 @@ if (window.testRunner) {
testRunner.waitUntilDone();
}
-var blob = new Blob([document.getElementById('code').textContent]);
+var blob = new Blob([document.getElementById('code').textContent],
+ {type: 'text/javascript'});
paintWorklet.addModule(URL.createObjectURL(blob)).then(function() {
var el = document.getElementById('output');
el.style.backgroundImage = 'paint(green)';

Powered by Google App Engine
This is Rietveld 408576698