mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
be243367f4
- Bug 1060947 - Listing indexedDB databases throws if any of them have 0 objectStores. r=mratcliffe (a880b8d507) - Bug 1149497 - Wildcard domain cookies are not displayed. r=mratcliffe (76f75dbad2) - Bug 1261785 - Part 1: fix promise rejections in storage inspector tests. r=mratcliffe (f7c1cb6d4f) - Bug 1261785 - Part 2: use shared-head.js for storage inspector tests. r=mratcliffe (572c97d806) - Bug 1261785 - Part 3: make affected JS files eslint-clean. r=mratcliffe (50fd288875) - Bug 1260380 - 'Parsed value' section gets duplicated when editing. r=mratcliffe (8a2d4952b4) - Bug 1245615 - Just clear hostVsStores map as some async code may still use them. r=mratcliffe (9e3b3cc05e) - Bug 1262813 - Fix the getWindowFromHost to allow it gets correct window. r=mratcliffe (97bd327d93) - Bug 1259169 - nsICookieManager::remove() should be back-compatible, r=jdm (bc3d18286d) - missing bit of 1235350 (0462aa6c19) - Bug 1263906 - When starting to edit a storage inspector field, it scrolls away from the view. r=mratcliffe (0497dbe809) - Bug 1156720 - Firefox freezes when parsing large data in Storage Inspector. r=mratcliffe (4f987d99fa) - bug 1191889 skip Close() when not initialized r=roc (9bbb78c01e) - Bug 1254444 - Frame component should react to being focused by displaying a legible color in the memory tool. r=fitzgen (b3c29851ba) - Bug 1255529 - Make all of a location (source, line, column) clickable/linkable to another tool in the frame component. r=fitzgen,bgrins (2efe045724) - Bug 1258305 - Pull ViewHelpers.L10N, MultiL10N into their own module, r=jsantell (d511058274) - Bug 1245875 - Factor out webgl helpers out of tilt. r=vporof (b86b28f7e2) - Bug 1243561 - fix pretty-printing cache in debugger under certain circumstances r=jryans (c6d5db03bb) - Bug 1261860 - Prevent exception in debugger UI when processing script with jar: URLs. r=jlongster (bfa8aa2854) - Bug 1243736 - Enable browser_rules_pseudo-element_02.js with e10s and make rule-view wait for updateSourceLink; r=bgrins (e7aa1d2476) - Bug 1252346 - Fixes missing Services definition or tweaked eslint to figure out where does it comes from. r=jryans (89f188f259) - Bug 1240670 - Hide the filter property search for an unmatched rule r=pbro (2dc7ec51ed) - Bug 1241126 - ruleview: no new-prop editor on prev. editor blur;r=gl (630a522e64) - Bug 1175319 - Remove outdated MDSM documenation. r=jya DONTBUILD (775d7b1cb4) - Bug 1265978. Part 1 - add mozDumpDebugInfo() to HTMLMediaElement.webidl. r=bz. (6518ad6a08) - Bug 1265978. Part 2 - add methods to MediaDecoder and MDSM to dump debugging info. r=jya. (1b8ad138c8) - Bug 1265978. Part 2.5 - also dump reader data. r=jya. (d866537269) - Bug 1265978. Part 3 - invoke mozDumpDebugInfo() from JS. r=jya. (7a5a7b5837) - Bug 1224492 - Modify devtools client inspector to disable commented properties when they are pasted into the rule editor. r=tromey (2888958f3e) - Bug 1247434 - Move all rep component into shared directory; r=jryans (976e80928b) - Bug 1219281 - JSON View: Better styling for arrays; r=jryans (b864bb8b0b) - Bug 1247434 - fix eslint, add comments and remove Locale; r=jryans, pbrosset (4351da017f) - Bug 1247065 - Implement Tree Component. r=bgrins, r=linclark, r=jlongster (868d55fc0e) - Bug 1189492 - part1: support horizontal collapsing in ViewHelpers togglePane;r=vporof (6fd726ed4a) - Bug 1189492 - part2:inspector modify toggle icon to support horizontal layout;r=ntim (05998fa0f6) - Bug 1189492 - part3: show inspector toggle panel button in SIDE host;r=tromey (0ead5c0452)
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
/* 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/. */
|
|
"use strict";
|
|
|
|
const { Cc, Ci } = require("chrome");
|
|
const Services = require("Services");
|
|
|
|
const WEBGL_CONTEXT_NAME = "experimental-webgl";
|
|
|
|
function isWebGLForceEnabled()
|
|
{
|
|
return Services.prefs.getBoolPref("webgl.force-enabled");
|
|
}
|
|
|
|
function isWebGLSupportedByGFX()
|
|
{
|
|
let supported = false;
|
|
|
|
try {
|
|
let gfxInfo = Cc["@mozilla.org/gfx/info;1"].getService(Ci.nsIGfxInfo);
|
|
let angle = gfxInfo.FEATURE_WEBGL_ANGLE;
|
|
let opengl = gfxInfo.FEATURE_WEBGL_OPENGL;
|
|
|
|
// if either the Angle or OpenGL renderers are available, WebGL should work
|
|
supported = gfxInfo.getFeatureStatus(angle) === gfxInfo.FEATURE_STATUS_OK ||
|
|
gfxInfo.getFeatureStatus(opengl) === gfxInfo.FEATURE_STATUS_OK;
|
|
} catch(e) {
|
|
return false;
|
|
}
|
|
return supported;
|
|
}
|
|
|
|
function create3DContext(aCanvas)
|
|
{
|
|
// try to get a valid context from an existing canvas
|
|
let context = null;
|
|
try {
|
|
context = aCanvas.getContext(WEBGL_CONTEXT_NAME, aFlags);
|
|
} catch(e) {
|
|
return null;
|
|
}
|
|
return context;
|
|
}
|
|
|
|
function isWebGLSupported() {
|
|
let supported =
|
|
!isWebGLForceEnabled() &&
|
|
isWebGLSupportedByGFX() &&
|
|
create3DContext(createCanvas());
|
|
|
|
return supported;
|
|
}
|
|
exports.isWebGLSupported = isWebGLSupported;
|