Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Unable to load ublock origin #26

Open
RangerMauve opened this issue Jun 24, 2020 · 4 comments
Open

Unable to load ublock origin #26

RangerMauve opened this issue Jun 24, 2020 · 4 comments

Comments

@RangerMauve
Copy link

[email protected], [email protected], [email protected]

I'm trying to run ublock origin within my extension. There's no apparent errors while loading, but I'm unable to load the electron-extension:// page for the popupPage, and when I try to invoke extension.backgroundPage.webContents.showDevTools(), it opens up to a blank page navigated to chrome-error://chromewebdata/ without any sources loaded.

I'm downloaded ublock origin's chromium build and extracted a folder locally. I'm pointing to the folder for extensions.loadExtension().

In my app, I'm using persist:web-content for my web content and I passed that down to the extension in the constructor. I'm using the same partition for loading the popup.

What's interesting is that my extension web-palette is working fine, but that might be because it's only relying on content scripts.

Could I maybe be missing a step somewhere? I'm registering custom protocol handlers in my app, could that be interfering with the protocol handlers for electron-extension://?

@RangerMauve
Copy link
Author

Setting up a minimal extension with a background page seems to be working. Gonna experiment more until I can find where exactly it's breaking.

@sentialx
Copy link
Owner

You should use the beta version. 6 may be not compatible with electron 9.

@RangerMauve
Copy link
Author

I tried it out, and although the beta version worked well enough for HTTP pages, it wasn't loading the extension inside custom protocol handlers which is the main reason for my project to exist. 😅

Is there a version of electron that's known to work with version 6?

@RangerMauve
Copy link
Author

Here's where I'm loading the extensions BTW: https://github.com/RangerMauve/agregore-browser/blob/master/app/extensions/index.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants