summaryrefslogtreecommitdiffstats
path: root/toolkit/pluginproblem/content/pluginProblem.xml
blob: d890be9006a478cf53f4bb24b8db307dd16f8094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE bindings [
  <!ENTITY % pluginproblemDTD SYSTEM "chrome://pluginproblem/locale/pluginproblem.dtd">
  <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  %pluginproblemDTD;
  %globalDTD;
  %brandDTD;
]>

<bindings id="pluginBindings"
              xmlns="http://www.mozilla.org/xbl"
              xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
              xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="pluginProblem" inheritstyle="false" chromeOnlyContent="true" bindToUntrustedContent="true">
    <resources>
        <stylesheet src="chrome://pluginproblem/content/pluginProblemContent.css"/>
        <stylesheet src="chrome://mozapps/skin/plugins/pluginProblem.css"/>
    </resources>

    <content>
        <html:div class="mainBox" anonid="main" chromedir="&locale.dir;">
            <html:div class="hoverBox">
                <html:label>
                    <html:button class="icon" anonid="icon"/>
                    <html:div class="msg msgVulnerabilityStatus" anonid="vulnerabilityStatus"><!-- set at runtime --></html:div>
                    <html:div class="msg msgTapToPlay">&tapToPlayPlugin;</html:div>
                    <html:div class="msg msgClickToPlay" anonid="clickToPlay">&clickToActivatePlugin;</html:div>
                </html:label>

                <html:div class="msg msgBlocked">&blockedPlugin.label;</html:div>
                <html:div class="msg msgCrashed">
                    <html:div class="msgCrashedText" anonid="crashedText"><!-- set at runtime --></html:div>
                    <!-- link href set at runtime -->
                    <html:div class="msgReload">&reloadPlugin.pre;<html:a class="reloadLink" anonid="reloadLink" href="">&reloadPlugin.middle;</html:a>&reloadPlugin.post;</html:div>
                </html:div>

                <html:div class="msg msgManagePlugins"><html:a class="action-link" anonid="managePluginsLink" href="">&managePlugins;</html:a></html:div>
                <html:div class="submitStatus" anonid="submitStatus">
                    <html:div class="msg msgPleaseSubmit" anonid="pleaseSubmit">
                        <html:textarea class="submitComment"
                                       anonid="submitComment"
                                       placeholder="&report.comment;"/>
                        <html:div class="submitURLOptInBox">
                            <html:label><html:input class="submitURLOptIn" anonid="submitURLOptIn" type="checkbox"/> &report.pageURL;</html:label>
                        </html:div>
                        <html:div class="submitButtonBox">
                            <html:span class="helpIcon" anonid="helpIcon" role="link"/>
                            <html:input class="submitButton" type="button"
                                        anonid="submitButton"
                                        value="&report.please;"/>
                        </html:div>
                    </html:div>
                    <html:div class="msg msgSubmitting">&report.submitting;<html:span class="throbber"> </html:span></html:div>
                    <html:div class="msg msgSubmitted">&report.submitted;</html:div>
                    <html:div class="msg msgNotSubmitted">&report.disabled;</html:div>
                    <html:div class="msg msgSubmitFailed">&report.failed;</html:div>
                    <html:div class="msg msgNoCrashReport">&report.unavailable;</html:div>
                </html:div>
                <html:div class="msg msgCheckForUpdates"><html:a class="action-link" anonid="checkForUpdatesLink" href="">&checkForUpdates;</html:a></html:div>
            </html:div>
            <html:button class="closeIcon" anonid="closeIcon" title="&hidePluginBtn.label;"/>
        </html:div>
        <html:div style="display:none;"><children/></html:div>
    </content>
    <implementation>
      <constructor>
        // Notify browser-plugins.js that we were attached, on a delay because
        // this binding doesn't complete layout until the constructor
        // completes.
        this.dispatchEvent(new CustomEvent("PluginBindingAttached"));
      </constructor>
    </implementation>
</binding>

<binding id="replacement" extends="chrome://pluginproblem/content/pluginProblem.xml#pluginProblem" inheritstyle="false" chromeOnlyContent="true" bindToUntrustedContent="true">
  <implementation>
    <constructor>
      this.dispatchEvent(new CustomEvent("PluginPlaceholderReplaced"));
    </constructor>
    </implementation>
</binding>

</bindings>