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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-disconnect.js

Issue 2041193005: [compositorworker] compositor proxy mutation updates underlying layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-upstream-registration
Patch Set: Use RAII pattern Created 4 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: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-disconnect.js
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-disconnect.js b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-disconnect.js
index b76769cd45c30e6ccac3781823dbe4ef4d431f01..78477212f7826ca9508f4f87f409a19b1b13ba0e 100644
--- a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-disconnect.js
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-disconnect.js
@@ -1,10 +1,14 @@
-onmessage = function(event) {
- var proxy = event.data;
+self.importScripts('worker-common.js');
+
+self.onmessage = function(msg) {
+ awaitProxyInit(msg.data).then((proxy) => {
proxy.opacity;
proxy.disconnect();
try {
- proxy.opacity;
+ proxy.opacity;
+ postMessage("Able to read mutable property after disconnect.");
} catch (e) {
- postMessage(e.name);
+ postMessage(e.name);
}
+ });
}

Powered by Google App Engine
This is Rietveld 408576698