GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Firefox::Marionette::UpdateStatus(3) User Contributed Perl Documentation Firefox::Marionette::UpdateStatus(3)

Firefox::Marionette::UpdateStatus - Represents the resulting status of an Firefox update

Version 1.17

    use Firefox::Marionette();
    use v5.10;

    my $firefox = Firefox::Marionette->new();
    my $status = $firefox->update();
    while($status->successful()) {
        $status = $firefox->update();
    }
    say "Firefox has been upgraded to " . $status->display_version();

This module handles the implementation of the status of a Firefox update using the Marionette protocol

accepts a hash as a parameter. Allowed keys are below;
  • app_version - application version of this update.
  • build_id - build id <https://developer.mozilla.org/en-US/docs/Web/API/Navigator/buildID> of this update. Used to determine a particular build, down to the hour, minute and second of its creation. This allows the system to differentiate between several nightly builds with the same |version|.
  • channel - channel <http://kb.mozillazine.org/App.update.channel> used to retrieve this update from the Update Service.
  • details_url - URI offering details about the content of this update. This page is intended to summarise the differences between this update and the previous, which also links to the release notes.
  • display_version - string to display in the user interface for the version. If you want a real version number use app_version.
  • elevation_failure - has an elevation failure has been encountered for this update.
  • error_code - numeric error code <https://hg.mozilla.org/mozilla-central/file/tip/toolkit/mozapps/update/common/updatererrors.h> that conveys additional information about the state of a failed update. If the update is not in the "failed" state the value is zero.
  • install_date - when the update was installed.
  • is_complete_update - is the update a complete replacement of the user's existing installation or a patch representing the difference between the new version and the previous version.
  • name - name of the update, which should look like "<Application Name> <Update Version>"
  • number_of_updates - the number of updates available.
  • patch_count - number of patches supplied by this update.
  • previous_app_version - application version prior to the application being updated.
  • prompt_wait_time - allows overriding the default amount of time in seconds before prompting the user to apply an update. If not specified, the value of app.update.promptWaitTime <http://kb.mozillazine.org/App.update.promptWaitTime> will be used.
  • selected_patch - currently selected patch for this update.
  • service_url - the Update Service that supplied this update.
  • status_text - message associated with this update, if any.
  • type - either 'minor', 'partial', which means a binary difference between two application versions or 'complete' which is a complete patch containing all of the replacement files to update to the new version
  • unsupported - is the update no longer supported on this system.
  • update_state - state of the selected patch;
+ downloading - the update is being downloaded.
+ pending - the update is ready to be applied.
+ pending-service - the update is ready to be applied with the service.
+ pending-elevate - the update is ready to be applied but requires elevation.
+ applying - the update is being applied.
+ applied - the update is ready to be switched to.
+ applied-os - the update is OS update and to be installed.
+ applied-service - the update is ready to be switched to with the service.
+ succeeded - the update was successfully applied.
+ download-failed - the update failed to be downloaded.
+ failed - the update failed to be applied.
update_status_code - a code describing the state of the patch.

This method returns a new update status object.

returns application version of this update.

returns the build id <https://developer.mozilla.org/en-US/docs/Web/API/Navigator/buildID> of this update. Used to determine a particular build, down to the hour, minute and second of its creation. This allows the system to differentiate between several nightly builds with the same |version|.

returns the channel <http://kb.mozillazine.org/App.update.channel> used to retrieve this update from the Update Service.

returns a URI offering details about the content of this update. This page is intended to summarise the differences between this update and the previous, which also links to the release notes.

returns a string to display in the user interface for the version. If you want a real version number use app_version.

returns a boolean to indicate if an elevation failure has been encountered for this update.

returns a numeric error code <https://hg.mozilla.org/mozilla-central/file/tip/toolkit/mozapps/update/common/updatererrors.h> that conveys additional information about the state of a failed update. If the update is not in the "failed" state the value is zero.

returns when the update was installed.

returns a boolean to indicate if the update is a complete replacement of the user's existing installation or a patch representing the difference between the new version and the previous version.

returns name of the update, which should look like "<Application Name> <Update Version>"

returns the number of updates available (seems to always be 1).

returns the number of patches supplied by this update.

returns application version prior to the application being updated.

returns the amount of time in seconds before prompting the user to apply an update. If not specified, the value of app.update.promptWaitTime <http://kb.mozillazine.org/App.update.promptWaitTime> will be used.

returns the currently selected patch for this update.

returns a URI for the Update Service that supplied this update.

returns the message associated with this update, if any.

returns a boolean to indicate if an update has been successfully applied.

returns either 'minor', 'partial', which means a binary difference between two application versions or 'complete' which is a complete patch containing all of the replacement files to update to the new version

returns a boolean to show if the update is supported on this system.

returns the state of the selected patch;
+ downloading - the update is being downloaded.
+ pending - the update is ready to be applied.
+ pending-service - the update is ready to be applied with the service.
+ pending-elevate - the update is ready to be applied but requires elevation.
+ applying - the update is being applied.
+ applied - the update is ready to be switched to.
+ applied-os - the update is OS update and to be installed.
+ applied-service - the update is ready to be switched to with the service.
+ succeeded - the update was successfully applied.
+ download-failed - the update failed to be downloaded.
+ failed - the update failed to be applied.

The most usual state is "pending"

returns a code describing the state of the patch.

None.

Firefox::Marionette::UpdateStatus requires no configuration files or environment variables.

None.

None reported.

To report a bug, or view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues>

David Dick "<ddick@cpan.org>"

Copyright (c) 2021, David Dick "<ddick@cpan.org>". All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic.

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

2022-01-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.