Firefox vs. ace.js

100 views
Skip to first unread message

Reto

unread,
Sep 5, 2025, 7:42:33 AMSep 5
to TiddlyWikiClassic
Hi,

since some time (two, three weeks?) there is a strange effect when I open a tiddler in aceEdit:

1. The tiddler is opened in the ace editor.
2. This popup appears:
Screenshot 2025-09-05 133234.png
This translates to "It appears that this TiddlyWiki has been saved incorrectly. Please visit http://www.tiddlywiki.com/#Download for details". 

2. When I click on "OK", this pop appears:

Screenshot 2025-09-05 132913.png

3. When I click "OK", then macros are rendered like this:
Screenshot 2025-09-05 133645.png

I am not aware of changes - beside updates of Firefox. It has version 141.0.3 now.

Using TWc 2.10.2, timimi as saver, ace-Plugin.js 0.0.20

Any idea what the problem might be?

Yakov

unread,
Sep 5, 2025, 12:21:22 PMSep 5
to TiddlyWikiClassic
Hi Reto, do all those macros show the same "too much recursion" error? Looks not like a problem of ace.js (by the way, the latest version of the Okido's plugin is 0.0.53). Do you have any transclutions in the SidebarOptions?

пятница, 5 сентября 2025 г. в 14:42:33 UTC+3, Reto:

Reto

unread,
Sep 7, 2025, 9:55:46 AMSep 7
to TiddlyWikiClassic
Hi Yakov, yes, all those macros show the same error.

At least the problem is triggered by opening aceEditor. No idea where the cause is.

Good hint to the latest version of ace-Plugin.j, I will update it.

Reto

unread,
Sep 7, 2025, 10:08:33 AMSep 7
to TiddlyWikiClassic
The same behaviour also with version 0.0.53 of  ace-Plugin.js.

I can reproduce the problem in other TWc. The following two entries show the error:
* <<tiddler ToggleRightSidebar>>
* <<saveChanges>>

Okido

unread,
Sep 10, 2025, 3:00:09 PMSep 10
to TiddlyWikiClassic
Hello Reto,

Can you let me know what Abego plugins you have installed and what versions.
If remember correctly in one of the plugins there is a hijack of the JavaScript forEach function, this might cause some issue's.

Have a nice day, Okido

Op zondag 7 september 2025 om 16:08:33 UTC+2 schreef Reto:

Reto

unread,
Sep 11, 2025, 2:14:54 AMSep 11
to TiddlyWikiClassic
Hi Okido,

I am using
-  AutoRefreshPlugin, V 1.0.1 (2007-01-20)
-  ForEachTiddlerPlugin, V1.0.10
-  YourSearchPlugin,  V2.2.0 (2023-05-06)
from Udo.

Cheers,
Reto

Okido

unread,
Sep 14, 2025, 7:28:17 AMSep 14
to TiddlyWikiClassic
Hello Reto,

I had a quick look, the plugins are not the problem.
The problem is in Firefox I think, the XMLHttPRequest function is depreciated by Firefox, it can no longer be run from the main tread.
With older versions from Firefox there is no problem.
This issue requires a TWC core change.

Have a nice day, Okido

Op donderdag 11 september 2025 om 08:14:54 UTC+2 schreef Reto:

Reto

unread,
Sep 14, 2025, 11:11:13 AMSep 14
to TiddlyWikiClassic
Okay, thanks, Okido. Then at least it is clear why this happened.

Cheers
Reto

Yakov

unread,
Sep 16, 2025, 6:35:26 AMSep 16
to TiddlyWikiClassic
Hm, synchronous XMLHttpRequest is deprecated indeed, but I don't see how it may cause such errors. Okido, could you elaborate your idea a bit?

We can definitely fix this on the core level, but first we should determine the issue and maybe try a plugin patch.

воскресенье, 14 сентября 2025 г. в 18:11:13 UTC+3, Reto:

Okido

unread,
Sep 21, 2025, 5:55:02 AM (11 days ago) Sep 21
to TiddlyWikiClassic
Hello Reto, Yakov,

I tested with Firefox 1.41.0 and TWC 2.10.2

The message "The original file '.../data/TEST-XML.html' does not appear to be a valid TiddlyWiki", is easy to replicate.
Any click on the save button causes this, cause is the missing XMLHttpRequest function.

The message about "too much recursion", I saw twice and is not easy to repeat.
I also got a message "uncaught exception: undefined", and then the whole rendering breaks down.
I will first check if ace.js removes DOM objects properly.


Have a nice day, Okido

Op dinsdag 16 september 2025 om 12:35:26 UTC+2 schreef Yakov:

Reto

unread,
Sep 21, 2025, 7:41:45 AM (11 days ago) Sep 21
to TiddlyWikiClassic
I really appreciate you taking care of it!

Cheers
Reto

Okido

unread,
Sep 22, 2025, 3:21:29 PM (10 days ago) Sep 22
to TiddlyWikiClassic
Hello Reto, Yakov,

I uploaded the modified plugin to GitHub for testing, PLUGIN.
On Linux with FF 141.0 it works OK with regards to the plugin problems.
The plugin problems were caused by a function call that uses this, for some reason this caused, what is in a word, random jumps in the code in FF, in Chromium no problem.
The saving problem is not solved by the plugin, this requires intervention in a core function, maybe Yakov can give an update on this.

Have a nice day, Okido

Op zondag 21 september 2025 om 13:41:45 UTC+2 schreef Reto:

Reto

unread,
Sep 23, 2025, 9:58:20 AM (9 days ago) Sep 23
to TiddlyWikiClassic
Hi Okido,

version  0.0.55-Alpha works insofar that a tiddler gets opened in the usual black ace editor window. And "AceSave" works too. But there is no usual ace editor ui, buttons and such.

Cheers
Reto

Okido

unread,
Sep 24, 2025, 2:58:45 PM (8 days ago) Sep 24
to TiddlyWikiClassic

Hallo Reto,

könnten Sie bitte erläutern, was Sie mit „But there is no usual ace editor UI, buttons and such“ meinen?
Dies ist für mich nicht ganz nachvollziehbar.

Ich wünsche Ihnen einen angenehmen Tag, Okido



Reto

unread,
Sep 25, 2025, 7:48:50 AM (7 days ago) Sep 25
to TiddlyWikiClassic
Hi Okido,

sorry, my bad: I thought there was a button bar at the top, but this is obviously not true. I was just missing syntax highlighting, all text had the same color. I checked again, syntax highlighting works now in version  0.0.55-Alpha. Again: sorry for the confusion.


Cheers
Reto

Okido

unread,
Sep 26, 2025, 2:54:40 PM (6 days ago) Sep 26
to TiddlyWikiClassic
No problem Reto, thanks for letting me know.

Op donderdag 25 september 2025 om 13:48:50 UTC+2 schreef Reto:

Okido

unread,
Sep 28, 2025, 2:27:36 PM (4 days ago) Sep 28
to TiddlyWikiClassic
Hello All,

The ace-Plugin.js on GitHub is updated.

Have a nice day, Okido

Op vrijdag 26 september 2025 om 20:54:40 UTC+2 schreef Okido:

Reto

unread,
Sep 29, 2025, 6:14:32 AM (3 days ago) Sep 29
to TiddlyWikiClassic
Thanks, Okido!
Reply all
Reply to author
Forward
0 new messages