suite/browser/safeBrowsingOverlay.xul
author Philip Chee <philip.chee@gmail.com>
Sun, 03 Feb 2013 00:55:46 +0800
changeset 14777 17fd50faed6c822a0a3df644d9fe11d1ab0d11f5
parent 14769 eb9aa93d401c684c2c5b7e229e563c6defe8711b
child 24742 1759686baf846d246351f0e1537b6a53c35ae40a
permissions -rw-r--r--
Bug 477718 Implement Phishing Protection. Fix missing theme changes for classic/mac r=stefanh.

<?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 overlay SYSTEM "chrome://communicator/locale/safeBrowsing.dtd">

<overlay id="safeBrowsingOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/javascript"
          src="chrome://navigator/content/safeBrowsingOverlay.js"/>

  <broadcasterset id="navBroadcasters">
    <broadcaster id="safeBrowsingBroadcaster" disabled="true"/>
  </broadcasterset>

  <menupopup id="helpPopup">
    <menuitem id="reportPhishing"
              label="&reportPhishSite.label;"
              accesskey="&reportPhishSite.accesskey;"
              insertbefore="menu_HelpAboutSeparator"
              observes="safeBrowsingBroadcaster"
              oncommand="openUILink(gSafeBrowsing.getReportURL('Phish'), event);"
              onclick="checkForMiddleClick(this, event);"/>
    <menuitem id="reportPhishingError"
              label="&notAForgery.label;"
              accesskey="&notAForgery.accesskey;"
              insertbefore="menu_HelpAboutSeparator"
              observes="safeBrowsingBroadcaster"
              oncommand="openUILinkIn(gSafeBrowsing.getReportURL('Error'), 'tabfocused');"/>
  </menupopup>
</overlay>