electron
electron copied to clipboard
[Bug]: can't find extension background.js inspect link in chrome://inspect page
Preflight Checklist
- [X] I have read the Contributing Guidelines for this project.
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
29.1.0
What operating system are you using?
macOS
Operating System Version
13.5
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
find the remote inspect link in chrome://inspect. when i use the extension in browser, it works.
Actual Behavior
i can see the webcontent inspect link, but can't find the background inspect link. this is the extension code
extension.zip
in browser:
in electron:
Testcase Gist URL
No response
Additional Information
No response
this is the main code `const { app, BrowserWindow, session } = require('electron'); const path = require('path');
app.commandLine.appendSwitch('remote-debugging-port', '9223');
async function createWindow() { let win = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true } });
await session.defaultSession.loadExtension(path.resolve(__dirname, './extension'));
win.loadURL('http://www.google.com'); }
app.whenReady().then(createWindow);
app.on('window-all-closed', () => { if (process.platform !== 'darwin') { app.quit(); } });
app.on('activate', () => { if (BrowserWindow.getAllWindows().length === 0) { createWindow(); } }); `
Hello @SagaciousLittle. Thanks for reporting this and helping to make Electron better!
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.
Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.
Now adding the https://github.com/electron/electron/labels/blocked%2Fneed-repro label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.
https://github.com/SagaciousLittle/issue-electron-extension-devtool, this is the replay code.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.