IntelLabs / RiverTrail

An API for data parallelism in JavaScript
Other
748 stars 71 forks source link

Make restartlessness work like it should #40

Closed lkuper closed 10 years ago

lkuper commented 10 years ago

This issue applies to the restartless, js-ctypes-based extension. If we want the extension to work (that is, if we want initContext and the extension's other exported functions to be available) on a page that was already open when the browser started (for instance, if it restored tabs from last time), we have to disable and then re-enable the extension from about:addons.

Similarly, if the extension is enabled and working and we disable it, we have to restart the browser to cause the extension to stop working!

This all defeats the purpose of restartlessness, and we should figure out how to fix it. It will probably require tweaking the startup and shutdown functions in bootstrap.js.

lkuper commented 10 years ago

To solve our problems with making exported functions available in tabs at the right time, the right approach might be to use the Add-on SDK, which has facilities for things like that.

(Edit: in fact, with the SDK it's even easier than the above link makes it look. Patch incoming soon.)

(cc: @jsreeram)

lkuper commented 10 years ago

With the SDK conversion (f5c4dd5), I think this is fixed. Closing.