Chromium Code Reviews| Index: content/common/frame_replication_state.h |
| diff --git a/content/common/frame_replication_state.h b/content/common/frame_replication_state.h |
| index 414bc3c130412e48dab34aeee29025e85600f9ef..ec56a76ca5aab3bac35b3cbcdf4547f3ca237723 100644 |
| --- a/content/common/frame_replication_state.h |
| +++ b/content/common/frame_replication_state.h |
| @@ -21,6 +21,7 @@ struct CONTENT_EXPORT FrameReplicationState { |
| FrameReplicationState(); |
| FrameReplicationState(blink::WebTreeScopeType scope, |
| const std::string& name, |
| + const std::string& unique_name, |
| blink::WebSandboxFlags sandbox_flags, |
| bool should_enforce_strict_mixed_content_checking); |
| ~FrameReplicationState(); |
| @@ -51,8 +52,7 @@ struct CONTENT_EXPORT FrameReplicationState { |
| // frame. |
| blink::WebSandboxFlags sandbox_flags; |
| - // The assigned name of the frame. This name can be empty, unlike the unique |
|
Charlie Reis
2016/01/27 23:48:49
Why isn't this true anymore?
Łukasz Anforowicz
2016/01/28 01:21:19
AFAICT it was never true. If you look at FrameTre
Charlie Reis
2016/02/11 22:02:14
Acknowledged.
|
| - // name generated internally in the DOM tree. |
| + // The assigned name of the frame. |
| // |
| // |name| is set when a new child frame is created using the value of the |
| // <iframe> element's "name" attribute (see |
| @@ -64,6 +64,10 @@ struct CONTENT_EXPORT FrameReplicationState { |
| // frame using its updated name (e.g., using window.open(url, frame_name)). |
| std::string name; |
| + // Unique name of the frame. |
| + // https://crbug.com/576969: This isn't really "unique" today. |
|
Charlie Reis
2016/01/27 23:48:49
I don't think it makes sense to document this here
Łukasz Anforowicz
2016/01/28 01:21:19
Done.
alexmos
2016/02/10 00:46:45
I don't think that's always undesirable. For exam
Łukasz Anforowicz
2016/02/10 22:10:50
Acknowledged. Maybe just pay attention to bugs on
Charlie Reis
2016/02/11 22:02:14
Yeah, I've wondered this myself sometimes. Findin
Łukasz Anforowicz
2016/02/11 23:23:55
I thought that the bug could be marked with a labe
|
| + std::string unique_name; |
| + |
| // Whether the frame is in a document tree or a shadow tree, per the Shadow |
| // DOM spec: https://w3c.github.io/webcomponents/spec/shadow/ |
| // Note: This should really be const, as it can never change once a frame is |