buggyj / savetiddlers

108 stars 14 forks source link

Seems to be broken on Firefox 68.0 #44

Closed Jobirder closed 5 years ago

Jobirder commented 5 years ago

Since upgrading to Firefox 68.0, I get the following message when loading the file:

savetiddlers has detected that another tiddlysaver called savetiddlers is install. Currently only one saver is supported therefore - savetiddlers will not activate

If I load the HTML in a text editor and remove...

<div id="tiddlyfox-message-box" style="display: none;" data-message-box-creator="savetiddlers"></div>

...from the file, I can load it and save once. However, refreshing breaks it again. Downgrading to an earlier Firefox version fixes it.

Can this check be disabled or fixed? I'd prefer not to lock my Firefox version due to security concerns.

buggyj commented 5 years ago

This is a problem with how tiddlywiki classic creates a new version (saves itself), it should not include the message box. I will see if I can work around this issue....

buggyj commented 5 years ago

image

So now it is not possible to read files, tw classic will manifest this bug.

Jobirder commented 5 years ago

Understood. Thank you for finding the reason!

buggyj commented 5 years ago

setting security.fileuri.strict_origin_policy option in about:config to false gets things working again -- for now!

Jobirder commented 5 years ago

Excellent, thank you!

buggyj commented 5 years ago

@kralik There is a new version - but it only has been tested by me - make a backup before you try it! https://github.com/buggyj/savetiddlers/releases/tag/0.9

pmario commented 5 years ago

@buggyj see: assets/classic/inject.js ... These changes fixed the problem for me. ...

There is a difference in path handling for windows and unix systems. .. It seems older versions did ignore an additional "/" character on unix systems in the file:/// + /home/... (my old code)

my new code only has file:// ... and a check in line 51 ...

Just a hint, since I don't know your code good enough.

buggyj commented 5 years ago

@pmario thanks I will take a look.

skierpage commented 5 years ago

@kralik There is a new version - but it only has been tested by me - make a backup before you try it! https://github.com/buggyj/savetiddlers/releases/tag/0.9

I tried it. I'm using mGSD 3.1.9 beta (an adaptation of TiddlyWiki with impressive features) with Firefox Nightly 71.0a1 Build ID 20190911095413 on Fedora Linux.

If I edit a Tiddler and click "done"

If I click "save changes"

My success with saving this old TiddlyWiki file has been sporadic, but it has worked at times in 2019. It has a lot of old personal data in it.

skierpage commented 5 years ago

I think I'm trying the newest 0.1 version, and it's still not saving a backup. My TiddlyWiki hasn't saved backups for a while so I don't think it's related to this issue. I'll create a new one with the fix.