Chromium Code Reviews| Index: Source/devtools/front_end/main/Main.js |
| diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js |
| index 4a0ff2bc01c6a587253d75dd8bbf95611992edc1..0eac60aa1654b480cab3d9832c78fb2b5fb83c34 100644 |
| --- a/Source/devtools/front_end/main/Main.js |
| +++ b/Source/devtools/front_end/main/Main.js |
| @@ -384,7 +384,12 @@ WebInspector.Main.prototype = { |
| _documentClick: function(event) |
| { |
| - var target = event.deepElementFromPoint(); |
| + var target = event.target; |
| + if (target.shadowRoot) |
| + target = event.deepElementFromPoint(); |
| + if (!target) |
| + return; |
| + |
| var anchor = target.enclosingNodeOrSelfWithNodeName("a"); |
| if (!anchor || !anchor.href) |
| return; |
| @@ -402,7 +407,7 @@ WebInspector.Main.prototype = { |
| function followLink() |
| { |
| - if (WebInspector.isBeingEdited(target)) |
| + if (WebInspector.isEditing()) |
|
vsevik
2014/10/21 12:59:56
This won't work (probably)
pfeldman
2014/10/21 13:01:55
Done.
|
| return; |
| if (WebInspector.openAnchorLocationRegistry.dispatch({ url: anchor.href, lineNumber: anchor.lineNumber})) |
| return; |