SPAW2+Firefox+HTTPS Quick Fix

February 27th, 2007 by ailon

It came to our attention that when used under SSL with Firefox SPAW v.2 performed in some strange way: on the first load it worked ok, but on subsequent loads editing area stayed gray and inactive unless you switch to HTML mode and back.

We have traced this behavior to some kind of bug in Gecko which is beyond our understanding (which is sadly not the first time with Firefox) but we were able to cure it with a workaround. Since there are not enough changes for the next release yet, but this bug might be affecting many users working over HTTPS, we decided to release a quick fix for this issue. You can download it here. Just overwrite the files in this archive over your current files to apply it.

We would like to thank Ampco Metal SA for sponsoring priority upgrade for this issue.

8 Responses to “SPAW2+Firefox+HTTPS Quick Fix”

  1. Jeff Says:

    Thanks for being on top of this. Just a heads-up that I don’t think the issue is entirely resolved. I’ve applied the patch to our SPAW instance and although our data fields render w/o any problems on Safari (no wysiwyg of course), they come up blank in Firefox when the server is running HTTPS, HTTP is fine. We’re instantiating the wysiwyg as follows:

    $sw = new SPAW_Wysiwyg(’generalnews_e’ /*name*/, $overallStatus /*value*/,
    ‘en’ /*language*/, ‘mini’ /*toolbar mode*/, ‘’ /*theme*/, ‘325px’ /*width*/, ‘50px’ /*height*/);
    $sw->show();

    Jeff

  2. ailon Says:

    Hmm.. that’s strange. Have you cleaned your cache, restared browser, etc. after applying the patch?

    I think it would be better to move this discussion to the forum
    http://forums.solmetra.com/viewtopic.php?t=2042&start=45

  3. Derk Says:

    I have this bug also in v.1, I don’t want to upgrade because it works good except the ssl bug and I have to change everthing again in oscommerce. Is there also a workaround for v.1?

    regards

  4. ailon Says:

    I will send you my thoughts about this via email. Also there was a thread in the forum with someone posting a workaround.

  5. Derk Says:

    Nevermind, I just upgraded:D thnx anyway

  6. Kirill Says:

    Very strange bug - in Mozilla Firefox 2.0.0.3 SPAW send text but not send html tags: editor engine save back-slashes near quotation marks.

  7. ailon Says:

    Use stripslashes() on the server. This is not related neither to firefox nor to this bug or anything at all. It’s your php setting

  8. php cart Says:

    Firefox 3.0 is now out and those bugs are now fixed. :)

Leave a Reply