Index: third_party/WebKit/Source/core/testing/DummyPageHolder.h |
diff --git a/third_party/WebKit/Source/core/testing/DummyPageHolder.h b/third_party/WebKit/Source/core/testing/DummyPageHolder.h |
index b914fd60f88f13ee472cbe2f929f207420268011..1be5ce924fce8d3d4fed614c3503f855b31ecb4c 100644 |
--- a/third_party/WebKit/Source/core/testing/DummyPageHolder.h |
+++ b/third_party/WebKit/Source/core/testing/DummyPageHolder.h |
@@ -88,7 +88,13 @@ class DummyPageHolder { |
InterfaceProvider* = nullptr); |
Persistent<Page> m_page; |
- Persistent<LocalFrame> m_frame; |
+ |
+ // The LocalFrame is accessed from worker threads by unit tests |
+ // (WorkerThreadableLoaderTest), hence we need to allow cross-thread |
+ // usage of |m_frame|. |
+ // |
+ // TODO: rework the tests to not require cross-thread access. |
+ CrossThreadPersistent<LocalFrame> m_frame; |
Persistent<FrameLoaderClient> m_frameLoaderClient; |
}; |