~ubuntu-branches/ubuntu/natty/ubufox/natty-proposed

« back to all changes in this revision

Viewing changes to .pc/06_firefox-4.patch/content/pluginInstallerWizard.xul

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2011-01-01 14:30:25 UTC
  • Revision ID: james.westby@ubuntu.com-20110101143025-52ew6ngsqev5gcqn
Tags: 0.9~rc2-0ubuntu7
* Add patch to update for Firefox 4:
  - Rename AboutHome to AboutStartup, and have it handle about:startup now 
    (to not conflict with the new about:home handler in Firefox
  - Set default home page to about:startpage
  - Add support for the XPCOM changes in Gecko 2.0
  - In the restart notifier, don't hardcode a list of filenames for different
    browser versions, but just use MOZ_APP_LAUNCHER instead. This will
    indirectly fix LP: #511250 and should prevent it from happening again
  - Look in the new location for the restart-required trigger, it has moved
    to a location not monitored by update-notifier now, so we only get the
    restart required notification in the browser
  - Merge the plugin finder code from Firefox 4. This now uses AddonManager,
    so the MinVersion needs to be bumped
  - Drop the FF2.0 specific code
  - Drop the AddonsOverlay and associated code, this hasn't worked for
    several releases since we started using software-center, and nobody
    really noticed so far. We can reimplement this at a later date if wanted,
    but it throws JS exceptions when loading in FF4.0 now
  - Specify for the extension to be unpacked by the installer. Without this,
    the prefs aren't used
  - Get the distributionID field for the pfs URL from the preferences, rather
    than hard-coding a value

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!-- ***** BEGIN LICENSE BLOCK *****
 
3
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
4
   -
 
5
   - The contents of this file are subject to the Mozilla Public License Version
 
6
   - 1.1 (the "License"); you may not use this file except in compliance with
 
7
   - the License. You may obtain a copy of the License at
 
8
   - http://www.mozilla.org/MPL/
 
9
   -
 
10
   - Software distributed under the License is distributed on an "AS IS" basis,
 
11
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
12
   - for the specific language governing rights and limitations under the
 
13
   - License.
 
14
   -
 
15
   - The Original Code is Plugin Finder Service code.
 
16
   -
 
17
   - The Initial Developer of the Original Code is
 
18
   - IBM Corporation.
 
19
   - Portions created by IBM Corporation are Copyright (C) 2004
 
20
   - IBM Corporation. All Rights Reserved.
 
21
   -
 
22
   - Contributor(s):
 
23
   -   Doron Rosenberg <doronr@us.ibm.com>
 
24
   -   Alexander Sack <asac@jwsdot.com> - Canonical Ltd.
 
25
   -
 
26
   - Alternatively, the contents of this file may be used under the terms of
 
27
   - either the GNU General Public License Version 2 or later (the "GPL"), or
 
28
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
29
   - in which case the provisions of the GPL or the LGPL are applicable instead
 
30
   - of those above. If you wish to allow use of your version of this file only
 
31
   - under the terms of either the GPL or the LGPL, and not to allow others to
 
32
   - use your version of this file under the terms of the MPL, indicate your
 
33
   - decision by deleting the provisions above and replace them with the notice
 
34
   - and other provisions required by the LGPL or the GPL. If you do not delete
 
35
   - the provisions above, a recipient may use your version of this file under
 
36
   - the terms of any one of the MPL, the GPL or the LGPL.
 
37
   -
 
38
   - ***** END LICENSE BLOCK ***** -->
 
39
 
 
40
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 
41
<?xml-stylesheet href="chrome://mozapps/content/plugins/pluginInstallerWizard.css"?>
 
42
<?xml-stylesheet href="chrome://mozapps/skin/plugins/pluginInstallerWizard.css"?>
 
43
 
 
44
<!DOCTYPE wizard [
 
45
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
 
46
%brandDTD;
 
47
<!ENTITY % pluginsDTD SYSTEM "chrome://mozapps/locale/plugins/plugins.dtd">
 
48
%pluginsDTD;
 
49
]>
 
50
 
 
51
<wizard id="plugin-installer-wizard" title="&pluginWizard.title;"
 
52
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
53
        persist="width height screenX screenY sizemode"
 
54
        style="min-width: 600px; min-height: 360px;"
 
55
        onload="wizardInit()"
 
56
        onwizardfinish="return wizardFinish();">
 
57
 
 
58
  <script type="application/x-javascript" src="chrome://ubufox/content/pluginInstallerWizard.js"/>
 
59
  <script type="application/x-javascript" src="chrome://ubufox/content/pluginInstallerDatasource.js"/>
 
60
  <script type="application/x-javascript" src="chrome://ubufox/content/pluginInstallerService.js"/>
 
61
 
 
62
  <stringbundleset id="pluginSet">
 
63
    <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
 
64
    <stringbundle id="xpinstallStrings" src="chrome://global/locale/xpinstall/xpinstall.properties"/>
 
65
    <stringbundle id="pluginWizardString" src="chrome://mozapps/locale/plugins/plugins.properties"/>
 
66
    <stringbundle id="ubufoxPluginWizardString" src="chrome://ubufox/locale/ubufox.properties"/>
 
67
  </stringbundleset>
 
68
 
 
69
  <wizardpage label="&pluginWizard.firstPage.title; 2">
 
70
    <description value="&pluginWizard.checkingForPlugins.description.label;"/>
 
71
    <separator />
 
72
    <progressmeter id="ws_request_progress" mode="undetermined"/>
 
73
  </wizardpage>
 
74
 
 
75
  <wizardpage label="&pluginWizard.availablePluginsPage.title;"
 
76
              onpageshow="gPluginInstaller.showPluginList()">
 
77
 
 
78
    <vbox id="pluginselection-placeholder"/>
 
79
 
 
80
    <vbox id="installerUI" hidden="true">
 
81
      <separator />
 
82
      <description>&pluginWizard.availablePluginsPage.installerUI;</description>
 
83
    </vbox>
 
84
 
 
85
    <separator />
 
86
    <description value="&pluginWizard.availablePluginsPage.continueMsg.label;"/>
 
87
  </wizardpage>
 
88
 
 
89
  <wizardpage label="&pluginWizard.licensePage.title;" 
 
90
              onpageshow="gPluginInstaller.showLicenses()"
 
91
              onpageadvanced="return gPluginInstaller.showNextLicense();"
 
92
              onpagerewound="return gPluginInstaller.showPreviousLicense();">
 
93
    <description id="pluginLicenseLabel"> </description>
 
94
 
 
95
    <vbox id="licenseContainer" flex="1">
 
96
      <iframe id="licenseIFrame" flex="1" src="" />
 
97
    </vbox>
 
98
 
 
99
    <radiogroup id="licenseRadioGroup">
 
100
      <radio id="licenseRadioGroup1" disabled="true"
 
101
             oncommand="gPluginInstaller.licenseRadioGroupChange(true)"
 
102
             label="&pluginWizard.licensePage.accept.label;"/>
 
103
      <radio id="licenseRadioGroup2" disabled="true" selected="true"
 
104
             oncommand="gPluginInstaller.licenseRadioGroupChange(false)"
 
105
             label="&pluginWizard.licensePage.deny.label;"/>
 
106
    </radiogroup>
 
107
  </wizardpage>
 
108
 
 
109
  <wizardpage label="&pluginWizard.installPluginsPage.title;" 
 
110
              onpageshow="gPluginInstaller.startPluginInstallation()">
 
111
    <description value="&pluginWizard.installPluginsPage.description.label;"/>
 
112
 
 
113
    <separator />
 
114
 
 
115
    <description id="plugin_install_progress_message" value=""/>
 
116
    <progressmeter id="plugin_install_progress" mode="undetermined"/>
 
117
  </wizardpage>
 
118
 
 
119
  <wizardpage id="lastpage" pageid="lastpage" 
 
120
              onpageshow="gPluginInstaller.showPluginResults()">
 
121
 
 
122
    <description id="pluginSummaryDescription" 
 
123
                 value="&pluginWizard.finalPage.description.label;"/>
 
124
 
 
125
    <separator />
 
126
 
 
127
    <grid class="indent">
 
128
      <columns>
 
129
        <column/>
 
130
        <column style="margin-right:15px;"/>
 
131
        <column style="margin-right:15px;"/>
 
132
        <column />
 
133
      </columns>
 
134
 
 
135
      <rows id="pluginResultList">
 
136
      </rows>
 
137
    </grid>
 
138
 
 
139
    <description id="pluginSummaryRestartNeeded" style="padding-top:10px;"
 
140
                 value="&pluginWizard.finalPage.restart.label;"/>
 
141
    <spacer flex="1" />
 
142
    <description id="moreInfoLink"
 
143
      style="color:rgb(0, 0, 255); cursor:pointer; text-decoration:underline;"
 
144
      value="&pluginWizard.finalPage.moreInfo.label;"/>
 
145
  </wizardpage>
 
146
 
 
147
</wizard>
 
148