mozilla

Revision 308449 of Midas editor module security preferences

  • Revision slug: Midas/Security_preferences
  • Revision title: Security preferences
  • Revision id: 308449
  • Created:
  • Creator: rawoodson22
  • Is current revision? No
  • Comment

Revision Content

To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Mozilla rich text editor, so the corresponding buttons on the Mozilla Rich Text Editing demo page will not work. To enable these functions for purposes of the demo, you must modify your browser preferences.

For Firefox:

  1. Quit Firefox. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
  2. Find your Firefox profile directory.
  3. Open the user.js file from that directory in a text editor. If there's no user.js file, create one.
  4. Add these lines to user.js:
    
        
    Ryan A Woodson
    (502) 352-1796 (Work)
    135 Appomattox Drive
    Frankfort, KY 40601
    IN3STREETTEAM17@YAHOO.COM

     
    Experience
    Montaplast of North America, Frankfort, KY Apr. 2012 to Sept. 2012
    Team Leader
    Assembled entire products. Assembled product parts. Worked as part of team. Worked on an assembly line. Rotated through different positions on an assembly. Determined work assignments and procedures. Swept work areas. Performed heavy lifting. Operated heavy equipment. Ran the assembly line. Inspected parts. My accomplishments included: Made sure we hit production and kept the line clean and safe.
     
    Wal-Mart, Frankfort, KY Sept. 2009 to Dec. 2010
    Receiving Associate
    Received items to stock shelves. Unpacked merchandise. Counted items received. Compared requisition orders with stock. Inspected inventory for damage. Recorded damage to stock. Disposed of damaged stock. Maintained electronic records of inventories. Used stock cards to maintain inventory control records. Filled requisition orders. Operated fork lifts, pallet jacks and electric lifts. My accomplishments included: Finishing the job on time. Keeping my area clean. Keeping the shelves stocked and organized.
     
    Licenses
    Kentucky Class D/Regular Operator

    Skills
    Assembly Language, Operate a Scissor Lift, Operate a Electric Pallet Jack, Operate a Walking Stacker,pallet jack,inventory management

    Volunteer Activities
    I'm willing to do any type of work
  5. Change the url https://www.mozilla.org to the site for which you want to enable this function.
  6. Save the file, and restart Firefox. The Clipboard buttons should now function.
Note: The preference is site as well as protocol specific. For example:
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org")

is not the same as:

user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org")

This is because the first uses HTTP while the second uses HTTPS.

If you want to allow multiple URLs to access the Paste operation, separate the URLs with a space. For example:

user_pref("capability.policy.allowclipboard.sites",
 "https://www.mozilla.org https://developer.mozilla.org")
For more information about security policies, see http://www.mozilla.org/projects/security/components/ConfigPolicy.html.

 

 

 

Revision Source

<p>To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Mozilla rich text editor, so the corresponding buttons on the Mozilla Rich Text Editing demo page will not work. To enable these functions for purposes of the demo, you must modify your browser preferences.</p>
<p>For Firefox:</p>
<ol>
  <li>Quit Firefox. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.</li>
  <li><a class="external" href="http://support.mozilla.com/en-US/kb/Profiles">Find your Firefox profile directory</a>.</li>
  <li>Open the <code class="filename">user.js</code> file from that directory in a text editor. If there's no user.js file, create one.</li>
  <li>Add these lines to <code class="filename">user.js</code>:
    <pre class="code">
</pre>
    <table border="0" width="100%">
      <tbody>
        <tr>
          <td><span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font16">Ryan A Woodson</font><br />
            <font class="font13">(502) 352-1796 (Work)<br />
            135 Appomattox Drive<br />
            Frankfort, KY 40601<br />
            IN3STREETTEAM17@YAHOO.COM</font> </font></span>
            <hr style="width:100%" />
            <table>
              <tbody>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </tbody>
            </table>
            <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font14"><b>Experience</b></font> </font></span>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
              </tbody>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
              </tbody>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
              </tbody>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
              </tbody>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
              </tbody>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
              </tbody>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                  <td align="left" valign="top"><span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">Montaplast of North America, Frankfort, KY</font> </font></span></td>
                  <td align="right"><span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">Apr. 2012 to Sept. 2012</font> </font></span></td>
                </tr>
                <tr>
                  <td valign="top"><span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><b><font class="font13">Team Leader</font></b></font></span></td>
                </tr>
                <tr>
                  <td colspan="2" valign="top">
                    <div style="text-align: justify;">
                      <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">Assembled entire products. Assembled product parts. Worked as part of team. Worked on an assembly line. Rotated through different positions on an assembly. Determined work assignments and procedures. Swept work areas. Performed heavy lifting. Operated heavy equipment. Ran the assembly line. Inspected parts. My accomplishments included: Made sure we hit production and kept the line clean and safe.</font></font></span></div>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td align="left" valign="top"><span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">Wal-Mart, Frankfort, KY</font> </font></span></td>
                  <td align="right"><span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">Sept. 2009 to Dec. 2010</font> </font></span></td>
                </tr>
                <tr>
                  <td valign="top"><span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><b><font class="font13">Receiving Associate</font></b></font></span></td>
                </tr>
                <tr>
                  <td colspan="2" valign="top">
                    <div style="text-align: justify;">
                      <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">Received items to stock shelves. Unpacked merchandise. Counted items received. Compared requisition orders with stock. Inspected inventory for damage. Recorded damage to stock. Disposed of damaged stock. Maintained electronic records of inventories. Used stock cards to maintain inventory control records. Filled requisition orders. Operated fork lifts, pallet jacks and electric lifts. My accomplishments included: Finishing the job on time. Keeping my area clean. Keeping the shelves stocked and organized.</font></font></span></div>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </tbody>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
              </tbody>
            </table>
            <div style="text-align: justify;">
              <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13"><font class="font14"><b>Licenses</b></font><br />
              <font class="font13">Kentucky</font> <font class="font13">Class D/Regular Operator</font> </font></font></span></div>
            <br />
            <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font14"><b>Skills</b></font> <font class="font13"> </font></font></span>
            <div style="text-align: justify;">
              <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">Assembly Language, Operate a Scissor Lift, Operate a Electric Pallet Jack, Operate a Walking Stacker,pallet jack,inventory management</font></font></span></div>
            <br />
            <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font14"><b>Volunteer Activities</b></font> <font class="font13"> </font></font></span>
            <div style="text-align: justify;">
              <span class="label-small-black" id="ctl00_cphCareer_lblFormattedOutput" style="display:inline-block;width:860px;left: 0px;
							position: absolute;"><font class="font14"><font class="font13">I'm willing to do any type of work</font></font></span></div>
          </td>
        </tr>
      </tbody>
    </table>
  </li>
  <li>Change the url <span class="external"><code class="url">https://www.mozilla.org</code></span> to the site for which you want to enable this function.</li>
  <li>Save the file, and restart Firefox. The Clipboard buttons should now function.</li>
</ol>
<div class="note">
  <strong>Note:</strong> The preference is site as well as protocol specific. For example:<br />
  <pre>
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org")</pre>
  <p>is not the same as:</p>
  <pre>
user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org")</pre>
  <p>This is because the first uses HTTP while the second uses HTTPS.</p>
</div>
<p>If you want to allow multiple URLs to access the Paste operation, separate the URLs with a space. For example:</p>
<pre>
user_pref("capability.policy.allowclipboard.sites",
 "https://www.mozilla.org https://developer.mozilla.org")
</pre>
<dl>
  <dt>
    For more information about security policies, see <a class="external" href="http://www.mozilla.org/projects/security/components/ConfigPolicy.html">http://www.mozilla.org/projects/security/components/ConfigPolicy.html</a>.</dt>
</dl>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
</ul>
Revert to this revision