fix: chrome://process-internals
failing to load (#41476)
fix: chrome://process-internals failing to load
This commit is contained in:
parent
62331f5ac1
commit
f826506218
2 changed files with 6 additions and 2 deletions
|
@ -2113,7 +2113,8 @@ describe('chromium features', () => {
|
|||
'chrome://gpu',
|
||||
'chrome://media-internals',
|
||||
'chrome://tracing',
|
||||
'chrome://webrtc-internals'
|
||||
'chrome://webrtc-internals',
|
||||
'chrome://process-internals'
|
||||
];
|
||||
|
||||
for (const url of urls) {
|
||||
|
@ -2121,8 +2122,9 @@ describe('chromium features', () => {
|
|||
it('loads the page successfully', async () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
await w.loadURL(url);
|
||||
const host = url.substring('chrome://'.length);
|
||||
const pageExists = await w.webContents.executeJavaScript(
|
||||
"window.hasOwnProperty('chrome') && window.chrome.hasOwnProperty('send')"
|
||||
`window.hasOwnProperty('chrome') && window.location.host === '${host}'`
|
||||
);
|
||||
expect(pageExists).to.be.true();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue