Yes. You haven't installed the extension mozrepl in your Firefox.

However, although installing it will stop the crash, it won't load your cookies with the current Firefox. I have searched for hours, and not found any Perl module that can load either Chrome 49 or Firefox 45 cookies. (Chrome cookies now have their values encrypted.)

I installed https://addons.mozilla.org/en-US/firefox/addon/cookie-exporter/, exported my Firefox cookies to cookies.txt, and tried reading that with the old HTTP::Cookies::Netscape->new(file => $CookieFile, autosave=>0). It doesn't work right off, because cookie-exporter doesn't write out the header indicating the file is a Netscape cookies file, so HTTP::Cookies::Netscape won't read it. (It's vital to use perl -w when trying HTTP::Cookies::Netscape, or else it won't tell you why it fails.)

So, first add the line
# Netscape HTTP Cookie File to the file, and then HTTP::Cookies::Netscape can read it.

The correct documentation on the Netscape cookies file format does not appear to exist anymore, only documentation of the format of the individual lines. As a result, we have a new generation of tools that say they're using Netscape cookies format, but aren't.

Alternately, you may have to just find the user's cookie sqlite db, open it via DBI, and query it for the cookies you want.


In reply to Re^4: www::mechanize and www:mechanize::firefox by shagbark
in thread www::mechanize and www:mechanize::firefox by rmperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.