"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "devtools/client/framework/devtools.js" between
UXP-2019.03.27.tar.gz and UXP-2019.06.08.tar.gz

About: Basilisk is a full-featured, optimized browser derived from the code behind the pre-Servo Firefox browser (29–56 era). UXP = Unified XUL Platform. Source code.

devtools.js  (UXP-2019.03.27):devtools.js  (UXP-2019.06.08)
skipping to change at line 198 skipping to change at line 198
* The ToolDefinition for the id or null. * The ToolDefinition for the id or null.
*/ */
getToolDefinition: function DT_getToolDefinition(toolId) { getToolDefinition: function DT_getToolDefinition(toolId) {
let tool = this._tools.get(toolId); let tool = this._tools.get(toolId);
if (!tool) { if (!tool) {
return null; return null;
} else if (!tool.visibilityswitch) { } else if (!tool.visibilityswitch) {
return tool; return tool;
} }
let enabled; let enabled = Services.prefs.getBoolPref(tool.visibilityswitch, true);
try {
enabled = Services.prefs.getBoolPref(tool.visibilityswitch);
} catch (e) {
enabled = true;
}
return enabled ? tool : null; return enabled ? tool : null;
}, },
/** /**
* Allow ToolBoxes to get at the list of tools that they should populate * Allow ToolBoxes to get at the list of tools that they should populate
* themselves with. * themselves with.
* *
* @return {Map} tools * @return {Map} tools
* A map of the the tool definitions registered in this instance * A map of the the tool definitions registered in this instance
 End of changes. 1 change blocks. 
6 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)