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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Fix rebase Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 // FIXME: Using subResourceAttributeName as fallback is not a perfect 1675 // FIXME: Using subResourceAttributeName as fallback is not a perfect
1676 // solution. subResourceAttributeName returns just one attribute name. The 1676 // solution. subResourceAttributeName returns just one attribute name. The
1677 // element might not have the attribute, and there might be other attributes 1677 // element might not have the attribute, and there might be other attributes
1678 // which can identify the element. 1678 // which can identify the element.
1679 WebLocalFrameImpl* webframe_child = 1679 WebLocalFrameImpl* webframe_child =
1680 ToWebLocalFrameImpl(client_->CreateChildFrame( 1680 ToWebLocalFrameImpl(client_->CreateChildFrame(
1681 this, scope, name, 1681 this, scope, name,
1682 owner_element->getAttribute( 1682 owner_element->getAttribute(
1683 owner_element->SubResourceAttributeName()), 1683 owner_element->SubResourceAttributeName()),
1684 static_cast<WebSandboxFlags>(owner_element->GetSandboxFlags()), 1684 static_cast<WebSandboxFlags>(owner_element->GetSandboxFlags()),
1685 owner_properties)); 1685 owner_element->ContainerPolicy(), owner_properties));
1686 if (!webframe_child) 1686 if (!webframe_child)
1687 return nullptr; 1687 return nullptr;
1688 1688
1689 webframe_child->InitializeCoreFrame(*GetFrame()->GetPage(), owner_element, 1689 webframe_child->InitializeCoreFrame(*GetFrame()->GetPage(), owner_element,
1690 name); 1690 name);
1691 // Initializing the core frame may cause the new child to be detached, since 1691 // Initializing the core frame may cause the new child to be detached, since
1692 // it may dispatch a load event in the parent. 1692 // it may dispatch a load event in the parent.
1693 if (!webframe_child->Parent()) 1693 if (!webframe_child->Parent())
1694 return nullptr; 1694 return nullptr;
1695 1695
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { 2567 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const {
2568 return *text_checker_client_; 2568 return *text_checker_client_;
2569 } 2569 }
2570 2570
2571 void WebLocalFrameImpl::SetTextCheckClient( 2571 void WebLocalFrameImpl::SetTextCheckClient(
2572 WebTextCheckClient* text_check_client) { 2572 WebTextCheckClient* text_check_client) {
2573 text_check_client_ = text_check_client; 2573 text_check_client_ = text_check_client;
2574 } 2574 }
2575 2575
2576 } // namespace blink 2576 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698