WebInspector has been split up
This commit is contained in:
parent
0a7c51b9aa
commit
c72438f09f
5 changed files with 11 additions and 8 deletions
|
@ -3,7 +3,8 @@ window.onload = function () {
|
|||
window.InspectorFrontendHost.showContextMenuAtPoint = createMenu
|
||||
|
||||
// Use dialog API to override file chooser dialog.
|
||||
window.WebInspector.createFileSelectorElement = createFileSelectorElement
|
||||
// Note: It will be moved to UI after Chrome 57.
|
||||
window.Bindings.createFileSelectorElement = createFileSelectorElement
|
||||
}
|
||||
|
||||
window.confirm = function (message, title) {
|
||||
|
|
|
@ -1689,8 +1689,8 @@ describe('BrowserWindow module', function () {
|
|||
}
|
||||
|
||||
const showLastPanel = function () {
|
||||
const lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
|
||||
WebInspector.inspectorView.showPanel(lastPanelId)
|
||||
const lastPanelId = UI.inspectorView._tabbedPane._tabs.peekLast().id
|
||||
UI.inspectorView.showPanel(lastPanelId)
|
||||
}
|
||||
devToolsWebContents.executeJavaScript(`(${showLastPanel})()`, false, () => {
|
||||
showPanelTimeoutId = setTimeout(show, 100)
|
||||
|
|
4
spec/fixtures/pages/webview-devtools.html
vendored
4
spec/fixtures/pages/webview-devtools.html
vendored
|
@ -13,8 +13,8 @@
|
|||
var showPanelIntevalId = setInterval(function () {
|
||||
if (webContents.devToolsWebContents) {
|
||||
webContents.devToolsWebContents.executeJavaScript('(' + (function () {
|
||||
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
|
||||
WebInspector.inspectorView.showPanel(lastPanelId)
|
||||
var lastPanelId = UI.inspectorView._tabbedPane._tabs.peekLast().id
|
||||
UI.inspectorView.showPanel(lastPanelId)
|
||||
}).toString() + ')()')
|
||||
} else {
|
||||
clearInterval(showPanelIntevalId)
|
||||
|
|
|
@ -28,8 +28,10 @@
|
|||
"serviceworker": true
|
||||
},
|
||||
"globals": [
|
||||
"WebView",
|
||||
"WebInspector"
|
||||
"Bindings",
|
||||
"Components",
|
||||
"UI",
|
||||
"WebView"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
2
vendor/brightray
vendored
2
vendor/brightray
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 593011033feed39fa037fa147648cfe93a4759bf
|
||||
Subproject commit a400856b41aa0485a4b43ba1714c84fef4bb06f8
|
Loading…
Reference in a new issue