in reply to Re^2: RemoteObject.pm fails in open firefox8.0
in thread RemoteObject.pm fails in open firefox8.0

Ah - this error occurs, because the JSON string is malformed. Most likely because the JSON string includes UTF-8, but the transport is not UTF-8 safe, as the warning message upon initialization says.

As I said, I can't test it because Firefox 8 is in beta and not available as a portable installation. My recommendation is to avoid pages that need encoding outside the 7-bit ASCII characters.

You could tell me what version of MozRepl::RemoteObject and WWW::Mechanize::Firefox and what version of the mozrepl plugin for Firefox you use. There are branches of mozrepl with UTF-8 safe transport, and I wonder why installing my own UTF-8-safe transport fails. But, again, I don't have your version of Firefox and thus can't test it.

Replies are listed 'Best First'.
Re^4: RemoteObject.pm fails in open firefox8.0
by seven_shen (Acolyte) on Oct 28, 2011 at 02:11 UTC

    Hi, here attach the version of those modules :

    MozRepl::RemoteObject:0.28

    WWW::Mechanize::Firefox:0.45

    mozrepl is coming from "MozRepl 1.1beta2", but because it does not support firefox 8 by default, so I manually change the "install.rdf" to support firefox8.

    And the issue still happen in the latest firefox 8.0beta5, So I am afraid when 8.0 releases, problem still exist. I suggest making a change in advance.

      Your suggestion is duly noted but unless there is a convenient way to test with Firefox 8, I recommend you don't use it.

      My advice is to run your mission critical programs with Firefox 7 and disable automatic upgrades of major versions.

        I can not bypass firefox8 now since I need to test the forward compatibility cases with my firefox add-on, And this usually begins with firefox beta releases(My add-on is ready now):(

        Anyway I am looking forward to a solution to this problem and waiting for your convenience , thanks a lot!