@Yakov - Issue with SharedTiddlersPlugin in newest browsers

53 views
Skip to first unread message

Kristjan Brezovnik

unread,
Jan 17, 2018, 10:33:01 AM1/17/18
to TiddlyWikiClassic
Hi!
I recently found a use for SharedTiddlersPlugin [1]. Unfortunately, it seems to only work in Waterfox and the last Safari for Windows. Any idea if it could be made compatible with other browsers? TW and STP are the latest.

[1] http://yakovl.bplaced.net/TW/STP/STP.html

w

Dragon Cotterill

unread,
Jan 18, 2018, 6:03:16 PM1/18/18
to TiddlyWikiClassic
I use STP for all my TWCs and it works on all browsers... when using HTTP access on the same domain, and all browsers locally, when the shared plugin is in the same directory as the main TWC.

It may be that you are trying to violate the same source directives and that's why it doesn't appear to be working properly.

What include commands are you using? For me it's as simple as:
<<include "reference.html" noRefresh>>

Kristjan Brezovnik

unread,
Jan 19, 2018, 3:00:59 AM1/19/18
to TiddlyWikiClassic
Hi!
I use it locally, with both files in the same directory. Include is:
<<include "Infobox Templates.html">>

On other browsers I get the "Error when including 'Infobox Templates.html': Error loading file:///K:/Wikis/My%20Plugins/TiddlyPedia%20Plugins/Infobox%20Templates/Infobox Templates.html" error or similar.

w

Yakov

unread,
Jan 19, 2018, 4:13:04 AM1/19/18
to TiddlyWikiClassic
Hi Kristjan,

what browser is of interest to you? For Chrome, try launching it with the
--allow-file-access-from-files
option (hmm, strange, I though that bit was in STP docs, let me know the results and I'll update the docs) like suggested at [1].

Best regards,
Yakov.

[1] https://classic.tiddlywiki.com/#[[TiddlyWiki%20Browser%20Compatibility]]

Kristjan Brezovnik

unread,
Jan 19, 2018, 5:33:27 AM1/19/18
to TiddlyWikiClassic
Hi!
While I primarily use Waterfox, I also often use Chrome, Opera, Edge and IE for testing purposes.

"--allow-file-access-from-files" didn't work in Chrome.

Also, link on STP plugin page [1] is incorrect. It points to
https://tiddlywiki.com/#[[TiddlyWiki Browser Compatibility]]
instead of
https://classic.tiddlywiki.com/#[[TiddlyWiki Browser Compatibility]]

I can't seem to find opera:config#UserPrefs|AllowFileXMLHttpRequest option.

[1] http://yakovl.bplaced.net/TW/STP/STP.html#SharedTiddlersPluginInfo

w

Yakov

unread,
Jan 19, 2018, 8:01:33 AM1/19/18
to tiddlywi...@googlegroups.com
"--allow-file-access-from-files" didn't work in Chrome.

hm, that's unexpected. How exactly have you launched Chrome? I used (in cmd)

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files

and that worked for me (including works). That's Win 10 x64, Chrome 63 (the latest one).



I can't seem to find opera:config#UserPrefs|AllowFileXMLHttpRequest option.

It's ok, that's for Opera 12.x and below. For modern Opera, try to use --allow-file-access-from-files too: since it's Chromium-based, that may work there as well.


As for IE and Edge I have never really tested including for them, but they may have some settings too. What you should be looking for is ajax requests to local files. I haven't researched this issue but this may be of interest: [1,2,3]


Another thing to note is you can consider using MicroTiddlyServer: if it's ok to you that your TWs are inside the server folder, including should work just fine.


Best regards,

Yakov.


PS let me summarize what should be fixed in docs (let me know if I have missed something):


[1] https://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx

[2] perhaps outdated, but check out http://jquery.tiddlywiki.org/twFile.html

[3] there's a long detailed article in Russian https://habrahabr.ru/post/265013/ that discusses client-side emulation of CORS. Quick look at it gives: try to use TamperMonkey/GreaseMonkey and several other instruments that you may opt by their English names. May be I'll take a closer looks at it some time

Kristjan Brezovnik

unread,
Jan 19, 2018, 9:17:26 AM1/19/18
to TiddlyWikiClassic
Hi!

I can confirm that "--allow-file-access-from-files" works for Chrome, Opera, Vivaldi and Opera Neon. I'm guessing that it failed for Chrome before, because I had another instance opened already. I have the latest 64-bit Windows 10 and the latest browsers.

Considering I only need STP for one or two things, I'm probably not gonna lose much sleep over this, but I will read the links you gave when I have the time.

At least now we know in greater detail what works and what doesn't.:D

w

Reply all
Reply to author
Forward
0 new messages