tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

addEngine.xhtml (3029B)


      1 <?xml version="1.0"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 
      6 <?csp default-src chrome:; style-src chrome: 'unsafe-inline'; ?>
      7 
      8 <window
      9  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     10  xmlns:html="http://www.w3.org/1999/xhtml"
     11  data-l10n-attrs="title, style"
     12  headerparent="add-engine-dialog"
     13  neediconheader="true"
     14  persist="width height"
     15 >
     16  <script src="chrome://global/content/globalOverlay.js" />
     17  <script src="chrome://global/content/editMenuOverlay.js" />
     18  <dialog
     19    id="add-engine-dialog"
     20    buttons="accept,cancel,extra1"
     21    buttondisabledaccept="true"
     22    data-l10n-attrs="buttonlabelaccept, buttonaccesskeyaccept, buttonlabelextra1"
     23  >
     24    <linkset>
     25      <html:link rel="stylesheet" href="chrome://global/skin/global.css" />
     26      <html:link
     27        rel="stylesheet"
     28        href="chrome://browser/content/search/addEngine.css"
     29      />
     30 
     31      <html:link rel="localization" href="browser/search.ftl" />
     32    </linkset>
     33 
     34    <script src="chrome://global/content/adjustableTitle.js" />
     35    <script src="chrome://browser/content/search/addEngine.js" />
     36 
     37    <html:form id="addEngineForm">
     38      <html:div class="dialogRow">
     39        <html:label
     40          id="engineNameLabel"
     41          for="engineName"
     42          data-l10n-id="add-engine-name"
     43        />
     44        <html:input id="engineName" type="text" required="required" />
     45        <html:div class="error-label">valid</html:div>
     46      </html:div>
     47 
     48      <html:div class="dialogRow" id="engineUrlRow">
     49        <html:label
     50          id="engineUrlLabel"
     51          for="engineUrl"
     52          data-l10n-id="add-engine-url2"
     53        />
     54        <html:input id="engineUrl" type="url" required="required" />
     55        <html:div class="error-label">valid</html:div>
     56      </html:div>
     57 
     58      <html:div class="dialogRow">
     59        <html:label
     60          id="engineAliasLabel"
     61          for="engineAlias"
     62          data-l10n-id="add-engine-keyword2"
     63        />
     64        <html:input id="engineAlias" type="text" />
     65        <html:div class="error-label">valid</html:div>
     66      </html:div>
     67 
     68      <html:div id="advanced-section" hidden="hidden">
     69        <html:div class="dialogRow" id="enginePostDataRow">
     70          <html:label
     71            id="enginePostDataLabel"
     72            for="enginePostData"
     73            data-l10n-id="add-engine-post-data"
     74          />
     75          <html:input id="enginePostData" type="text" />
     76          <html:div class="error-label">valid</html:div>
     77        </html:div>
     78 
     79        <html:div class="dialogRow" id="suggestUrlRow">
     80          <html:label
     81            id="suggestUrlLabel"
     82            for="suggestUrl"
     83            data-l10n-id="add-engine-suggest-url"
     84          />
     85          <html:input id="suggestUrl" type="url" />
     86          <html:div class="error-label">valid</html:div>
     87        </html:div>
     88      </html:div>
     89    </html:form>
     90  </dialog>
     91 </window>