This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @flow */ | |
import makeClassName from 'classnames'; | |
import { oneLine } from 'common-tags'; | |
import invariant from 'invariant'; | |
import * as React from 'react'; | |
import defaultCookie from 'react-cookie'; | |
import { compose } from 'redux'; | |
import { connect } from 'react-redux'; | |
import AddonsCard from 'amo/components/AddonsCard'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: src/amo/api/collections.js:217 | |
v | |
217: return callApi({ | |
218: auth: true, | |
219: body: { | |
...: | |
231: }); | |
^ object literal. This type is incompatible with the expected param type of | |
95: }: CallApiParams): Promise<any> { | |
^^^^^^^^^^^^^ object type. See: src/core/api/index.js:95 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return callApi({ | |
auth: true, | |
body: { | |
default_locale: defaultLocale, | |
description, | |
name, | |
slug, | |
// The public=true|false flag is not sent to the API. This is | |
// because collections are always public. Omitting this parameter | |
// should cut down on unexpected bugs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An error occurred running eslint. Please check the following error messages: | |
Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion. | |
You may need to update the mappings in /Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js | |
Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion. | |
Error: Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion. | |
at getScriptGlobals (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js:102:13) | |
at getMozillaCentralItems (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js:121:25) | |
at Object.<anonymous> (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/envir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Documents/gitRepos/addons-frontend[permissions-2757*]$ yarn flow | |
yarn run v1.3.2 | |
$ flow | |
Error: src/amo/components/PermissionsCard/index.js:148 | |
v---------- | |
148: <Permission | |
149: className="hostPermission" | |
150: description={permissionStrings.allUrls} | |
151: key="allUrls" | |
152: /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Executing script: webpack-dev-server | |
[0] | |
[0] to be executed: node bin/webpack-dev-server.js | |
[1] /Users/bsilverberg/Documents/gitRepos/addons-frontend/node_modules/babel-core/lib/transformation/file/index.js:590 | |
[1] throw err; | |
[1] ^ | |
[1] | |
[1] SyntaxError: /Users/bsilverberg/Documents/gitRepos/addons-frontend/src/static-assets/firefox-logo.png: Unexpected character '�' (1:0) | |
[1] > 1 | �PNG | |
[1] | ^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- 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/. --> | |
<!DOCTYPE dialog [ | |
<!ENTITY % preferencesDTD SYSTEM "chrome://global/locale/preferences.dtd"> | |
%preferencesDTD; | |
<!ENTITY % connectionDTD SYSTEM "chrome://browser/locale/preferences/connection.dtd"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PROXY_PREFS_TO_PROPERTIES_MAP = new Map([ | |
["network.proxy.autoconfig_url", "automaticProxyConfigUrl"], | |
["signon.autologin.proxy", "autoLogin"], | |
["network.proxy.socks_remote_dns", "proxyDNSForSocks5"], | |
]); | |
const getProxyPref = propertyName => { | |
return Array.from( | |
PROXY_PREFS_TO_PROPERTIES_MAP.entries()).find(entry => entry[1] === propertyName)[0]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showEnableExtensionMessage(settingName) { | |
let elements = getControllingExtensionEls(settingName); | |
if (elements.button | |
&& extensionControlledIds[settingName] | |
&& !document.hidden) { | |
elements.button.hidden = true; | |
elements.section.classList.add("extension-controlled-disabled"); | |
let icon = url => `<image src="${url}" class="extension-controlled-icon"/>`; | |
let addonIcon = icon("chrome://mozapps/skin/extensions/extensionGeneric-16.svg"); | |
let toolbarIcon = icon("chrome://browser/skin/menu.svg"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_task(async function test_exceptions() { | |
async function background() { | |
await browser.test.assertRejects( | |
browser.browserSettings.contextMenuShowEvent.set({value: "bad"}), | |
/bad is not a valid value for contextMenuShowEvent/, | |
"contextMenuShowEvent.set rejects with an invalid value."); | |
browser.test.sendMessage("done"); | |
} |