Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

addon modifications for electrolysis #24

Open
buggyj opened this issue Oct 2, 2014 · 10 comments
Open

addon modifications for electrolysis #24

buggyj opened this issue Oct 2, 2014 · 10 comments

Comments

@buggyj
Copy link
Contributor

buggyj commented Oct 2, 2014

tiddlyfox will have to be substantially restructured to work with the new firefox multi-process architecture.
Doomsday (so to speak) has been pencilled in for firefox 36, which will be release around Feb.

@Jermolene
Copy link
Member

Ouch. How will TiddlyClip fare? I'm nervous that TiddlyFox needs a very complete overhaul; it was written with cobbled together example code that must now be very out of date.

@buggyj
Copy link
Contributor Author

buggyj commented Oct 7, 2014

The architectural changes for tiddlyfox will involve splitting the functionality between framescipts (a copy will need to be installed in each tab) and a background script, probability in each window. Inteactions with pages go in the framescript and the background handles interaction with the file system. There needs to be a bit of extra logic for interprocess comms and some boilerplate code for software updates.
The addition to the tools menu would need to be handled programmatically (or just removed).

At present there are issues with updating framescripts - the restartless mechanism was badly thought out, and at present doesn't work with framescripts.

The above assume that you would used the 'low level' apis, there is also the addon sdk which is abstracted from these details somewhat, but I don't know if it has the functionality that tiddlyfox needs (and I don't think it works with the new architecture yet).

Tiddlyclip already uses framescipts, but some (more) of the functionality will have to move from the background script to the framescripts - whether the apis I used will work with the multiprocess architecture is not clear - there is no documentation for this. In general the lack of (relevant) documentation is a real pain.

@Jermolene
Copy link
Member

There needs to be a bit of extra logic for interprocess comms

What's the preferred mechanism for a frame script to talk to a background script?

The addition to the tools menu would need to be handled programmatically (or just removed)

Removed, I think. I would like to add a preferences/options window, though.

@buggyj
Copy link
Contributor Author

buggyj commented Oct 8, 2014

There is a messagemanger module for handing comms between framescripts and background
To add options, and be compatible with fennec, we have to use inline options:
https://wiki.mozilla.org/Mobile/Fennec/Extensions/Options

@buggyj
Copy link
Contributor Author

buggyj commented Nov 22, 2014

I have had a look at the addon sdk and feel that tiddlyfox could be rewritten to use the addon sdk apis. - the advantage is that this should (hopefully)make tiddlyfox compatible with pre-electrolysis and electrolysis versions of the browser and also allow it to work with the android version.

@Jermolene
Copy link
Member

Hi @buggyj that would be pretty good. I'm hoping to pick up TiddlyFox over the next few weeks - the impending electrolysis release is a useful spur :)

@buggyj
Copy link
Contributor Author

buggyj commented Jan 15, 2015

The latest from electrolysis is that it will be after ff version 40 - towards the end of the year
https://wiki.mozilla.org/Electrolysis/Meetings/2015-01-08

@Jermolene
Copy link
Member

Hi @buggyj phew, that's a relief 😄, gives us a bit more time to prepare

@buggyj
Copy link
Contributor Author

buggyj commented Jan 26, 2016

@Jermolene I am just finishing off the needed electrolysis changes for tiddlyclip, and will shortly have a look at what needs to be done for tiddlyfox.

@buggyj buggyj closed this as completed Jan 26, 2016
@buggyj buggyj reopened this Jan 26, 2016
@gerv
Copy link

gerv commented Jun 30, 2017

If a rewrite is being done, it also needs to take account of the fact that from 57 (in November) Firefox will only support WebExtensions: https://developer.mozilla.org/en-US/Add-ons/WebExtensions .

Can the developers of TiddlyFox let us know their plans here?

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

3 participants