[TW5] Javascript Error -> NS_ERROR_DOM_BAD_URI: Access to restricted URI denied

1,037 views
Skip to first unread message

chis...@gmail.com

unread,
Dec 16, 2013, 11:21:08 PM12/16/13
to tiddl...@googlegroups.com
Internal Javascript Error -> NS_ERROR_DOM_BAD_URI: Access to restricted URI denied

I've built an html wiki file from a directory of tiddlers and I receive this fatal error which prevents the wiki from properly loading.  I typically load the tiddlers from the server so having not used an html wiki file in a while, I am having trouble figuring out what, if any, tweaks I made are leading to the error.

Any help is greatly appreciated.

Thanks!

Jeremy Ruston

unread,
Dec 17, 2013, 2:46:41 AM12/17/13
to TiddlyWiki
Hi Chisahaku

The error you're getting indicates that Firefox is preventing access to a URI in a different domain than that containing the TW file. The core doesn't do anything during startup that could cause that error, so I'm guessing that some of your tweaks might be the issue. Can you outline what you've done? It would also be useful to list the steps to reproduce the error.

Best wishes

Jeremy



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

chis...@gmail.com

unread,
Dec 17, 2013, 5:40:50 PM12/17/13
to tiddl...@googlegroups.com, jeremy...@gmail.com
Via git revision history, I confirmed that I didn't make any tweaks that referenced an outside domain.  Then I removed plugin references in the tiddlywiki.info file and it appears that the tiddlyweb plugin is the culprit. 

When I remove that tiddlyweb plugin from tiddlywiki.info, I am able to build an html wiki file just fine.  However, without that plugin, it appears that I'm no longer able to serve up the .tid files via the server. 

As a workaround, I'm copying one version of tiddlywiki.info without the tiddlyweb plugin reference right before building the html wiki file and copying another version of tiddlywiki.info with the tiddlyweb plugin reference right before serving .tid files via the server.  I created shortcut commands, which simplify and eliminate any thinking from this process. 

However, I'm still wondering if this is expected behavior with respect to the tiddlyweb plugin?

Jeremy Ruston

unread,
Dec 20, 2013, 4:48:49 AM12/20/13
to Jeffrey Wayne, TiddlyWiki
Hi Jeff

So, I think the problem is that the TiddlyWeb plugin doesn't like being loaded into a single file TiddlyWiki that is being viewed on a file: URI. I'll patch it to catch the error that you're encountering.

Am I right in understanding that you're trying to use the same wiki folder to build both a clientserver edition and a single file edition of your wiki? If so, you could use the same technique that the TW5 repo does: have your base wiki folder that contains the bits and pieces you need for the single file edition, and then have a separate wiki that contains the extra clientserver components, and includes the main wiki. You can see this with the 'editions/clientserver' wiki including the 'editions/tw5.com' wiki in the TiddlyWiki5 repo.

Best wishes

Jeremy

Reply all
Reply to author
Forward
0 new messages