| Index: Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
|
| diff --git a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
|
| index ad1259ac5d2ad0be61e17010722fa8f5d9d82b60..e9cf9a31df2ba27fb8baaa91c2c55ddea1aeb85c 100644
|
| --- a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
|
| +++ b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
|
| @@ -4,13 +4,14 @@
|
|
|
| /**
|
| * @constructor
|
| + * @suppressGlobalPropertiesCheck
|
| */
|
| WebInspector.Toolbox = function()
|
| {
|
| if (!window.opener)
|
| return;
|
|
|
| - var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.WebInspector["app"]);
|
| + var delegate = /** @type {!WebInspector.ToolboxHost} */ (window.opener.WebInspector["app"]);
|
|
|
| WebInspector.initializeUIUtils(window);
|
| WebInspector.zoomManager = new WebInspector.ZoomManager(window, delegate.inspectorFrontendHost());
|
| @@ -26,13 +27,25 @@ WebInspector.Toolbox = function()
|
| // once we migrate to the "pull" model for extensions retrieval.
|
| WebInspector.addExtensions = function() {}
|
|
|
| +/**
|
| + * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
|
| + * @suppressGlobalPropertiesCheck
|
| + */
|
| function windowLoaded()
|
| {
|
| window.removeEventListener("DOMContentLoaded", windowLoaded, false);
|
| new WebInspector.Toolbox();
|
| }
|
|
|
| -if (document.readyState === "complete")
|
| - new WebInspector.Toolbox();
|
| -else
|
| - window.addEventListener("DOMContentLoaded", windowLoaded, false);
|
| +/**
|
| + * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
|
| + * @suppressGlobalPropertiesCheck
|
| + */
|
| +function initToolbox()
|
| +{
|
| + if (document.readyState === "complete")
|
| + new WebInspector.Toolbox();
|
| + else
|
| + window.addEventListener("DOMContentLoaded", windowLoaded, false);
|
| +}
|
| +initToolbox();
|
|
|