OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 WebInspector.reload = function() | 214 WebInspector.reload = function() |
215 { | 215 { |
216 InspectorAgent.reset(); | 216 InspectorAgent.reset(); |
217 | 217 |
218 var queryParams = window.location.search; | 218 var queryParams = window.location.search; |
219 var url = window.location.href; | 219 var url = window.location.href; |
220 url = url.substring(0, url.length - queryParams.length); | 220 url = url.substring(0, url.length - queryParams.length); |
221 var queryParamsObject = {}; | 221 var queryParamsObject = {}; |
222 for (var name in WebInspector.queryParamsObject) | 222 for (var name in WebInspector.queryParamsObject) |
223 queryParamsObject[name] = WebInspector.queryParamsObject[name]; | 223 queryParamsObject[name] = WebInspector.queryParamsObject[name]; |
224 if (this.dockController) | |
225 queryParamsObject["dockSide"] = this.dockController.dockSide(); | |
vsevik
2014/02/17 12:38:14
The code around is not needed anymore.
| |
226 var names = Object.keys(queryParamsObject); | 224 var names = Object.keys(queryParamsObject); |
227 for (var i = 0; i < names.length; ++i) | 225 for (var i = 0; i < names.length; ++i) |
228 url += (i ? "&" : "?") + names[i] + "=" + queryParamsObject[names[i]]; | 226 url += (i ? "&" : "?") + names[i] + "=" + queryParamsObject[names[i]]; |
229 document.location = url; | 227 document.location = url; |
230 } | 228 } |
231 | 229 |
232 WebInspector.loaded = function() | 230 WebInspector.loaded = function() |
233 { | 231 { |
234 if (!InspectorFrontendHost.sendMessageToEmbedder) { | 232 if (!InspectorFrontendHost.sendMessageToEmbedder) { |
235 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString("Inco mpatible Chrome version")); | 233 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString("Inco mpatible Chrome version")); |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
899 "var tabId = " + WebInspector._inspectedTabId + ";" + | 897 "var tabId = " + WebInspector._inspectedTabId + ";" + |
900 platformExtensionAPI.toString(); | 898 platformExtensionAPI.toString(); |
901 } | 899 } |
902 | 900 |
903 WebInspector.setInspectedTabId = function(tabId) | 901 WebInspector.setInspectedTabId = function(tabId) |
904 { | 902 { |
905 WebInspector._inspectedTabId = tabId; | 903 WebInspector._inspectedTabId = tabId; |
906 } | 904 } |
907 | 905 |
908 window.DEBUG = true; | 906 window.DEBUG = true; |
OLD | NEW |