| Index: Source/devtools/front_end/components/NetworkConditionsSelector.js
|
| diff --git a/Source/devtools/front_end/components/NetworkConditionsSelector.js b/Source/devtools/front_end/components/NetworkConditionsSelector.js
|
| index 86c338e9d55bd21e944b9e67aaf4cc09f9717a99..0a4fb32344c24bfb3b23e0d8042cd9abb1bd8532 100644
|
| --- a/Source/devtools/front_end/components/NetworkConditionsSelector.js
|
| +++ b/Source/devtools/front_end/components/NetworkConditionsSelector.js
|
| @@ -38,7 +38,7 @@ WebInspector.NetworkConditionsSelector.throughputText = function(conditions)
|
| */
|
| WebInspector.NetworkConditionsSelector.throughputValidator = function(value)
|
| {
|
| - if (!value || (/^[\d]+(\.\d+)?|\.\d+$/.test(value) && value >= 0))
|
| + if (!value || (/^[\d]+(\.\d+)?|\.\d+$/.test(value) && value >= 0 && value <= 10000000))
|
| return "";
|
| return WebInspector.UIString("Value must be non-negative float");
|
| }
|
| @@ -49,7 +49,7 @@ WebInspector.NetworkConditionsSelector.throughputValidator = function(value)
|
| */
|
| WebInspector.NetworkConditionsSelector.latencyValidator = function(value)
|
| {
|
| - if (!value || (/^[\d]+$/.test(value) && value >= 0))
|
| + if (!value || (/^[\d]+$/.test(value) && value >= 0 && value <= 1000000))
|
| return "";
|
| return WebInspector.UIString("Value must be non-negative integer");
|
| }
|
|
|