mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
4a6821ad9b
- Bug 1193050 - Update the copy of GentiumPlus used in font-inspector test. r=jdaggett (253fce5764)
- align tests (5b817116a0)
- Bug 1246106 - pass aStyleBorder as reference to ComputeBorderOverflow. r=mats (53ccaa1282)
- align tests (81b3943058)
- Bug 1269080 - Convert NS_ERROR to NS_WARNING when setting an invalid scheme in nsSimpleURI. r=mcmanus (cad86c963d)
- Bug 1248558 - "[Static Analysis][Unintentional integer overflow][CacheFile.cpp::PreloadChunk, CacheFile.cpp::GetChunkLocked]". r=michal (6a9e34dfbe)
- Bug 1121672 - Make CacheFile::IsDoomed() protect mHandle with lock, r=michal (9e925b903a)
- Bug 1253040 - Do not write metadata if CacheFile is killed, r=honzab (c0378088b2)
- grammar as 1268922 (c801618b1d)
- Bug 1247548 - Changed nsCookieService::EnsureReadComplete and nsCookieService::PurgeCookeis to allocate nsTArray instead of AutoTArray. r=jdm (0e2bb0465e)
- var-let (1702e664dc)
- Bug 1233813 - Fix mDNS bug in resolving services with no TXT records. r=schien (4ce7e5fca0)
- Bug 1266632 - Add a null check in nsHostResolver::SizeOfIncludingThis. r=sworkman. (035d4a7130)
- Bug 1267000 - null deref with spdy proxy r=hurley (099db40d0f)
- Bug 1240932 - figure out 'network id' on Linux. r=mcmanus (47ceb12a70)
- Bug 1240932: add Telemetry to record network id successes, r=mcmanus (6985d1a4ce)
- Bug 1205158 - Use channel->Open2() netwerk/test/ (r=sicking) (64de01cda3)
- Bug 1240932 - figure out 'network id' on OS X, r=mcmanus (7ee4875835)
- Bug 1240932 - figure out 'network id' on Windows, r=mcmanus (3227a81c14)
- Bug 1188644 - Use channel->ascynOpen2 in netwerk/test (r=mcmanus) (7097897cdc)
- Bug 1264887: |nsWifiScannerDBus|: Hold DBusMessage references in |RefPtr|, r=josh (7e68e8663f)
- Bug 1260718 - use plain promise in CustomizableUI.jsm and ScrollbarSampler.jsm; r=Gijs (275c4f9efa)
- Bug 1254268 - Distribution should use default prefs, regression from 1252466; r=mconnor (79503a338d)
- Bug 1239949 - Add a pref for showing bookmarks toolbar and menubar; r=mixedpuppy (a2538235e6)
- Bug 1261657 - Don't record SSTabRestored events in StartupPerformance that are the result of a remoteness flip. r=Yoric (1016be766a)
- Bug 1170166, add a capture flag to BrowserTestUtils.waitForEvent, r=paolo (639c68fd65)
- Bug 1245723 - Make browser_bug680727 e10s compatible. r=felipe (6f29088ba2)
- Bug 1233497 - Allow CPOW usage in BrowserTestUtils testing module. r=felipe (29f9ca39d2)
- Bug 1243928 - Make these tests work in e10s. r=felipe dd (2fe22b5802)
- Bug 1147700 - Part 1: Add aDragEvent parameter to ChromeUtils.synthesizeDrop to modify DragEvent, and set default position to center of destElement. r=enndeakin (e8fb568796)
- Bug 1196638 - Infer the proper button for synthesized mouse clicks on all callsites. r=jmaher (838230baaa)
- Bug 1241672 - Add synthesizeWheelAtPoint to avoid styling flush. r=smaug (35a1bff9f9)
- Bug 1245153 - Make EventUtils.js use aWindow argument for sub-calls consistently; r=jmaher (ee20272638)
- Bug 1093153: introduce 'BrowserTestUtils#synthesizeKey', 'BrowserTestUtils#synthesizeComposition' and 'BrowserTestUtils#synthesizeCompositionChange' to allow mochitests to remotely invoke EventUtils' text composition utilities. Changes to EventUtils include 1) removed dependency on the 'navigator' object when 'nsIXULRuntime' is available and 2) make '_getKeyboardEvent' more robust when used in frame scripts. r=Enn (010ff131a7)
- Bug 1267289 - add more URL bar tests and fix issue with error pages, r=mikedeboer,mconley (2fa5b4cd18)
- more hack since CustomizableUI isn't loaded (482d4c7054)
- add PanelFrame (dbc45cdfde)
- add ContentObservers (f697c17a3f)
- add some CustomizableUI stuff (7b352953a8)
- Bug 1260148 - Make sendWheelAndPaint wait for the system wheel event. r=masayuki (89de140823)
- Bug 1258532 - Port test_bug574596.html to mochitest-plain in order to enable it on e10s; r=mrbkap (ae5693ab54)
- no more shumway (4ec4c5929d)
- Bug 1208145 - Clear XUL persistence data for passwordManager.xul passwordCol.hidden. r=dolske (286326c6d4)
- Bug 1252855 - allow setting a specific list of prefs from the content process, r=mrbkap,margaret,haik (b13645826a)
- Bug 1260718 - use plain promise in panelUI.js; r=Gijs (5b2d20e6d8)
- Bug 1256085 - fix hamburger menu losing pressed state when a context menu inside the panel closes, r=jaws (8074b072f3)
- de-palemoonize slwo startup URL for now (22cd2896f1)
- minor inits, but PanelUI still doesn't init (0a982d67f4)
- Bug 690307 - make trimURL not generate URLs that parse back into search queries, r=mak (9d488702f4)
- Bug 1094179 - use uriFixup for trimURL, r=dao (7a5e6ea7c8)
- Bug 1254503 - ignore exceptions from trying to fix up obviously broken URIs, r=mak (8a7b5e08dc)
- Bug 1240169 - Revert to returning a dynamic newtab URL for BROWSER_NEW_TAB_URL r=mconley (f9426cd705)
- small bits (f667b5b40a)
- Bug 1207490 - Part 14: Remove use of expression closure from browser/modules/WindowsJumpLists.jsm. r=Gijs (f5ffeb762d)
- Bug 957585 - Make jumplists listen for "active" idle topic instead of the defunct "back". r=jimm (21faffc952)
- bug 1223573 and other move loop (b6f11f9b65)
- remove fuel (d231f1c07f)
- package some stuff that is there and wasn't (3df3a2461d)
- Bug 1249845 - bootstrap.js code to manage the e10s staged rollout. r=Mossop (93fdf6ddd6)
- Bug 1255013 - Tag disqualified cohorts in e10s staged rollout. r=Mossop (2a1bf3eb57)
- Bug 1257251 - Annotate e10s cohort in crash report. r=Mossop (eaa77c89bd)
- Bug 1257972 - Put users currently running an experiment into the disqualified cohort of the e10s rollout system add-on. r=Mossop (63cfa4e9bd)
- Bug 1257972 - Follow up, use getActiveExperimentID instead. r=me (062b8db4b0)
- Bug 1264345 - Remove restriction to disqualify from e10s the users who are running an experiment, by backing out bug 1257972. r=backout (ca4edc1985)
- Bug 1264437 - Manage browser.tabs.remote.autostart.2 pref even for disqualified users. r=rvitillo (20f34e41b6)
- Bug 1268921 - Allow non-integer values to be specified for e10srollout cohort samples. r=mconley (5d084d8a4c)
- Bug 1249845 - Set up structure for e10srollout system add-on. r=Standard8,glandium (653ffeb6f9)
- Bug 1268197 - stub for webcompat fix system add-on r=kmag (a6f25edf7e)
- missing pocket locales (453efccf16)
- Bug 1215965 - Remove use of non-standard features from toolkit/components/social/SocialService.jsm. r=mixedpuppy (a1d79f295c)
- Bug 898706 remove frameworker and all associated code and tests, r=markh (7dd5241c68)
- ship cmpiler for XP (ac60884173)
- convenience file (fedc58984f)
- Bug 1261045: remove unused MOZ_SYMBOLS_EXTRA_BUILDID; r=ted.mielczarek (96c4acfc47)
- Bug 1262814 - Warn on Wlanapi.dll load or init fail, don't fail assertion, r=mcmanus (aa1335320a)
- Bug 1137151: Marked destructors of ref-counted time-zone classes as protected, r=dhylands (5668226442)
- Bug 908038 - Move worker_buf.js installation into moz.build; r=mshal (5977402229)
- Bug 1225549 - Modify the data type of mThreshold of NetworkParams to long long from long. r=ettseng (7164a517ac)
- Bug 1139805 - B2G NetworkManager: move NetworkManager.js out of EXTRA_PP_COMPONENTS in moz.build. r=echen (e857f53cfc)
- Bug 1256246 - Improve prompt for loading an add-on from directory. r=ochameau (e4eaf98420)
- Bug 1231128 - Display errors when temporary add-on install fails. r=ochameau (7866ee6157)
- Bug 1249088 - Add eslint rules for React. r=pbrosset (43ccb89844)
- Bug 1264063 - 1 - Disable prop-types eslint rule and fix sort-comp errors; r=ochameau (a765af076a)
- Bug 1264063 - 2 - Make the CPOW rule log errors and ignore ContentTask.spawn; r=Mossop (d5a6de53ba)
- Bug 1217769 - aboutdebugging: default to addons tab without navigating if hash is empty;r=janx (d821504376)
- Bug 1229859 - Massively reduce the number of eslint errors in devtools by ignoring lib files, adding missing .eslintrc files and making some rules be warnings; r=Mossop (e6fdb3043a)
- Bug 1210778 - improving accessibility for about:debugging. r=janx (e9d1c80835)
- Bug 1087608 - ensuring multitap gestures do not resolve to explore. r=eeejay (6c4b603738)
- bug 1259023 - make nsIAccessible.{Next,Prev}Sibling work with proxied accessibles r=yzen (84b47a82e0)
- bug 1259023 - make nsIAccessible.indexInParent work on proxied accessibles r=yzen (3531b45e35)
- bug 1250882 - implement xpcAccessible::GetState() for proxied accessibles r=davidb (5e58214441)
- bug 1250882 - implement xpcAccessible::Name() for proxied accessibles r=davidb (4b11af6ecc)
- bug 1250882 - implement xpcAccessible::GetDescription() for proxied accessibles r=davidb (d0d0e133fb)
- bug 1250882 - implement xpcAccessible::GetLanguage() for proxied accessibles r=davidb (88e98a5b24)
- bug 1250882 - implement xpcAccessible::GetValue() for proxied accessibles r=davidb (9ad4347d45)
- bug 1250882 - implement xpcAccessible::GetBounds() for proxied accessibles r=davidb (e67f7c551b)
- Bug 1249930 - menupoup shouldn't look for children in XBL anonymous content, r=davidb (14b3e39954)
- Bug 1261473 - Remove INSTALL_TARGETS from addon-sdk/Makefile.in; r=chmanchester (8a65454da5)
- Bug 1148200 - Move isJSONable to sdk/lang/type. r=Mossop (df9e4a3e64)
- Bug 1026614 - SDK ui/toolbar not working in permanent private browsing. r=rpl (589c0eb203)
- Bug 1263077 - Stop using parseInt in the Add-on SDK when specifying octal numbers now that JS has the new octal notation. r=dietrich (9a82b90c79)
- Bug 1225800 - only import items that have valid URLs, r=MattN (b1609de6b5)
- Bug 1194692 - fix some cookie parsing issues in the IE/Edge cookie importer code, r=MattN (ce08d5a913)
- Bug 1255526 - fix import of typed URLs on versions of windows that do not store timestamps, r=MattN (abff778842)
- Bug 1236551 - Update the profile migrator to the Unified Telemetry changes. r=MattN (3fc75f60c8)
- Bug 1239085 - Remove Deprecation warning from NewTabUrl.jsm (r=olivier) (ef09dd61fd)
- Bug 1201977 - Replace usage of nsINavHistoryQuery with a string query to nsPIPlacesDatabase.asyncStatement r=oyiptong (105178d138)
- Bug 1258728 - remote newtab path starts with /newtab/ r=ursula (575bccc434)
- Bug 1262781 - Use the host compiler for the ASTMatcher check. r=froydnj (d5b04fc0f3)
- Followup for bug 1262781: change ASTMatcher check name to force override config.cache on a CLOSED TREE. r=me (7cda382eac)
- Bug 1268617 - Pass -g to rustc on debug builds. r=ted (f280e86566)
- Bug 1243233 - Test ALLOW_COMPILER_WARNINGS instead of WARNINGS_AS_ERRORS, and move it to after it is set, r=glandium (216c407d20)
- Bug 1245992 - Update the Safe Browsing phishing interstitial page. r=flod,past (80afbfc6c9)
- fix some elements (dac19cdc1a)
- Bug 1245260 - Ignore redundant calls to RestyleManager::IncrementAnimationGeneration; r=dbaron (e35571b613)
- bump overrides (90b8e83afd)
- Bug 1182778, r=margaret,f=bz (b379c97f8e)
- Bug 1244887: Fixing userContext label on awesomebar, r=baku (063a8e8263)
- Bug 1255499 - Remove SEC_NORMAL from browser/. r=sicking (12a374232b)
- Bug 1258212 - Hook the parent up to the cild for registerContentHandler. r=gwright (039c75d4d5)
- Bug 1233895 - Make Feeds.jsm properly handle principal origin attributes when loading subresources. r=sicking (6b4544effe)
- Bug 1234398 - declare |item|. r=dolske (fa9a5ff39c)
- Bug 1244684 - Make FX_TAB_SWITCH_TOTAL_MS work for non-e10s in an OMTC world. r=mstange (05cb04c474)
- Bug 1261738: Try to avoid overlapping FX_TAB_SWITCH_TOTAL_MS stopwatches. r=mconley (5d4bae300c)
- Bug 747338 - Set last-accessed timestamp when deselecting tabs rather than when selecting them. r=ttaubert (a1514ad247)
- Bug 1248302 - We should not show any decoration for tab with usercontextid=0, r=gijs (29c5addab7)
- specific google font overrides (03db96e884)
- add bits of CustomizableUI (8a67508a56)
- add some more customizeui but keep the button hidden, or it messes up the toolbar (b9787fc5bd)
75 lines
2.2 KiB
JavaScript
75 lines
2.2 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";
|
|
|
|
module.metadata = {
|
|
"stability": "unstable"
|
|
};
|
|
|
|
const { isValidURI, isLocalURL, URL } = require('../url');
|
|
const { contract } = require('../util/contract');
|
|
const { isString, isNil, instanceOf, isJSONable } = require('../lang/type');
|
|
const { validateOptions,
|
|
string, array, object, either, required } = require('../deprecated/api-utils');
|
|
|
|
const isValidScriptFile = (value) =>
|
|
(isString(value) || instanceOf(value, URL)) && isLocalURL(value);
|
|
|
|
// map of property validations
|
|
const valid = {
|
|
contentURL: {
|
|
is: either(string, object),
|
|
ok: url => isNil(url) || isLocalURL(url) || isValidURI(url),
|
|
msg: 'The `contentURL` option must be a valid URL.'
|
|
},
|
|
contentScriptFile: {
|
|
is: either(string, object, array),
|
|
ok: value => isNil(value) || [].concat(value).every(isValidScriptFile),
|
|
msg: 'The `contentScriptFile` option must be a local URL or an array of URLs.'
|
|
},
|
|
contentScript: {
|
|
is: either(string, array),
|
|
ok: value => isNil(value) || [].concat(value).every(isString),
|
|
msg: 'The `contentScript` option must be a string or an array of strings.'
|
|
},
|
|
contentScriptWhen: {
|
|
is: required(string),
|
|
map: value => value || 'end',
|
|
ok: value => ~['start', 'ready', 'end'].indexOf(value),
|
|
msg: 'The `contentScriptWhen` option must be either "start", "ready" or "end".'
|
|
},
|
|
contentScriptOptions: {
|
|
ok: value => isNil(value) || isJSONable(value),
|
|
msg: 'The contentScriptOptions should be a jsonable value.'
|
|
}
|
|
};
|
|
exports.validationAttributes = valid;
|
|
|
|
/**
|
|
* Shortcut function to validate property with validation.
|
|
* @param {Object|Number|String} suspect
|
|
* value to validate
|
|
* @param {Object} validation
|
|
* validation rule passed to `api-utils`
|
|
*/
|
|
function validate(suspect, validation) {
|
|
return validateOptions(
|
|
{ $: suspect },
|
|
{ $: validation }
|
|
).$;
|
|
}
|
|
|
|
function Allow(script) {
|
|
return {
|
|
get script() {
|
|
return script;
|
|
},
|
|
set script(value) {
|
|
script = !!value;
|
|
}
|
|
};
|
|
}
|
|
|
|
exports.contract = contract(valid);
|