| Index: third_party/WebKit/Source/web/tests/MHTMLTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/MHTMLTest.cpp b/third_party/WebKit/Source/web/tests/MHTMLTest.cpp
|
| index 494f0713505ffc3e915dcbb684d4756014b7332f..d4f346db172931ffcc5eb88fd14174c434e17bbf 100644
|
| --- a/third_party/WebKit/Source/web/tests/MHTMLTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/MHTMLTest.cpp
|
| @@ -276,8 +276,11 @@ TEST_F(MHTMLTest, EnforceSandboxFlags) {
|
| Document* document = frame->GetDocument();
|
| ASSERT_TRUE(document);
|
|
|
| - // Full sandboxing should be turned on.
|
| - EXPECT_TRUE(document->IsSandboxed(kSandboxAll));
|
| + // Full sandboxing with the exception to new top-level windows should be
|
| + // turned on.
|
| + EXPECT_EQ(kSandboxAll & ~(kSandboxPopups |
|
| + kSandboxPropagatesToAuxiliaryBrowsingContexts),
|
| + document->GetSandboxFlags());
|
|
|
| // MHTML document should be loaded into unique origin.
|
| EXPECT_TRUE(document->GetSecurityOrigin()->IsUnique());
|
|
|