1
// Initializes the message dialog
2
function webdeveloper_initializeMessage()
4
document.getElementById("webdeveloper-message").value = window.arguments[0];
6
// If the second window argument is not set
7
if(!window.arguments[1])
9
document.getElementById("webdeveloper-more-information").style.display = "none";
13
// Loads the more information link in a new tab
14
function webdeveloper_moreInformation()
16
var parentWindow = null;
18
// If there is a parent window
21
// If there is a grand parent window
22
if(window.opener.opener)
24
parentWindow = window.opener.opener;
28
parentWindow = window.opener;
32
// If a parent window was found
35
// If the open in windows preference is set to true
36
if(webdeveloper_getBooleanPreference("webdeveloper.open.tabs", true))
38
var newTab = parentWindow.getBrowser().addTab(window.arguments[1]);
40
// If the open tabs in background preference is not set or is set to false
41
if(!webdeveloper_getBooleanPreference("webdeveloper.open.tabs.background", true))
43
parentWindow.getBrowser().selectedTab = newTab;
48
parentWindow.open(window.arguments[1]);
b'\\ No newline at end of file'