Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1690)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/devtools.js

Issue 2177983004: [DevTools] Do not use "settings" query param. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 1169
1168 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { 1170 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) {
1169 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; 1171 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle;
1170 DOMTokenList.prototype.toggle = function(token, force) 1172 DOMTokenList.prototype.toggle = function(token, force)
1171 { 1173 {
1172 if (arguments.length === 1) 1174 if (arguments.length === 1)
1173 force = !this.contains(token); 1175 force = !this.contains(token);
1174 return this.__originalDOMTokenListToggle(token, !!force); 1176 return this.__originalDOMTokenListToggle(token, !!force);
1175 } 1177 }
1176 } 1178 }
OLDNEW
« no previous file with comments | « content/shell/browser/shell_devtools_frontend.cc ('k') | third_party/WebKit/Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698