Permalink
Browse files

Bump version, regenerate Examples etc

  • Loading branch information...
1 parent e282520 commit 0c60c0417e69793e11267d2c5cacd1f008fa4135 Max Maischein committed Apr 9, 2012
View
@@ -41,7 +41,7 @@
"HTTP::Response" : 0,
"LWP::Simple" : 0,
"MIME::Base64" : 0,
- "MozRepl::RemoteObject" : "0.3",
+ "MozRepl::RemoteObject" : "0.31",
"Object::Import" : 0,
"Scalar::Util" : "1.14",
"Shell::Command" : 0,
@@ -60,5 +60,5 @@
"url" : "http://github.com/Corion/www-mechanize-firefox"
}
},
- "version" : "0.64"
+ "version" : "0.65"
}
View
@@ -27,7 +27,7 @@ requires:
HTTP::Response: 0
LWP::Simple: 0
MIME::Base64: 0
- MozRepl::RemoteObject: 0.3
+ MozRepl::RemoteObject: 0.31
Object::Import: 0
Scalar::Util: 1.14
Shell::Command: 0
@@ -39,4 +39,4 @@ requires:
perl: 5.006
resources:
repository: http://github.com/Corion/www-mechanize-firefox
-version: 0.64
+version: 0.65
View
@@ -70,6 +70,9 @@ METHODS
in the constructor.
+ * `agent' - the name of the User Agent to use. This overrides how
+ Firefox identifies itself.
+
* `log' - array reference to log levels, passed through to
MozRepl::RemoteObject
@@ -109,6 +112,17 @@ METHODS
* `post_events' - the events that are sent to an input field after its
value is changed. By default this is `[blur, change]'.
+ `$mech->agent( $product_id );'
+ $mech->agent('wonderbot/JS 1.0');
+
+ Set the product token that is used to identify the user agent on the
+ network. The agent value is sent as the "User-Agent" header in the
+ requests. The default is whatever Firefox uses.
+
+ To reset the user agent to the Firefox default, pass an empty string:
+
+ $mech->agent('');
+
JAVASCRIPT METHODS
`$mech->allow( %options )'
Enables or disables browser features for the current tab. The following
@@ -306,6 +320,30 @@ NAVIGATION METHODS
This method is special to WWW::Mechanize::Firefox but could also exist
in WWW::Mechanize through a plugin.
+ `$mech->add_header( $name => $value, ... )'
+ $mech->add_header(
+ 'X-WWW-Mechanize-Firefox' => "I'm using it",
+ Encoding => 'text/klingon',
+ );
+
+ This method sets up custom headers that will be sent with every HTTP(S)
+ request that Firefox makes.
+
+ Using multiple instances of WWW::Mechanize::Firefox objects with the
+ same application together with changed request headers will most likely
+ have weird effects. So don't do that.
+
+ `$mech->delete_header( $name , $name2... )'
+ $mech->delete_header( 'User-Agent' );
+
+ Removes HTTP headers from the agent's list of special headers. Note that
+ Firefox may still send a header with its default value.
+
+ `$mech->reset_headers'
+ $mech->reset_headers();
+
+ Removes all custom headers and makes Firefox send its defaults again.
+
`$mech->synchronize( $event, $callback )'
Wraps a synchronization semaphore around the callback and waits until
the event `$event' fires on the browser. If you want to wait for one of
@@ -316,7 +354,7 @@ NAVIGATION METHODS
my $l = $mech->xpath('//a[@onclick]', single => 1);
$mech->synchronize('DOMFrameContentLoaded', sub {
- $l->__click()
+ $mech->click( $l );
});
It is necessary to synchronize with the browser whenever a click
@@ -1144,10 +1182,6 @@ INCOMPATIBILITIES WITH WWW::Mechanize
These functions are unlikely to be implemented because they make little
sense in the context of Firefox.
- * `->add_header'
-
- * `->delete_header'
-
* `->clone'
* `->credentials( $username, $password )'
@@ -6,7 +6,7 @@ use URI ();
use Carp qw(carp croak);
use vars qw'$VERSION';
-$VERSION = '0.64';
+$VERSION = '0.65';
=head1 NAME
@@ -2,7 +2,7 @@ package Firefox::Application::API35;
use strict;
use parent 'Firefox::Application';
use vars qw($VERSION);
-$VERSION = '0.64';
+$VERSION = '0.65';
=head1 NAME
@@ -3,7 +3,7 @@ use strict;
use parent 'Firefox::Application';
use Firefox::Application::API35;
use vars qw($VERSION);
-$VERSION = '0.64';
+$VERSION = '0.65';
=head1 NAME
@@ -3,7 +3,7 @@ use strict;
use parent 'Firefox::Application';
use vars qw($VERSION %addon_types);
use MozRepl::RemoteObject qw(as_list);
-$VERSION = '0.64';
+$VERSION = '0.65';
=head1 NAME
@@ -4,7 +4,7 @@ use Carp qw(carp);
use WWW::Mechanize::Firefox;
use parent 'HTML::Display::Common';
use vars qw($VERSION);
-$VERSION = '0.64';
+$VERSION = '0.65';
=head1 NAME
@@ -6,7 +6,7 @@ use parent 'HTTP::Cookies';
use Carp qw[croak];
use vars qw[$VERSION];
-$VERSION = '0.64';
+$VERSION = '0.65';
=head1 NAME
@@ -18,7 +18,7 @@ use Encode qw(encode decode);
use Carp qw(carp croak );
use vars qw'$VERSION %link_spec @CARP_NOT';
-$VERSION = '0.64';
+$VERSION = '0.65';
@CARP_NOT = ('MozRepl::RemoteObject',
'MozRepl::AnyEvent',
'MozRepl::RemoteObject::Instance'); # we trust these blindly
@@ -5,7 +5,7 @@ use Object::Import;
use Carp qw(croak);
use vars qw($VERSION @CARP_NOT);
-$VERSION = '0.64';
+$VERSION = '0.65';
@CARP_NOT = (qw[
WWW::Mechanize::Firefox
@@ -16,7 +16,7 @@ package WWW::Mechanize::Firefox::Examples;
use strict;
use vars qw($VERSION);
-$VERSION = '0.64';
+$VERSION = '0.65';
1;
@@ -79,7 +79,7 @@ The following is a list of the 12 example programs that are included in the WWW:
<>;
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/open-local-file.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/open-local-file.pl>
=head2 Example: open-url.pl
@@ -94,7 +94,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
<>;
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/open-url.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/open-url.pl>
=head2 Example: screenshot.pl
@@ -194,7 +194,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/screenshot.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/screenshot.pl>
=head2 Example: dump-links.pl
@@ -230,7 +230,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/dump-links.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/dump-links.pl>
=head2 Example: bcat.pl
@@ -353,7 +353,7 @@ if (! $encode_type) {
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/bcat.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/bcat.pl>
=head2 Example: manipulate-javascript.pl
@@ -392,7 +392,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/manipulate-javascript.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/manipulate-javascript.pl>
=head2 Example: javascript.pl
@@ -424,7 +424,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/javascript.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/javascript.pl>
=head2 Example: js-console.pl
@@ -508,7 +508,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/js-console.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/js-console.pl>
=head2 Example: tail-console.pl
@@ -628,7 +628,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/tail-console.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/tail-console.pl>
=head2 Example: urlbar.pl
@@ -739,7 +739,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
};
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/urlbar.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/urlbar.pl>
=head2 Example: fullscreen.pl
@@ -777,7 +777,7 @@ Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Fir
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/fullscreen.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/fullscreen.pl>
=head2 Example: proxy-settings.pl
@@ -828,7 +828,7 @@ my $prefs = $ff->repl->expr(<<'JS');
=cut
-Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.64/examples/proxy-settings.pl>
+Download this example: L<http://cpansearch.perl.org/src/CORION/WWW-Mechanize-Firefox-0.65/examples/proxy-settings.pl>
=head1 AUTHOR

0 comments on commit 0c60c04

Please sign in to comment.