ηMatrix/eMatrix support thread

Dedicated board for extension releases/support threads

Moderators: FranklinDM, Lootyhoof

Forum rules
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: ηMatrix/eMatrix support thread

Unread post by vannilla » 2021-03-19, 17:20

I've released a new test version: https://gitlab.com/vannilla/ematrix/-/tags/v4.4.8

As you can see, the only change listed there is about assets auto-updates, which was broken for a while.
I've only tested it in a profile for development which was mostly clean, and on a copy of my normal profile which is mostly standard in terms of assets (i.e. I use only the built-in ones), so I'd appreciate if some of you that use "custom" assets could test the feature somehow.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: ηMatrix/eMatrix support thread

Unread post by moonbat » 2021-03-20, 03:52

While you're at it, long term could you try porting your extension to overlay? Every now and then the toolbar icon disappears because restartless extensions don't play well with PM and I have to disable/reenable it to get it back.
It will be a shot in the arm for UXP browsers in general, and it will work on Borealis as well whenever that's released.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: ηMatrix/eMatrix support thread

Unread post by vannilla » 2021-03-20, 11:10

moonbat wrote:
2021-03-20, 03:52
While you're at it, long term could you try porting your extension to overlay?
No, it's impossible.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: ηMatrix/eMatrix support thread

Unread post by moonbat » 2021-03-20, 11:18

Why is it impossible?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: ηMatrix/eMatrix support thread

Unread post by vannilla » 2021-03-20, 11:44

moonbat wrote:
2021-03-20, 11:18
Why is it impossible?
The code depends on being restartless, to begin with.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: ηMatrix/eMatrix support thread

Unread post by moonbat » 2021-03-20, 11:52

But how? There are regular APIs available for the restartless versions, even Pure URL was originally restartless when I forked it.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: ηMatrix/eMatrix support thread

Unread post by vannilla » 2021-03-20, 12:31

Some user-facing features explicitly call the start/stop bootstrap functions.
Then there are some behind the scenes tasks which also depends on not having to close the browser to work.
If you think eMatrix is at the same level as PureURL in terms of internal complexity, patches are welcomed.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: ηMatrix/eMatrix support thread

Unread post by moonbat » 2021-03-20, 12:40

Okay. I was curious because I keep hearing how everything that the restartless extensions can do is already possible to do in overlay extensions.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: ηMatrix/eMatrix support thread

Unread post by vannilla » 2021-03-20, 13:37

moonbat wrote:
2021-03-20, 12:40
Okay. I was curious because I keep hearing how everything that the restartless extensions can do is already possible to do in overlay extensions.
It is, on paper.
For new extensions written from scratch you're better off using toolkit, but existing ones can't necessarily be portable.
The real issue with eMatrix is that it was designed from the ground up to use the restartless features, so even if with overlay you could make do somehow and replace those features, it would require to pretty much rewrite the whole thing entirely.
I don't want to do that, so I'll leave the task to someone else.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 932
Joined: 2021-01-26, 11:18

Re: ηMatrix/eMatrix support thread

Unread post by Kris_88 » 2021-03-20, 14:10

moonbat wrote:
2021-03-20, 03:52
Every now and then the toolbar icon disappears because restartless extensions don't play well with PM and I have to disable/reenable it to get it back.
Probably there is an error in the extension you use...

New Tobin Paradigm

Re: ηMatrix/eMatrix support thread

Unread post by New Tobin Paradigm » 2021-03-20, 15:48

It is possible and more than on paper. Vanilla just doesn't want to redesign a Gorhill mess to do it.

Also I dunno why you think Borealis can't do bootstrap. It just won't do jetpack cause there ain't no jetpack in Borealis.

Michaell
Lunatic
Lunatic
Posts: 282
Joined: 2018-05-26, 18:13

Re: ηMatrix/eMatrix support thread

Unread post by Michaell » 2021-03-21, 02:38

Kris_88 wrote:
2021-03-20, 14:10
moonbat wrote:
2021-03-20, 03:52
Every now and then the toolbar icon disappears because restartless extensions don't play well with PM and I have to disable/reenable it to get it back.
Probably there is an error in the extension you use...
Nope, the error is in the browser, and lots of extensions trigger it. I don't remember if it was before the point that Vanilla forked it, but Gorhill did add some code to try to compensate and it was better but it wasn't 100% eliminated.
Win10home(1709), PM33.0.0-portable as of Feb 1, '24

New Tobin Paradigm

Re: ηMatrix/eMatrix support thread

Unread post by New Tobin Paradigm » 2021-03-21, 02:57

It isn't a problem with the browser but is systemic in the platform because it has always been a nasty hack. The way it was done is and always has been flawed and you can only do so much to compensate.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 932
Joined: 2021-01-26, 11:18

Re: ηMatrix/eMatrix support thread

Unread post by Kris_88 » 2021-03-21, 06:20

Michaell wrote:
2021-03-21, 02:38
Nope, the error is in the browser, and lots of extensions trigger it.
I use 5-6 of my restartless extensions, did not observe any problems yet...
Buttons and icons did not disappear.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: ηMatrix/eMatrix support thread

Unread post by moonbat » 2021-03-21, 06:35

It is inconsistent as Tobin said, I've posted about this before.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 932
Joined: 2021-01-26, 11:18

Re: ηMatrix/eMatrix support thread

Unread post by Kris_88 » 2021-03-21, 08:36

moonbat wrote:
2021-03-21, 06:35
It is inconsistent as Tobin said, I've posted about this before.
Ah, you use custom toolbar.
Ok, I will test it.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: ηMatrix/eMatrix support thread

Unread post by Moonchild » 2021-03-21, 09:49

Off-topic:
something doesn't work as expected -> explanations given -> more questions asked -> more explanations given with examples -> examples looked at -> example taken as template for solution -> explanations discarded.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: ηMatrix/eMatrix support thread

Unread post by moonbat » 2021-03-21, 09:59

Off-topic:
Separation of UI through XUL and using Javascript only for event handling and logic is such an elegant architecture (and one used everywhere, the model-view-controller pattern is a common one in Java/.NET web applications). I can define the UI first, see how it looks and then add the logic. The Addon SDK from what little I've seen is a mess of DOM manipulation to add components and define their handlers right there. Imagine throwing that away for the sake of being restartless as though people are installing extensions daily and having to restart the browser multiple times.
I daresay having a separate XUL namespace as opposed to webpage HTML only is also more secure but I'm not sure if or how.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

WiseWolf

Re: ηMatrix/eMatrix support thread

Unread post by WiseWolf » 2021-03-21, 13:01

vannilla wrote:
2021-03-20, 13:37
moonbat wrote:
2021-03-20, 12:40
Okay. I was curious because I keep hearing how everything that the restartless extensions can do is already possible to do in overlay extensions.
It is, on paper.
For new extensions written from scratch you're better off using toolkit, but existing ones can't necessarily be portable.
The real issue with eMatrix is that it was designed from the ground up to use the restartless features, so even if with overlay you could make do somehow and replace those features, it would require to pretty much rewrite the whole thing entirely.
I don't want to do that, so I'll leave the task to someone else.
I don't blame you for not wanting to rewrite the entire addon, that sounds like a very long process.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 932
Joined: 2021-01-26, 11:18

Re: ηMatrix/eMatrix support thread

Unread post by Kris_88 » 2021-03-21, 23:46

Deleted.
Last edited by Kris_88 on 2021-03-22, 01:23, edited 1 time in total.

Locked