| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /* eslint-disable indent */ | 5 /* eslint-disable indent */ |
| 6 (function(window) { | 6 (function(window) { |
| 7 | 7 |
| 8 // DevToolsAPI ---------------------------------------------------------------- | 8 // DevToolsAPI ---------------------------------------------------------------- |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 return; | 993 return; |
| 994 var params = queryParams.substring(1).split("&"); | 994 var params = queryParams.substring(1).split("&"); |
| 995 for (var i = 0; i < params.length; ++i) { | 995 for (var i = 0; i < params.length; ++i) { |
| 996 var pair = params[i].split("="); | 996 var pair = params[i].split("="); |
| 997 var name = pair.shift(); | 997 var name = pair.shift(); |
| 998 var value = pair.join("="); | 998 var value = pair.join("="); |
| 999 if (name === "remoteFrontendUrl" && !remoteFrontendUrlRegexp.test(value)
) | 999 if (name === "remoteFrontendUrl" && !remoteFrontendUrlRegexp.test(value)
) |
| 1000 location.search = ""; | 1000 location.search = ""; |
| 1001 if (name === "remoteBase" && !remoteBaseRegexp.test(value)) | 1001 if (name === "remoteBase" && !remoteBaseRegexp.test(value)) |
| 1002 location.search = ""; | 1002 location.search = ""; |
| 1003 if (name === "settings") |
| 1004 location.search = ""; |
| 1003 } | 1005 } |
| 1004 } | 1006 } |
| 1005 | 1007 |
| 1006 var staticKeyIdentifiers = new Map([ | 1008 var staticKeyIdentifiers = new Map([ |
| 1007 [0x12, "Alt"], | 1009 [0x12, "Alt"], |
| 1008 [0x11, "Control"], | 1010 [0x11, "Control"], |
| 1009 [0x10, "Shift"], | 1011 [0x10, "Shift"], |
| 1010 [0x14, "CapsLock"], | 1012 [0x14, "CapsLock"], |
| 1011 [0x5b, "Win"], | 1013 [0x5b, "Win"], |
| 1012 [0x5c, "Win"], | 1014 [0x5c, "Win"], |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 | 1160 |
| 1159 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1161 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1160 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1162 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1161 DOMTokenList.prototype.toggle = function(token, force) | 1163 DOMTokenList.prototype.toggle = function(token, force) |
| 1162 { | 1164 { |
| 1163 if (arguments.length === 1) | 1165 if (arguments.length === 1) |
| 1164 force = !this.contains(token); | 1166 force = !this.contains(token); |
| 1165 return this.__originalDOMTokenListToggle(token, !!force); | 1167 return this.__originalDOMTokenListToggle(token, !!force); |
| 1166 } | 1168 } |
| 1167 } | 1169 } |
| OLD | NEW |