rem: #ifdef MOZ_WIDGET_GTK2 var shell = getShellService(); if (!shell) 
add: try { var shellSvc = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIShellService); } catch (e) { 
context: function Startup(){  var useButton = document.getElementById("browserUseCurrent");    try {    var browser = top.opener.document.getElementById("content");      var l = browser.mPanelContainer.childNodes.length;    if (l > 1)      useButton.label = useButton.getAttribute("label2");  } catch (e) {     // prefwindow wasn't opened from a browser window, so no current page    useButton.disabled = true;  } #ifdef MOZ_WIDGET_GTK2  var shell = getShellService();  if (!shell)    document.getElementById("defaultBrowserPrefs").hidden = true;#endif  parent.hPrefWindow.registerOKCallbackFunc(onOK);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/04ec2e5a6be894af2216b7117fd7e0ed61800d4b/pref-navigator.js/clean/browser/components/prefwindow/content/pref-navigator.js