Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| index 198476998c399c142edeff8f16533aa4c2621dd9..ada88814c1aee0930545278deb47ba7070e5a775 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| @@ -603,7 +603,7 @@ WebInspector.DOMNode.prototype = { |
| */ |
| frameId: function() |
| { |
| - var node = this; |
| + var node = this.parentNode || this; |
|
dgozman
2016/08/03 16:53:13
Does this work for immediate children of iframe no
lushnikov
2016/08/03 18:00:08
Yes; added test.
|
| while (!node._frameId && node.parentNode) |
| node = node.parentNode; |
| return node._frameId; |
|
dgozman
2016/08/03 16:53:13
Should we change _frameId instead?
lushnikov
2016/08/03 18:00:08
Renamed into frameOwnerFrameId to avoid confusion
|