mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-27 13:28:42 +00:00
823a798303
- Bug 1216972 - AsyncShutdown for content processes. r=froydnj (7af834ad7) - Bug 1177310 - Add quit-application-granted to AsyncShutdown parent process phases. r=Yoric (d6f694ae7) - Bug 1025146 - Modernize ViewSourceUtils to be able to use outerWindowIDs to load document sources. r=jryans. (b37b0c536) - Bug 1025146 - Make viewing the source of a page or frame via the context menu work with remote browsers. r=jryans. (0b29a6ef5) - Bug 1025146 - Update ViewSource tests to account for refactor. r=jryans. (669f9f5ac) - Bug 885366 - Show granted and refused site permissions in site identity panel. r=jaws (c60017f97) - Bug 889835 - Use SitePermissions.jsm as the backend for Page Info's Permissions tab. r=jaws (938002b98) - Bug 892378 - Let SitePermissions.jsm handle indexedDB's special use of UNKNOWN_ACTION and ALLOW_ACTION. r=jaws (68f107829) - Bug 894877 - permissions.js onRadioClick tries to pass a host string to SitePermissions.remove, needs to be an nsIURI instead. r=jaws (ed6b34a52) - Bug 1025146 - Modernize viewSource.js to use a frame script. r=jryans. (1e9c1a367) - Bug 1158377 - Make link drag-and-drop work with view source windows o#pened on remote browsers. r=jryans. (54514d89f) - try to cleanup some debugger files, remove apparent osx duplicates (698fe2a46) - Bug 1165050 - Make deprecation warnings in viewSource.js point to the right URL for documentation. r=jryans. (51654351f)
26 lines
1.0 KiB
JavaScript
26 lines
1.0 KiB
JavaScript
// -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
|
|
|
|
/* 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/. */
|
|
|
|
Components.utils.import("resource://gre/modules/Services.jsm");
|
|
|
|
function onLoadViewPartialSource() {
|
|
// check the view_source.wrap_long_lines pref
|
|
// and set the menuitem's checked attribute accordingly
|
|
let wrapLongLines = Services.prefs.getBoolPref("view_source.wrap_long_lines");
|
|
document.getElementById("menu_wrapLongLines")
|
|
.setAttribute("checked", wrapLongLines);
|
|
document.getElementById("menu_highlightSyntax")
|
|
.setAttribute("checked",
|
|
Services.prefs.getBoolPref("view_source.syntax_highlight"));
|
|
|
|
if (window.arguments[3] == 'selection')
|
|
viewSourceChrome.loadViewSourceFromSelection(window.arguments[2]);
|
|
else
|
|
viewSourceChrome.loadViewSourceFromFragment(window.arguments[2], window.arguments[3]);
|
|
|
|
window.content.focus();
|
|
}
|