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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 WebInspector.suggestReload = function() | 208 WebInspector.suggestReload = function() |
209 { | 209 { |
210 if (window.confirm(WebInspector.UIString("It is recommended to restart inspe
ctor after making these changes. Would you like to restart it?"))) | 210 if (window.confirm(WebInspector.UIString("It is recommended to restart inspe
ctor after making these changes. Would you like to restart it?"))) |
211 this.reload(); | 211 this.reload(); |
212 } | 212 } |
213 | 213 |
214 WebInspector.reload = function() | 214 WebInspector.reload = function() |
215 { | 215 { |
216 InspectorAgent.reset(); | 216 InspectorAgent.reset(); |
217 | 217 window.location.reload(); |
218 var queryParams = window.location.search; | |
219 var url = window.location.href; | |
220 url = url.substring(0, url.length - queryParams.length); | |
221 var queryParamsObject = {}; | |
222 for (var name in WebInspector.queryParamsObject) | |
223 queryParamsObject[name] = WebInspector.queryParamsObject[name]; | |
224 if (this.dockController) | |
225 queryParamsObject["dockSide"] = this.dockController.dockSide(); | |
226 var names = Object.keys(queryParamsObject); | |
227 for (var i = 0; i < names.length; ++i) | |
228 url += (i ? "&" : "?") + names[i] + "=" + queryParamsObject[names[i]]; | |
229 document.location = url; | |
230 } | 218 } |
231 | 219 |
232 WebInspector.loaded = function() | 220 WebInspector.loaded = function() |
233 { | 221 { |
234 if (!InspectorFrontendHost.sendMessageToEmbedder) { | 222 if (!InspectorFrontendHost.sendMessageToEmbedder) { |
235 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString("Inco
mpatible Chrome version")); | 223 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString("Inco
mpatible Chrome version")); |
236 var p = helpScreen.contentElement.createChild("p", "help-section"); | 224 var p = helpScreen.contentElement.createChild("p", "help-section"); |
237 p.textContent = WebInspector.UIString("Please upgrade to a newer Chrome
version (you might need a Dev or Canary build)."); | 225 p.textContent = WebInspector.UIString("Please upgrade to a newer Chrome
version (you might need a Dev or Canary build)."); |
238 helpScreen.showModal(); | 226 helpScreen.showModal(); |
239 return; | 227 return; |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 "var tabId = " + WebInspector._inspectedTabId + ";" + | 887 "var tabId = " + WebInspector._inspectedTabId + ";" + |
900 platformExtensionAPI.toString(); | 888 platformExtensionAPI.toString(); |
901 } | 889 } |
902 | 890 |
903 WebInspector.setInspectedTabId = function(tabId) | 891 WebInspector.setInspectedTabId = function(tabId) |
904 { | 892 { |
905 WebInspector._inspectedTabId = tabId; | 893 WebInspector._inspectedTabId = tabId; |
906 } | 894 } |
907 | 895 |
908 window.DEBUG = true; | 896 window.DEBUG = true; |
OLD | NEW |