New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrowserView doesn't inherit BrowserWindows' Extensions #17799
Comments
Please can you provide a minimal repro that demonstrates this issue. We can't spend time debugging / figuring out how the BTTV addon / twitch work. A minimal repro based on |
Updated as requested |
Is a BrowserView even supposed to inherit extensions from the parent window since the the BrowserView is a completely separate process with it's own DevTools in the first place? I honestly just started playing with BrowserView for the first time today but the little I know about it, I wouldn't assume that it would inherit those. I would think they would need to be loaded separately somehow. The API doesn't seem to support that though. |
So, is there a way to add an extension to a specific BrowserView instance cause I can find it nowhere in the document. |
الحصول على Outlook لـ iOS<https://aka.ms/o0ukef>
…________________________________
من: 朱公朴 <notifications@github.com>
تم الإرسال: Tuesday, July 16, 2019 3:39:06 PM
إلى: electron/electron
نسخة: Subscribed
الموضوع: Re: [electron/electron] BrowserView doesn't inherit BrowserWindows' Extensions (#17799)
So, is there a way to add an extension to a specific BrowserView instance cause I can find it nowhere in the document.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#17799?email_source=notifications&email_token=ALKFMVMBIVTHZ7KAYQQHSL3P7W6OVA5CNFSM4HGDVLS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2AWQIY#issuecomment-511797283>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ALKFMVOWX6ZZUV5GLU4WC6DP7W6OVANCNFSM4HGDVLSQ>.
|
I think BrowserView should inherit the extension APIs from BrowserWindow. I'm making a web browser in Electron and this is would be very helpful to have extensions. |
Reiterating the main question here: is there a way to load chrome extensions into a BrowserView? |
I'm also interested in seeing the issue resolved. I provided a simple minimal repro as requested by @MarshallOfSound that just requires
After running that code, it launches the electron app which installs the React DevTools extension and then creates a BrowserWindow and a BrowserView whose webContents are both pointing to the same url. It then opens the devtools for each of the 2 web contents and it can be seen from this screenshot that the extension opened successfully in the BrowserWindow devTools (bottom) but not in the BrowserView devTools (top): |
Electron 5.0.13 |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in Electron 6.x.y or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
The repro steps I suggested in my post 27 days ago were using Electron 7.1.12, and the issue still exists there. |
Electron v9 introduced Chromium extensions (#19447) which are loaded into the session—inherited by BrowserViews. As verification, I built a browser which uses BrowserViews and can load extensions. This issue can now be closed. cc @sofianguy (hopefully you don't mind the ping to help close this issue 🙇♂️) |
Issue Details
4.1.4 upto 5.0.0-Beta8
Windows 10 (1803)
Expected Behavior
BrowserView's should inherit Chrome extensions from BrowserWindow
Actual Behavior
BrowserView's don't use Chrome extensions from BrowserWindow
To Reproduce
##Clone this repository
git clone https://github.com/electron/electron-quick-start
##Go into the repository
cd electron-quick-start
##Install dependencies
npm install
replace main.js code with this
##Run the app
npm start
THIS WORKS
Replace main.js code with
This doesn't work, or should there be a function
There reason im using browserview over browserwindow is because I want to tile 2 browserviews (which I've manage to do succesfully) to display 2 different webpages within one electron browser
The text was updated successfully, but these errors were encountered: