Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.js |
| index 4542502e4721cf9fec8345c8602731893fdece0e..cca0d3fa288279dd89e2d1db10d7ad82690950c3 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.js |
| @@ -126,7 +126,7 @@ WebInspector.NetworkConfigView.createUserAgentSelectAndInput = function() |
| otherUserAgentElement.value = value; |
| otherUserAgentElement.title = value; |
| } else { |
| - otherUserAgentElement.focus(); |
| + otherUserAgentElement.select(); |
| } |
| } |
| @@ -146,10 +146,11 @@ WebInspector.NetworkConfigView.createUserAgentSelectAndInput = function() |
| if (!selectionRestored) |
| userAgentSelectElement.selectedIndex = 0; |
| - if (otherUserAgentElement.value !== value) { |
| + if (otherUserAgentElement.value !== value) |
| otherUserAgentElement.value = value; |
| + |
| + if (otherUserAgentElement.title !== value) |
|
lushnikov
2016/05/02 18:48:55
how does this fix the bug?
luoe
2016/05/02 19:11:26
textChanged() updates the value of the input field
|
| otherUserAgentElement.title = value; |
| - } |
| } |
| function textChanged() |