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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/valid-image-before-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
« no previous file with comments | « third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/csspaint/valid-image-before-load.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/valid-image-before-load.html b/third_party/WebKit/LayoutTests/csspaint/valid-image-before-load.html
index 3a6eacfaf90e9a486369d385f8f6ac231acc49e0..3e6f37b20ecee06ca023ab5602feff32447c3809 100644
--- a/third_party/WebKit/LayoutTests/csspaint/valid-image-before-load.html
+++ b/third_party/WebKit/LayoutTests/csspaint/valid-image-before-load.html
@@ -30,7 +30,8 @@ if (window.testRunner) {
var el = document.getElementById('output');
el.style.backgroundImage = 'paint(green)';
-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() {
runAfterLayoutAndPaint(function() {
if (window.testRunner) {
« no previous file with comments | « third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698