Skip to content

Commit

Permalink
Merge m-c to fx-team, a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
KWierso committed Sep 19, 2016
2 parents b316681 + dbbbafc commit 868fe79
Show file tree
Hide file tree
Showing 159 changed files with 3,646 additions and 2,583 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,6 @@ toolkit/webapps/**

# Third party
toolkit/modules/third_party/**

#NSS
security/nss/**
1 change: 1 addition & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ fcef8ded82219c89298b4e376cfbdfba79a1d35a FIREFOX_AURORA_43_BASE
1c6385ae1fe7e37d8f23f958ce14582f07af729e FIREFOX_AURORA_48_BASE
d98f20c25feeac4dd7ebbd1c022957df1ef58af4 FIREFOX_AURORA_49_BASE
465d150bc8be5bbf9f02a8607d4552b6a5e1697c FIREFOX_AURORA_50_BASE
fc69febcbf6c0dcc4b3dfc7a346d8d348798a65f FIREFOX_AURORA_51_BASE
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 1297097 - Remove preference "layout.css.vertical-text.enabled" modifies nsCSSPropList.h. Might need a clobber due to bug 1276197.
Merge day clobber
2 changes: 1 addition & 1 deletion browser/base/content/browser-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ let gDecoderDoctorHandler = {
let existing = formatsInPref.split(",").map(String.trim);
// Keep given formats that were not already recorded.
let newbies = formats.split(",").map(String.trim)
.filter(x => existing.includes(x));
.filter(x => !existing.includes(x));
// And rewrite pref with the added new formats (if any).
if (newbies.length) {
Services.prefs.setCharPref(formatsPref,
Expand Down
7 changes: 6 additions & 1 deletion browser/components/preferences/connection.xul
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
dlgbuttons="accept,cancel,help"
onbeforeaccept="return gConnectionsDialog.beforeAccept();"
onload="gConnectionsDialog.checkForSystemProxy();"
ondialoghelp="openPrefsHelp()">
ondialoghelp="openPrefsHelp()"
#ifdef XP_MACOSX
style="width: &window.macWidth2; !important;">
#else
style="width: &window.width2; !important;">
#endif

<script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>

Expand Down
2 changes: 1 addition & 1 deletion browser/components/preferences/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ browser.jar:
* content/browser/preferences/colors.xul
* content/browser/preferences/cookies.xul
content/browser/preferences/cookies.js
content/browser/preferences/connection.xul
* content/browser/preferences/connection.xul
content/browser/preferences/connection.js
content/browser/preferences/donottrack.xul
* content/browser/preferences/fonts.xul
Expand Down
2 changes: 1 addition & 1 deletion browser/config/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
51.0a1
52.0a1
2 changes: 1 addition & 1 deletion browser/config/version_display.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
51.0a1
52.0a1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@


<!ENTITY connectionsDialog.title "Connection Settings">
<!ENTITY window.width2 "49em">
<!ENTITY window.macWidth2 "44em">

<!ENTITY proxyTitle.label "Configure Proxies to Access the Internet">
<!ENTITY noProxyTypeRadio.label "No proxy">
Expand Down
6 changes: 6 additions & 0 deletions browser/modules/SitePermissions.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ this.SitePermissions = {
*
* To receive a more detailed, albeit less performant listing see
* SitePermissions.getPermissionDetailsByURI().
*
* install addon permission is excluded, check bug 1303108
*/
getAllByURI: function (aURI) {
let result = [];
Expand All @@ -37,6 +39,10 @@ this.SitePermissions = {

// filter out unknown permissions
if (gPermissionObject[permission.type]) {
// XXX Bug 1303108 - Control Center should only show non-default permissions
if (permission.type == "install") {
continue;
}
result.push({
id: permission.type,
state: permission.capability,
Expand Down
5 changes: 5 additions & 0 deletions browser/modules/test/xpcshell/test_SitePermissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ add_task(function* testGetAllByURI() {
SitePermissions.remove(uri, "camera");
SitePermissions.remove(uri, "desktop-notification");
Assert.deepEqual(SitePermissions.getAllByURI(uri), []);

// XXX Bug 1303108 - Control Center should only show non-default permissions
SitePermissions.set(uri, "addon", SitePermissions.BLOCK);
Assert.deepEqual(SitePermissions.getAllByURI(uri), []);
SitePermissions.remove(uri, "addon");
});

add_task(function* testGetPermissionDetailsByURI() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ this.Preferences = {
["paneAdvanced", "generalTab"],
["paneAdvanced", "dataChoicesTab"],
["paneAdvanced", "networkTab"],
["paneAdvanced", "networkTab", connectionDialog],
["paneAdvanced", "updateTab"],
["paneAdvanced", "encryptionTab"],
["paneAdvanced", "encryptionTab", certManager],
["paneAdvanced", "encryptionTab", deviceManager],
];
for (let [primary, advanced, customFn] of panes) {
let configName = primary.replace(/^pane/, "prefs") + (advanced ? "-" + advanced : "");
Expand Down Expand Up @@ -99,8 +101,20 @@ function* DNTDialog(aBrowser) {
});
}

function* connectionDialog(aBrowser) {
yield ContentTask.spawn(aBrowser, null, function* () {
content.document.getElementById("connectionSettings").click();
});
}

function* certManager(aBrowser) {
yield ContentTask.spawn(aBrowser, null, function* () {
content.document.getElementById("viewCertificatesButton").click();
});
}

function* deviceManager(aBrowser) {
yield ContentTask.spawn(aBrowser, null, function* () {
content.document.getElementById("viewSecurityDevicesButton").click();
});
}
26 changes: 17 additions & 9 deletions build/autoconf/android.m4
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ fi
])

dnl Configure an Android SDK.
dnl Arg 1: target SDK version, like 22.
dnl Arg 2: build tools version, like 22.0.1.
dnl Arg 1: target SDK version, like 23.
dnl Arg 2: list of build-tools versions, like "23.0.3 23.0.1".
AC_DEFUN([MOZ_ANDROID_SDK],
[
Expand Down Expand Up @@ -254,12 +254,20 @@ case "$target" in
fi
AC_MSG_RESULT([$android_sdk])
android_build_tools="$android_sdk_root"/build-tools/$2
AC_MSG_CHECKING([for Android build-tools version $2])
if test -d "$android_build_tools" -a -f "$android_build_tools/aapt"; then
AC_MSG_RESULT([$android_build_tools])
else
AC_MSG_ERROR([You must install the Android build-tools version $2. Try |mach bootstrap|. (Looked for $android_build_tools)])
AC_MSG_CHECKING([for Android build-tools])
android_build_tools_base="$android_sdk_root"/build-tools
android_build_tools_version=""
for version in $2; do
android_build_tools="$android_build_tools_base"/$version
if test -d "$android_build_tools" -a -f "$android_build_tools/aapt"; then
android_build_tools_version=$version
AC_MSG_RESULT([$android_build_tools])
break
fi
done
if test "$android_build_tools_version" == ""; then
version=$(echo $2 | cut -d" " -f1)
AC_MSG_ERROR([You must install the Android build-tools version $version. Try |mach bootstrap|. (Looked for "$android_build_tools_base"/$version)])
fi
MOZ_PATH_PROG(ZIPALIGN, zipalign, :, [$android_build_tools])
Expand Down Expand Up @@ -309,7 +317,7 @@ case "$target" in
ANDROID_SDK="${android_sdk}"
ANDROID_SDK_ROOT="${android_sdk_root}"
ANDROID_TOOLS="${android_tools}"
ANDROID_BUILD_TOOLS_VERSION="$2"
ANDROID_BUILD_TOOLS_VERSION="$android_build_tools_version"
AC_DEFINE_UNQUOTED(ANDROID_TARGET_SDK,$ANDROID_TARGET_SDK)
AC_SUBST(ANDROID_TARGET_SDK)
AC_SUBST(ANDROID_SDK_ROOT)
Expand Down
2 changes: 1 addition & 1 deletion config/milestone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# hardcoded milestones in the tree from these two files.
#--------------------------------------------------------

51.0a1
52.0a1
14 changes: 10 additions & 4 deletions devtools/client/responsive.html/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ ResponsiveUI.prototype = {
init: Task.async(function* () {
let ui = this;

// Watch for tab close so we can clean up RDM synchronously
// Watch for tab close and window close so we can clean up RDM synchronously
this.tab.addEventListener("TabClose", this);
this.browserWindow.addEventListener("unload", this);

// Swap page content from the current tab into a viewport within RDM
this.swap = swapToInnerBrowser({
Expand Down Expand Up @@ -348,14 +349,16 @@ ResponsiveUI.prototype = {
// If our tab is about to be closed, there's not enough time to exit
// gracefully, but that shouldn't be a problem since the tab will go away.
// So, skip any yielding when we're about to close the tab.
let isTabClosing = options && options.reason == "TabClose";
let isWindowClosing = options && options.reason === "unload";
let isTabClosing = (options && options.reason === "TabClose") || isWindowClosing;

// Ensure init has finished before starting destroy
if (!isTabClosing) {
yield this.inited;
}

this.tab.removeEventListener("TabClose", this);
this.browserWindow.removeEventListener("unload", this);
this.toolWindow.removeEventListener("message", this);

if (!isTabClosing) {
Expand All @@ -381,8 +384,10 @@ ResponsiveUI.prototype = {
}
this.client = this.emulationFront = null;

// Undo the swap and return the content back to a normal tab
swap.stop();
if (!isWindowClosing) {
// Undo the swap and return the content back to a normal tab
swap.stop();
}

this.destroyed = true;

Expand All @@ -407,6 +412,7 @@ ResponsiveUI.prototype = {
case "message":
this.handleMessage(event);
break;
case "unload":
case "TabClose":
ResponsiveUIManager.closeIfNeeded(browserWindow, tab, {
reason: event.type,
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/responsive.html/test/browser/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ support-files =
doc_page_state.html
geolocation.html
head.js
touch.html
!/devtools/client/commandline/test/helpers.js
!/devtools/client/framework/test/shared-head.js
!/devtools/client/framework/test/shared-redux-head.js
Expand Down Expand Up @@ -36,3 +37,4 @@ support-files =
[browser_toolbox_swap_browsers.js]
[browser_touch_simulation.js]
[browser_viewport_basics.js]
[browser_window_close.js]
Loading

0 comments on commit 868fe79

Please sign in to comment.