Skip to content

Commit

Permalink
Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
Browse files Browse the repository at this point in the history
  • Loading branch information
raulgurzau committed Dec 8, 2017
2 parents 5e595aa + 91d3bc0 commit 0fcc1a3
Show file tree
Hide file tree
Showing 1,016 changed files with 18,635 additions and 98,451 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ dom/fetch/**
dom/file/**
dom/filehandle/**
dom/filesystem/**
dom/flex/**
dom/flyweb/**
dom/gamepad/**
dom/geolocation/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/atk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if CONFIG['MOZ_ENABLE_DBUS']:

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
# Used in G_DEFINE_TYPE_EXTENDED macro, probably fixed in newer glib /
# gobject headers. See bug 1243331 comment 3.
CXXFLAGS += [
Expand Down
2 changes: 1 addition & 1 deletion accessible/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ FINAL_LIBRARY = 'xul'

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
1 change: 0 additions & 1 deletion accessible/generic/DocAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "nsIDOMXULDocument.h"
#include "nsIDOMMutationEvent.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMXULPopupElement.h"
#include "nsIEditingSession.h"
#include "nsIFrame.h"
#include "nsIInterfaceRequestorUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion accessible/generic/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ FINAL_LIBRARY = 'xul'

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
2 changes: 1 addition & 1 deletion accessible/html/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
2 changes: 1 addition & 1 deletion accessible/interfaces/gecko/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ FINAL_LIBRARY = 'xul'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += ['-Wno-extra-tokens']
2 changes: 1 addition & 1 deletion accessible/interfaces/ia2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ RCINCLUDE = 'IA2Marshal.rc'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-extra-tokens']
2 changes: 1 addition & 1 deletion accessible/interfaces/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ RCINCLUDE = 'AccessibleMarshal.rc'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += ['-Wno-extra-tokens']
2 changes: 1 addition & 1 deletion accessible/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ EXPORTS.mozilla.a11y += [
'IPCTypes.h',
]

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']

if CONFIG['ACCESSIBILITY']:
Expand Down
2 changes: 1 addition & 1 deletion accessible/ipc/other/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if CONFIG['ACCESSIBILITY']:

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']

FINAL_LIBRARY = 'xul'
Expand Down
2 changes: 1 addition & 1 deletion accessible/other/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ LOCAL_INCLUDES += [

FINAL_LIBRARY = 'xul'

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
1 change: 1 addition & 0 deletions accessible/tests/browser/general/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ support-files =
!/accessible/tests/mochitest/*.js

[browser_test_doc_creation.js]
[browser_test_urlbar.js]
12 changes: 0 additions & 12 deletions accessible/tests/browser/general/browser_test_doc_creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@

"use strict";

const nsIAccessibleRole = Ci.nsIAccessibleRole; // eslint-disable-line no-unused-vars

/* import-globals-from ../../mochitest/role.js */
loadScripts({ name: "role.js", dir: MOCHITESTS_DIR });

async function openNewTab(url) {
const forceNewProcess = true;

return BrowserTestUtils.openNewForegroundTab(
{ gBrowser, url, forceNewProcess });
}

const tab1URL = `data:text/html,
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Expand Down
34 changes: 34 additions & 0 deletions accessible/tests/browser/general/browser_test_urlbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* 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";

// Checking that the awesomebar popup gets COMBOBOX_LIST role instead of
// LISTBOX, since its parent is a <panel> (see Bug 1422465)
add_task(async function testAutocompleteRichResult() {
let tab = await openNewTab("data:text/html;charset=utf-8,");
let accService = await initAccessibilityService();

info("Opening the URL bar and entering a key to show the PopupAutoCompleteRichResult panel");
let urlbar = document.getElementById("urlbar");
urlbar.focus();
let urlbarPopup = document.getElementById("PopupAutoCompleteRichResult");
let shown = BrowserTestUtils.waitForEvent(urlbarPopup, "popupshown");
EventUtils.synthesizeKey("a", {});
await shown;

info("Waiting for accessibility to be created for the richlistbox");
let richlistbox = document.getAnonymousElementByAttribute(urlbarPopup, "anonid", "richlistbox");
await BrowserTestUtils.waitForCondition(() => accService.getAccessibleFor(richlistbox));

info("Confirming that the special case is handled in XULListboxAccessible");
let accessible = accService.getAccessibleFor(richlistbox);
is(accessible.role, ROLE_COMBOBOX_LIST, "Right role");

await BrowserTestUtils.removeTab(tab);
});

registerCleanupFunction(async function() {
await shutdownAccessibilityService();
});
14 changes: 13 additions & 1 deletion accessible/tests/browser/general/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@

"use strict";

/* exported initAccessibilityService, shutdownAccessibilityService */
/* exported initAccessibilityService, openNewTab, shutdownAccessibilityService */

// Load the shared-head file first.
/* import-globals-from ../shared-head.js */
Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/accessible/tests/browser/shared-head.js",
this);

const nsIAccessibleRole = Ci.nsIAccessibleRole; // eslint-disable-line no-unused-vars

/* import-globals-from ../../mochitest/role.js */
loadScripts({ name: "role.js", dir: MOCHITESTS_DIR });

async function openNewTab(url) {
const forceNewProcess = true;

return BrowserTestUtils.openNewForegroundTab(
{ gBrowser, url, forceNewProcess });
}

async function initAccessibilityService() {
info("Create accessibility service.");
let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/ia2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ FINAL_LIBRARY = 'xul'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-extra-tokens']

include('/ipc/chromium/chromium-config.mozbuild')
2 changes: 1 addition & 1 deletion accessible/windows/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ LOCAL_INCLUDES += [
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-extra-tokens']

include('/ipc/chromium/chromium-config.mozbuild')
Expand Down
2 changes: 1 addition & 1 deletion accessible/xpcom/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ FINAL_LIBRARY = 'xul'

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
5 changes: 1 addition & 4 deletions accessible/xul/XULListboxAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "nsIDOMXULMenuListElement.h"
#include "nsIDOMXULMultSelectCntrlEl.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULPopupElement.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsIMutableArray.h"
#include "nsIPersistentProperties2.h"
Expand Down Expand Up @@ -157,9 +156,7 @@ XULListboxAccessible::NativeRole()
{
// A richlistbox is used with the new autocomplete URL bar, and has a parent
// popup <panel>.
nsCOMPtr<nsIDOMXULPopupElement> xulPopup =
do_QueryInterface(mContent->GetParent());
if (xulPopup)
if (mContent->GetParent()->IsXULElement(nsGkAtoms::panel))
return roles::COMBOBOX_LIST;

return IsMulticolumn() ? roles::TABLE : roles::LISTBOX;
Expand Down
2 changes: 1 addition & 1 deletion accessible/xul/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

if CONFIG['GNU_CXX']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
4 changes: 2 additions & 2 deletions browser/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if CONFIG['LIBFUZZER']:
if CONFIG['ENABLE_GECKODRIVER']:
DEFINES['MOZ_GECKODRIVER'] = True

if CONFIG['_MSC_VER']:
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
# Always enter a Windows program through wmain, whether or not we're
# a console application.
WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
Expand Down Expand Up @@ -95,7 +95,7 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
# The heap will grow if need be.
#
# Set it to 256k. See bug 127069.
if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
if CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['CC_TYPE'] not in ('clang', 'gcc'):
LDFLAGS += ['/HEAP:0x40000']

DisableStlWrapping()
Expand Down
9 changes: 3 additions & 6 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,10 @@ pref("extensions.webextOptionalPermissionPrompts", true);

// Preferences for AMO integration
pref("extensions.getAddons.cache.enabled", true);
pref("extensions.getAddons.maxResults", 15);
pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%");
pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/firefox/search?q=%TERMS%&platform=%OS%&appver=%VERSION%");
pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%?src=firefox");
pref("extensions.webservice.discoverURL", "https://discovery.addons.mozilla.org/%LOCALE%/firefox/discovery/pane/%VERSION%/%OS%/%COMPATIBILITY_MODE%");
pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/list/recommended/all/%MAX_RESULTS%/%OS%/%VERSION%?src=firefox");
pref("extensions.getAddons.link.url", "https://addons.mozilla.org/%LOCALE%/firefox/");
pref("extensions.getAddons.themes.browseURL", "https://addons.mozilla.org/%LOCALE%/firefox/themes/?src=firefox");

Expand Down Expand Up @@ -396,9 +393,9 @@ pref("browser.search.geoSpecificDefaults", false);
pref("browser.search.geoSpecificDefaults.url", "https://search.services.mozilla.com/1/%APP%/%VERSION%/%CHANNEL%/%LOCALE%/%REGION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%");

// US specific default (used as a fallback if the geoSpecificDefaults request fails).
pref("browser.search.defaultenginename.US", "data:text/plain,browser.search.defaultenginename.US=Yahoo");
pref("browser.search.order.US.1", "data:text/plain,browser.search.order.US.1=Yahoo");
pref("browser.search.order.US.2", "data:text/plain,browser.search.order.US.2=Google");
pref("browser.search.defaultenginename.US", "data:text/plain,browser.search.defaultenginename.US=Google");
pref("browser.search.order.US.1", "data:text/plain,browser.search.order.US.1=Google");
pref("browser.search.order.US.2", "data:text/plain,browser.search.order.US.2=Yahoo");
pref("browser.search.order.US.3", "data:text/plain,browser.search.order.US.3=Bing");

// search bar results always open in a new tab
Expand Down
2 changes: 0 additions & 2 deletions browser/base/content/test/webextensions/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ support-files =
browser_webext_update_origins1.xpi
browser_webext_update_origins2.xpi
browser_webext_update.json
browser_webext_search.xml

[browser_extension_sideloading.js]
[browser_extension_update_background.js]
[browser_extension_update_background_noprompt.js]
[browser_permissions_addons_search.js]
[browser_permissions_installTrigger.js]
[browser_permissions_local_file.js]
[browser_permissions_mozAddonManager.js]
Expand Down

This file was deleted.

51 changes: 0 additions & 51 deletions browser/base/content/test/webextensions/browser_webext_search.xml

This file was deleted.

2 changes: 2 additions & 0 deletions browser/components/search/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

BROWSER_CHROME_MANIFESTS += [
'test/browser.ini',
'test/google_codes/browser.ini',
'test/google_nocodes/browser.ini',
]

JAR_MANIFESTS += ['jar.mn']
Expand Down
Loading

0 comments on commit 0fcc1a3

Please sign in to comment.