From 6b7b19662a22b734993e2dd0aeb503049825909d Mon Sep 17 00:00:00 2001 From: samli Date: Tue, 9 Feb 2016 15:42:06 -0800 Subject: [PATCH] Devtools: Don't clear custom user agent on double click BUG=584221 Review URL: https://codereview.chromium.org/1678953003 Cr-Commit-Position: refs/heads/master@{#374535} --- front_end/network/NetworkConfigView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front_end/network/NetworkConfigView.js b/front_end/network/NetworkConfigView.js index 483d893fb6..7042f1bf10 100644 --- a/front_end/network/NetworkConfigView.js +++ b/front_end/network/NetworkConfigView.js @@ -157,6 +157,8 @@ WebInspector.NetworkConfigView.createUserAgentSelectAndInput = function() function textDoubleClicked() { + if (userAgentSelectElement.selectedIndex === userAgents.length - 1) + return; userAgentSelectElement.selectedIndex = userAgents.length - 1; userAgentSelected(); }