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

Unified Diff: third_party/WebKit/Source/core/dom/ElementVisibilityObserverTest.cpp

Issue 2714813003: Add an identity component for unique/opaque url::Origins.
Patch Set: Switch to base::UnguessableToken, add to SecurityOrigin. No conversions yet. Created 3 years, 10 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 | « no previous file | third_party/WebKit/Source/platform/weborigin/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ElementVisibilityObserverTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementVisibilityObserverTest.cpp b/third_party/WebKit/Source/core/dom/ElementVisibilityObserverTest.cpp
index 02f03b07793a65bfc272ff501a49f9f93d362576..54d25f4990d329aa6ca110ffc73d304e337d2a40 100644
--- a/third_party/WebKit/Source/core/dom/ElementVisibilityObserverTest.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementVisibilityObserverTest.cpp
@@ -11,6 +11,7 @@
#include "core/html/HTMLDocument.h"
#include "core/loader/EmptyClients.h"
#include "core/testing/DummyPageHolder.h"
+#include "platform/weborigin/SecurityOrigin.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
@@ -73,6 +74,8 @@ TEST_F(ElementVisibilityObserverTest, ObserveElementWithoutDocumentFrame) {
TEST_F(ElementVisibilityObserverTest, ObserveElementInRemoteFrame) {
Persistent<RemoteFrame> remoteFrame =
RemoteFrame::create(new EmptyRemoteFrameClient(), &frameHost(), nullptr);
+ remoteFrame->securityContext()->setReplicatedOrigin(
+ SecurityOrigin::createUnique());
frameLoaderClient()->setParent(remoteFrame);
Persistent<HTMLElement> element = HTMLDivElement::create(document());
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/weborigin/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698