TiddlyWiki / TiddlyFox

An extension for older versions of Mozilla Firefox to enable TiddlyWiki to save changes
52 stars 24 forks source link

TiddlyFox doesn't work in SeaMonkey, even after compat patch #13

Open skierpage opened 11 years ago

skierpage commented 11 years ago

TiddlyFox works great in Firefox 28, but I couldn't get it to work in SeaMonkey 22.

If I save the version at https://github.com/TiddlyWiki/TiddlyFox/raw/master/tiddlyfox.xpi and open in SeaMonkey, I get the usual *could not be installed ... because is not compatible with SeaMonkey."

The first part of this fix is easy, I added another stanza to install.rdf:

    <!-- SeaMonkey, per https://developer.mozilla.org/en-US/docs/Extensions_support_in_SeaMonkey_2 -->
    <em:targetApplication>
      <Description>
        <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
        <em:minVersion>2.0</em:minVersion>
        <em:maxVersion>2.27.*</em:maxVersion>
      </Description>
    </em:targetApplication>

The modified .xpi installs, and "TiddlyFox extension for Firefox 1.0alpha18" shows up in Tools > Add-ons Manager. I don't see a red TiddlyFox in the Tools menu, unlike Firefox. I don't get the "Do you want to enable TiddlyWiki file saving capability" prompt when I open a TiddlyWiki html file that I do in Firefox. And when I try to save I get an alert "It's not possible to save changes. ..." The try block in mozillaLoadFile() is failing because netscape.security.PrivilegeManager is gone. As I understand it TiddlyFox should be injecting its own window.mozillaLoadFile() function, somehow content/overlay.xul > loads overlay.js > loads inject.js isn't happening.