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

Side by Side Diff: Source/devtools/front_end/main/Main.js

Issue 1171753002: DevTools console context defaults to the Service Worker, should not. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/devtools/front_end/components/ExecutionContextSelector.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 WebInspector.networkProjectManager = new WebInspector.NetworkProjectMana ger(WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapp ing); 218 WebInspector.networkProjectManager = new WebInspector.NetworkProjectMana ger(WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapp ing);
219 WebInspector.presentationConsoleMessageHelper = new WebInspector.Present ationConsoleMessageHelper(WebInspector.workspace); 219 WebInspector.presentationConsoleMessageHelper = new WebInspector.Present ationConsoleMessageHelper(WebInspector.workspace);
220 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapping) ; 220 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapping) ;
221 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkMapping); 221 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkMapping);
222 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace, We bInspector.networkMapping); 222 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace, We bInspector.networkMapping);
223 WebInspector.breakpointManager = new WebInspector.BreakpointManager(null , WebInspector.workspace, WebInspector.networkMapping, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding); 223 WebInspector.breakpointManager = new WebInspector.BreakpointManager(null , WebInspector.workspace, WebInspector.networkMapping, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding);
224 WebInspector.extensionServer = new WebInspector.ExtensionServer(); 224 WebInspector.extensionServer = new WebInspector.ExtensionServer();
225 225
226 new WebInspector.OverlayController(); 226 new WebInspector.OverlayController();
227 new WebInspector.ContentScriptProjectDecorator(); 227 new WebInspector.ContentScriptProjectDecorator();
228 new WebInspector.ExecutionContextSelector(); 228 new WebInspector.ExecutionContextSelector(WebInspector.targetManager, We bInspector.context);
229 229
230 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall y"); 230 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall y");
231 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel); 231 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel);
232 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting); 232 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting);
233 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; }); 233 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; });
234 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler()); 234 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler());
235 235
236 new WebInspector.WorkspaceController(WebInspector.workspace); 236 new WebInspector.WorkspaceController(WebInspector.workspace);
237 new WebInspector.RenderingOptions(); 237 new WebInspector.RenderingOptions();
238 new WebInspector.Main.PauseListener(); 238 new WebInspector.Main.PauseListener();
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 p.classList.add("help-section"); 849 p.classList.add("help-section");
850 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically."); 850 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically.");
851 } 851 }
852 852
853 WebInspector.WorkerTerminatedScreen.prototype = { 853 WebInspector.WorkerTerminatedScreen.prototype = {
854 854
855 __proto__: WebInspector.HelpScreen.prototype 855 __proto__: WebInspector.HelpScreen.prototype
856 } 856 }
857 857
858 new WebInspector.Main(); 858 new WebInspector.Main();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/ExecutionContextSelector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698