Skip to content

Commit

Permalink
Merge m-c to graphics
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 1rTRVEHequ9
  • Loading branch information
staktrace committed Mar 23, 2017
2 parents 1a518c8 + 413a216 commit c3c94c7
Show file tree
Hide file tree
Showing 1,068 changed files with 46,778 additions and 32,003 deletions.
2 changes: 1 addition & 1 deletion CLOBBER
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
# don't change CLOBBER for WebIDL changes any more.

Bug 1346967 - Generate metadata for all three ISimpleDOM interfaces via a single combined run of MIDL
Bug 1343682 - backing out a previous version didn't stop the failures from it, so it appears to need a clobber both out and in
34 changes: 8 additions & 26 deletions accessible/base/TextAttrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
#include "mozilla/AppUnits.h"
#include "mozilla/gfx/2D.h"

#if defined(MOZ_WIDGET_GTK)
#include "gfxPlatformGtk.h" // xxx - for UseFcFontList
#endif

using namespace mozilla;
using namespace mozilla::a11y;

Expand Down Expand Up @@ -652,28 +648,14 @@ TextAttrsMgr::FontWeightTextAttr::
if (font->IsSyntheticBold())
return 700;

bool useFontEntryWeight = true;

// Under Linux, when gfxPangoFontGroup code is used,
// font->GetStyle()->weight will give the absolute weight requested of the
// font face. The gfxPangoFontGroup code uses the gfxFontEntry constructor
// which doesn't initialize the weight field.
#if defined(MOZ_WIDGET_GTK)
useFontEntryWeight = gfxPlatformGtk::UseFcFontList();
#endif

if (useFontEntryWeight) {
// On Windows, font->GetStyle()->weight will give the same weight as
// fontEntry->Weight(), the weight of the first font in the font group,
// which may not be the weight of the font face used to render the
// characters. On Mac, font->GetStyle()->weight will just give the same
// number as getComputedStyle(). fontEntry->Weight() will give the weight
// of the font face used.
gfxFontEntry *fontEntry = font->GetFontEntry();
return fontEntry->Weight();
} else {
return font->GetStyle()->weight;
}
// On Windows, font->GetStyle()->weight will give the same weight as
// fontEntry->Weight(), the weight of the first font in the font group,
// which may not be the weight of the font face used to render the
// characters. On Mac, font->GetStyle()->weight will just give the same
// number as getComputedStyle(). fontEntry->Weight() will give the weight
// of the font face used.
gfxFontEntry *fontEntry = font->GetFontEntry();
return fontEntry->Weight();
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions accessible/base/nsAccessibilityService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ nsAccessibilityService::ContentRemoved(nsIPresShell* aPresShell,
}

if (child) {
MOZ_DIAGNOSTIC_ASSERT(child->Parent(), "Unattached accessible from tree");
document->ContentRemoved(child->Parent(), aChildNode);
#ifdef A11Y_LOG
if (logging::IsEnabled(logging::eTree))
Expand Down
2 changes: 1 addition & 1 deletion browser/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
"rules": {
// XXX Bug 1326071 - This should be reduced down - probably to 20 or to
// be removed & synced with the mozilla/recommended value.
"complexity": ["error", {"max": 40}],
"complexity": ["error", {"max": 42}],

"no-shadow": "error",
}
Expand Down
10 changes: 10 additions & 0 deletions browser/app/blocklist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,11 @@
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
<versionRange maxVersion="23.0.0.205" minVersion="23.0.0.185" severity="0" vulnerabilitystatus="1"/>
</pluginItem>
<pluginItem blockID="26c2a4e2-9aff-4ab1-b654-20e478b375f0" os="Linux">
<match exp="libflashplayer\.so" name="filename"/>
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
<versionRange maxVersion="24.0.0.221" minVersion="24.0.0.194" severity="0" vulnerabilitystatus="1"/>
</pluginItem>
<pluginItem blockID="p248">
<match exp="Scorch\.plugin" name="filename"/>
<versionRange maxVersion="6.2.0b88" minVersion="0" severity="1"/>
Expand All @@ -2206,6 +2211,11 @@
<pluginItem blockID="p31">
<match exp="NPMySrch.dll" name="filename"/>
</pluginItem>
<pluginItem blockID="2b608fae-1750-4a06-a142-0bc9ba17a7d0">
<match exp="(NPSWF32.*\.dll)|(NPSWF64.*\.dll)|(Flash\ Player\.plugin)" name="filename"/>
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
<versionRange maxVersion="24.0.0.221" minVersion="24.0.0.194" severity="0" vulnerabilitystatus="1"/>
</pluginItem>
<pluginItem blockID="p1020">
<match exp="(NPSWF32.*\.dll)|(NPSWF64.*\.dll)|(Flash\ Player\.plugin)" name="filename"/>
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
Expand Down
1 change: 1 addition & 0 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pref("extensions.minCompatibleAppVersion", "4.0");
pref("extensions.checkCompatibility.temporaryThemeOverride_minAppVersion", "29.0a1");

pref("xpinstall.customConfirmationUI", true);
pref("extensions.webextPermissionPrompts", true);

// Preferences for AMO integration
pref("extensions.getAddons.cache.enabled", true);
Expand Down
10 changes: 5 additions & 5 deletions browser/base/content/aboutNetError.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
panel.style.display = "block";
document.getElementById("netErrorButtonContainer").style.display = "none";
document.getElementById("prefResetButton").addEventListener("click", function resetPreferences(e) {
const event = new CustomEvent("AboutNetErrorResetPreferences", {bubbles:true});
const event = new CustomEvent("AboutNetErrorResetPreferences", {bubbles: true});
document.dispatchEvent(event);
});
addAutofocus("prefResetButton", "beforeend");
Expand Down Expand Up @@ -127,7 +127,7 @@

if (panel.style.display == "block") {
// send event to trigger telemetry ping
var event = new CustomEvent("AboutNetErrorUIExpanded", {bubbles:true});
var event = new CustomEvent("AboutNetErrorUIExpanded", {bubbles: true});
document.dispatchEvent(event);
}
});
Expand Down Expand Up @@ -292,7 +292,7 @@
}
}, true, true);

var event = new CustomEvent("AboutNetErrorLoad", {bubbles:true});
var event = new CustomEvent("AboutNetErrorLoad", {bubbles: true});
document.dispatchEvent(event);

if (err == "inadequateSecurityError") {
Expand All @@ -315,7 +315,7 @@

document.getElementById("openPortalLoginPageButton")
.addEventListener("click", () => {
let event = new CustomEvent("AboutNetErrorOpenCaptivePortal", {bubbles:true});
let event = new CustomEvent("AboutNetErrorOpenCaptivePortal", {bubbles: true});
document.dispatchEvent(event);
});

Expand Down Expand Up @@ -362,7 +362,7 @@
}
}, true, true);

let event = new CustomEvent("AboutNetErrorLoad", {bubbles:true});
let event = new CustomEvent("AboutNetErrorLoad", {bubbles: true});
document.getElementById("advancedButton").dispatchEvent(event);

addDomainErrorLinks();
Expand Down
4 changes: 2 additions & 2 deletions browser/base/content/aboutTabCrashed.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var AboutTabCrashed = {
document.getElementById("email").addEventListener("input", this);

// Error pages are loaded as LOAD_BACKGROUND, so they don't get load events.
let event = new CustomEvent("AboutTabCrashedLoad", {bubbles:true});
let event = new CustomEvent("AboutTabCrashedLoad", {bubbles: true});
document.dispatchEvent(event);

sendAsyncMessage("Load");
Expand Down Expand Up @@ -202,7 +202,7 @@ var AboutTabCrashed = {
document.getElementById("requestAutoSubmit").hidden = false;
}

let event = new CustomEvent("AboutTabCrashedReady", {bubbles:true});
let event = new CustomEvent("AboutTabCrashedReady", {bubbles: true});
document.dispatchEvent(event);
},

Expand Down
6 changes: 3 additions & 3 deletions browser/base/content/abouthome/aboutHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ window.addEventListener("pageshow", function() {
window.addEventListener("resize", fitToWidth);

// Ask chrome to update snippets.
var event = new CustomEvent("AboutHomeLoad", {bubbles:true});
var event = new CustomEvent("AboutHomeLoad", {bubbles: true});
document.dispatchEvent(event);
});

Expand Down Expand Up @@ -241,7 +241,7 @@ function setupSearch() {
* Inform the test harness that we're done loading the page.
*/
function loadCompleted() {
var event = new CustomEvent("AboutHomeLoadSnippetsCompleted", {bubbles:true});
var event = new CustomEvent("AboutHomeLoadSnippetsCompleted", {bubbles: true});
document.dispatchEvent(event);
}

Expand All @@ -254,7 +254,7 @@ function loadSnippets() {
throw new Error("Snippets map has not properly been initialized");

// Allow tests to modify the snippets map before using it.
var event = new CustomEvent("AboutHomeLoadSnippets", {bubbles:true});
var event = new CustomEvent("AboutHomeLoadSnippets", {bubbles: true});
document.dispatchEvent(event);

// Check cached snippets version.
Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/blockedSite.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
}

// Inform the test harness that we're done loading the page
var event = new CustomEvent("AboutBlockedLoaded", {bubbles:true});
var event = new CustomEvent("AboutBlockedLoaded", {bubbles: true});
document.dispatchEvent(event);
}
]]></script>
Expand Down
20 changes: 10 additions & 10 deletions browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,13 +798,13 @@ var gPopupBlockerObserver = {
} catch (e) { }

var bundlePreferences = document.getElementById("bundle_preferences");
var params = { blockVisible : false,
sessionVisible : false,
allowVisible : true,
prefilledHost : prefillValue,
permissionType : "popup",
windowTitle : bundlePreferences.getString("popuppermissionstitle"),
introText : bundlePreferences.getString("popuppermissionstext") };
var params = { blockVisible: false,
sessionVisible: false,
allowVisible: true,
prefilledHost: prefillValue,
permissionType: "popup",
windowTitle: bundlePreferences.getString("popuppermissionstitle"),
introText: bundlePreferences.getString("popuppermissionstext") };
var existingWindow = Services.wm.getMostRecentWindow("Browser:Permissions");
if (existingWindow) {
existingWindow.initWithParams(params);
Expand Down Expand Up @@ -3056,7 +3056,7 @@ var BrowserOnClick = {
securityInfo = getSecurityInfo(securityInfoAsString);
let sslStatus = securityInfo.QueryInterface(Ci.nsISSLStatusProvider)
.SSLStatus;
let params = { exceptionAdded : false,
let params = { exceptionAdded: false,
sslStatus };

try {
Expand Down Expand Up @@ -3611,7 +3611,7 @@ function openHomeDialog(aURL) {

var pressedVal = Services.prompt.confirmEx(window, promptTitle, promptMsg,
Services.prompt.STD_YES_NO_BUTTONS,
null, null, null, null, {value:0});
null, null, null, null, {value: 0});

if (pressedVal == 0) {
try {
Expand Down Expand Up @@ -6232,7 +6232,7 @@ var OfflineApps = {
let options = {
persistent: true,
hideClose: true,
controlledItems : [[Cu.getWeakReference(browser), docId, uri]]
controlledItems: [[Cu.getWeakReference(browser), docId, uri]]
};
notification = PopupNotifications.show(browser, notificationID, message,
anchorID, mainAction,
Expand Down
6 changes: 4 additions & 2 deletions browser/base/content/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,10 @@ var PageInfoListener = {
try {
// Note: makeURLAbsolute will throw if either the baseURI is not a valid URI
// or the URI formed from the baseURI and the URL is not a valid URI.
let href = makeURLAbsolute(elem.baseURI, elem.href.baseVal);
addImage(href, strings.mediaImg, "", elem, false);
if (elem.href.baseVal) {
let href = Services.io.newURI(elem.href.baseVal, null, Services.io.newURI(elem.baseURI)).spec;
addImage(href, strings.mediaImg, "", elem, false);
}
} catch (e) { }
} else if (elem instanceof content.HTMLVideoElement) {
addImage(elem.currentSrc, strings.mediaVideo, "", elem, false);
Expand Down
5 changes: 1 addition & 4 deletions browser/base/content/pageinfo/pageInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,12 +1002,9 @@ function formatDate(datestr, unknown) {
if (!date.valueOf())
return unknown;

const locale = Components.classes["@mozilla.org/chrome/chrome-registry;1"]
.getService(Components.interfaces.nsIXULChromeRegistry)
.getSelectedLocale("global", true);
const dtOptions = { year: "numeric", month: "long", day: "numeric",
hour: "numeric", minute: "numeric", second: "numeric" };
return date.toLocaleString(locale, dtOptions);
return date.toLocaleString(undefined, dtOptions);
}

function doCopy() {
Expand Down
5 changes: 3 additions & 2 deletions browser/base/content/pageinfo/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ function onIndexedDBUsageCallback(request) {
throw new Error("Callback received for bad URI: " + uri);
}

if (request.usage) {
let usage = request.result.usage;
if (usage) {
if (!("DownloadUtils" in window)) {
Components.utils.import("resource://gre/modules/DownloadUtils.jsm");
}
Expand All @@ -228,7 +229,7 @@ function onIndexedDBUsageCallback(request) {

status.value =
gBundle.getFormattedString("indexedDBUsage",
DownloadUtils.convertByteUnits(request.usage));
DownloadUtils.convertByteUnits(usage));
status.removeAttribute("hidden");
button.removeAttribute("hidden");
}
Expand Down
22 changes: 11 additions & 11 deletions browser/base/content/pageinfo/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ var security = {

var retval = {
hostName,
cAName : issuerName,
encryptionAlgorithm : undefined,
encryptionStrength : undefined,
cAName: issuerName,
encryptionAlgorithm: undefined,
encryptionStrength: undefined,
version: undefined,
isBroken,
isMixed,
isEV,
cert,
certificateTransparency : undefined
certificateTransparency: undefined
};

var version;
Expand Down Expand Up @@ -111,15 +111,15 @@ var security = {
}
return {
hostName,
cAName : "",
encryptionAlgorithm : "",
encryptionStrength : 0,
cAName: "",
encryptionAlgorithm: "",
encryptionStrength: 0,
version: "",
isBroken,
isMixed,
isEV,
cert : null,
certificateTransparency : null
cert: null,
certificateTransparency: null
};
},

Expand Down Expand Up @@ -165,7 +165,7 @@ var security = {
win.focus();
} else
window.openDialog("chrome://browser/content/preferences/cookies.xul",
"Browser:Cookies", "", {filterString : eTLD});
"Browser:Cookies", "", {filterString: eTLD});
},

/**
Expand All @@ -175,7 +175,7 @@ var security = {
LoginHelper.openPasswordManager(window, this._getSecurityInfo().hostName);
},

_cert : null
_cert: null
};

function securityOnLoad(uri, windowInfo) {
Expand Down
4 changes: 2 additions & 2 deletions browser/base/content/sanitize.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ Sanitizer.prototype = {
// and can optionally specify a specific range. If timespan is not ignored,
// and range is not set, sanitize() will use the value of the timespan
// pref to determine a range
ignoreTimespan : true,
range : null,
ignoreTimespan: true,
range: null,

items: {
cache: {
Expand Down
Loading

0 comments on commit c3c94c7

Please sign in to comment.