Skip to content

Commit

Permalink
Merge commit '8424078a2dea4dc3d19f3e5400810a093b236de9' into embedlit…
Browse files Browse the repository at this point in the history
…e_upgrade_8424078a2dea4dc3d19f3e5400810a093b236de9.

Scrolling jumps (UpdateScrollOffset removal consequences)
  • Loading branch information
tmeshkova committed Jan 6, 2014
2 parents db1501e + 8424078 commit 32b74f2
Show file tree
Hide file tree
Showing 653 changed files with 15,174 additions and 10,719 deletions.
10 changes: 5 additions & 5 deletions accessible/src/generic/Accessible.cpp
Expand Up @@ -3267,36 +3267,36 @@ KeyBinding::ToPlatformFormat(nsAString& aValue) const
return;

nsAutoString separator;
keyStringBundle->GetStringFromName(NS_LITERAL_STRING("MODIFIER_SEPARATOR").get(),
keyStringBundle->GetStringFromName(MOZ_UTF16("MODIFIER_SEPARATOR"),
getter_Copies(separator));

nsAutoString modifierName;
if (mModifierMask & kControl) {
keyStringBundle->GetStringFromName(NS_LITERAL_STRING("VK_CONTROL").get(),
keyStringBundle->GetStringFromName(MOZ_UTF16("VK_CONTROL"),
getter_Copies(modifierName));

aValue.Append(modifierName);
aValue.Append(separator);
}

if (mModifierMask & kAlt) {
keyStringBundle->GetStringFromName(NS_LITERAL_STRING("VK_ALT").get(),
keyStringBundle->GetStringFromName(MOZ_UTF16("VK_ALT"),
getter_Copies(modifierName));

aValue.Append(modifierName);
aValue.Append(separator);
}

if (mModifierMask & kShift) {
keyStringBundle->GetStringFromName(NS_LITERAL_STRING("VK_SHIFT").get(),
keyStringBundle->GetStringFromName(MOZ_UTF16("VK_SHIFT"),
getter_Copies(modifierName));

aValue.Append(modifierName);
aValue.Append(separator);
}

if (mModifierMask & kMeta) {
keyStringBundle->GetStringFromName(NS_LITERAL_STRING("VK_META").get(),
keyStringBundle->GetStringFromName(MOZ_UTF16("VK_META"),
getter_Copies(modifierName));

aValue.Append(modifierName);
Expand Down
2 changes: 1 addition & 1 deletion accessible/src/generic/ApplicationAccessible.cpp
Expand Up @@ -82,7 +82,7 @@ ApplicationAccessible::Name(nsString& aName)
return eNameOK;

nsXPIDLString appName;
rv = bundle->GetStringFromName(NS_LITERAL_STRING("brandShortName").get(),
rv = bundle->GetStringFromName(MOZ_UTF16("brandShortName"),
getter_Copies(appName));
if (NS_FAILED(rv) || appName.IsEmpty()) {
NS_WARNING("brandShortName not found, using default app name");
Expand Down
20 changes: 8 additions & 12 deletions accessible/src/jsat/AccessFu.jsm
Expand Up @@ -118,8 +118,8 @@ this.AccessFu = {
Output.start();
TouchAdapter.start();

Services.obs.addObserver(this, 'remote-browser-shown', false);
Services.obs.addObserver(this, 'inprocess-browser-shown', false);
Services.obs.addObserver(this, 'remote-browser-frame-shown', false);
Services.obs.addObserver(this, 'in-process-browser-or-app-frame-shown', false);
Services.obs.addObserver(this, 'Accessibility:NextObject', false);
Services.obs.addObserver(this, 'Accessibility:PreviousObject', false);
Services.obs.addObserver(this, 'Accessibility:Focus', false);
Expand Down Expand Up @@ -162,8 +162,8 @@ this.AccessFu = {
Utils.win.removeEventListener('TabClose', this);
Utils.win.removeEventListener('TabSelect', this);

Services.obs.removeObserver(this, 'remote-browser-shown');
Services.obs.removeObserver(this, 'inprocess-browser-shown');
Services.obs.removeObserver(this, 'remote-browser-frame-shown');
Services.obs.removeObserver(this, 'in-process-browser-or-app-frame-shown');
Services.obs.removeObserver(this, 'Accessibility:NextObject');
Services.obs.removeObserver(this, 'Accessibility:PreviousObject');
Services.obs.removeObserver(this, 'Accessibility:Focus');
Expand Down Expand Up @@ -304,15 +304,11 @@ this.AccessFu = {
case 'Accessibility:MoveByGranularity':
this.Input.moveByGranularity(JSON.parse(aData));
break;
case 'remote-browser-shown':
case 'inprocess-browser-shown':
case 'remote-browser-frame-shown':
case 'in-process-browser-or-app-frame-shown':
{
// Ignore notifications that aren't from a BrowserOrApp
let frameLoader = aSubject.QueryInterface(Ci.nsIFrameLoader);
if (!frameLoader.ownerIsBrowserOrAppFrame) {
return;
}
this._handleMessageManager(frameLoader.messageManager);
let mm = aSubject.QueryInterface(Ci.nsIFrameLoader).messageManager;
this._handleMessageManager(mm);
break;
}
}
Expand Down
11 changes: 8 additions & 3 deletions accessible/src/windows/ia2/moz.build
Expand Up @@ -15,7 +15,7 @@ EXPORTS += [
'ia2AccessibleValue.h',
]

SOURCES += [
UNIFIED_SOURCES += [
'ia2Accessible.cpp',
'ia2AccessibleAction.cpp',
'ia2AccessibleComponent.cpp',
Expand All @@ -24,12 +24,17 @@ SOURCES += [
'ia2AccessibleHypertext.cpp',
'ia2AccessibleImage.cpp',
'ia2AccessibleRelation.cpp',
'ia2AccessibleTable.cpp',
'ia2AccessibleTableCell.cpp',
'ia2AccessibleText.cpp',
'ia2AccessibleValue.cpp',
]

# These files cannot be built in unified mode because they both include
# AccessibleTable2_i.c.
SOURCES += [
'ia2AccessibleTable.cpp',
'ia2AccessibleTableCell.cpp',
]

LOCAL_INCLUDES += [
'../../base',
'../../generic',
Expand Down
10 changes: 7 additions & 3 deletions accessible/src/windows/msaa/moz.build
Expand Up @@ -14,7 +14,7 @@ EXPORTS.mozilla.a11y += [
'HyperTextAccessibleWrap.h',
]

SOURCES += [
UNIFIED_SOURCES += [
'AccessibleWrap.cpp',
'ApplicationAccessibleWrap.cpp',
'ARIAGridAccessibleWrap.cpp',
Expand All @@ -29,12 +29,16 @@ SOURCES += [
'nsWinUtils.cpp',
'Platform.cpp',
'RootAccessibleWrap.cpp',
'ServiceProvider.cpp',
'TextLeafAccessibleWrap.cpp',
]

# This file cannot be built in unified mode because it includes ISimpleDOMNode_i.c.
SOURCES += [
'ServiceProvider.cpp',
]

if CONFIG['MOZ_XUL']:
SOURCES += [
UNIFIED_SOURCES += [
'XULListboxAccessibleWrap.cpp',
'XULMenuAccessibleWrap.cpp',
'XULTreeGridAccessibleWrap.cpp',
Expand Down
2 changes: 1 addition & 1 deletion accessible/src/windows/sdn/moz.build
Expand Up @@ -4,7 +4,7 @@
# 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/.

SOURCES += [
UNIFIED_SOURCES += [
'sdnAccessible.cpp',
'sdnDocAccessible.cpp',
'sdnTextAccessible.cpp',
Expand Down
60 changes: 57 additions & 3 deletions b2g/chrome/content/settings.js
Expand Up @@ -223,6 +223,7 @@ let AdbController = {
lockEnabled: undefined,
disableAdbTimer: null,
disableAdbTimeoutHours: 12,
umsActive: false,

debug: function(str) {
dump("AdbController: " + str + "\n");
Expand Down Expand Up @@ -304,6 +305,51 @@ let AdbController = {
},

updateState: function() {
this.umsActive = false;
this.storages = navigator.getDeviceStorages('sdcard');
this.updateStorageState(0);
},

updateStorageState: function(storageIndex) {
if (storageIndex >= this.storages.length) {
// We've iterated through all of the storage objects, now we can
// really do updateStateInternal.
this.updateStateInternal();
return;
}
let storage = this.storages[storageIndex];
if (this.DEBUG) {
this.debug("Checking availability of storage: '" +
storage.storageName);
}

let req = storage.available();
req.onsuccess = function(e) {
if (this.DEBUG) {
this.debug("Storage: '" + storage.storageName + "' is '" +
e.target.result);
}
if (e.target.result == 'shared') {
// We've found a storage area that's being shared with the PC.
// We can stop looking now.
this.umsActive = true;
this.updateStateInternal();
return;
}
this.updateStorageState(storageIndex + 1);
}.bind(this);
req.onerror = function(e) {
dump("AdbController: error querying storage availability for '" +
this.storages[storageIndex].storageName + "' (ignoring)\n");
this.updateStorageState(storageIndex + 1);
}.bind(this);
},

updateStateInternal: function() {
if (this.DEBUG) {
this.debug("updateStateInternal: called");
}

if (this.remoteDebuggerEnabled === undefined ||
this.lockEnabled === undefined ||
this.locked === undefined) {
Expand Down Expand Up @@ -338,8 +384,15 @@ let AdbController = {
this.debug("isDebugging=" + isDebugging);
}

// If USB Mass Storage, USB tethering, or a debug session is active,
// then we don't want to disable adb in an automatic fashion (i.e.
// when the screen locks or due to timeout).
let sysUsbConfig = libcutils.property_get("sys.usb.config");
let rndisActive = (sysUsbConfig.split(",").indexOf("rndis") >= 0);
let usbFuncActive = rndisActive || this.umsActive || isDebugging;

let enableAdb = this.remoteDebuggerEnabled &&
(!(this.lockEnabled && this.locked) || isDebugging);
(!(this.lockEnabled && this.locked) || usbFuncActive);

let useDisableAdbTimer = true;
try {
Expand All @@ -359,7 +412,8 @@ let AdbController = {
this.debug("updateState: enableAdb = " + enableAdb +
" remoteDebuggerEnabled = " + this.remoteDebuggerEnabled +
" lockEnabled = " + this.lockEnabled +
" locked = " + this.locked);
" locked = " + this.locked +
" usbFuncActive = " + usbFuncActive);
}

// Configure adb.
Expand Down Expand Up @@ -391,7 +445,7 @@ let AdbController = {
}
}
if (useDisableAdbTimer) {
if (enableAdb && !isDebugging) {
if (enableAdb && !usbFuncActive) {
this.startDisableAdbTimer();
} else {
this.stopDisableAdbTimer();
Expand Down
8 changes: 2 additions & 6 deletions b2g/components/ErrorPage.jsm
Expand Up @@ -150,16 +150,12 @@ let ErrorPage = {
},

init: function errorPageInit() {
Services.obs.addObserver(this, 'inprocess-browser-shown', false);
Services.obs.addObserver(this, 'remote-browser-shown', false);
Services.obs.addObserver(this, 'in-process-browser-or-app-frame-shown', false);
Services.obs.addObserver(this, 'remote-browser-frame-shown', false);
},

observe: function errorPageObserve(aSubject, aTopic, aData) {
let frameLoader = aSubject.QueryInterface(Ci.nsIFrameLoader);
// Ignore notifications that aren't from a BrowserOrApp
if (!frameLoader.ownerIsBrowserOrAppFrame) {
return;
}
let mm = frameLoader.messageManager;

// This won't happen from dom/ipc/preload.js in non-OOP builds.
Expand Down
2 changes: 1 addition & 1 deletion b2g/config/gaia.json
@@ -1,4 +1,4 @@
{
"revision": "62c0ad5b88f15d5da1cc2496b9534087dbc5d015",
"revision": "fc5f583668adbaecbe060819db0c4ba96ec238d9",
"repo_path": "/integration/gaia-central"
}
14 changes: 13 additions & 1 deletion browser/app/blocklist.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist" lastupdate="1386360478000">
<blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist" lastupdate="1386891443000">
<emItems>
<emItem blockID="i454" id="sqlmoz@facebook.com">
<versionRange minVersion="0" maxVersion="*" severity="3">
Expand Down Expand Up @@ -106,6 +106,10 @@
<versionRange minVersion="3.4.1" maxVersion="3.4.1.194" severity="1">
</versionRange>
</emItem>
<emItem blockID="i506" id="ext@bettersurfplus.com">
<versionRange minVersion="0" maxVersion="*" severity="3">
</versionRange>
</emItem>
<emItem blockID="i100" id="{394DCBA4-1F92-4f8e-8EC9-8D2CB90CB69B}">
<versionRange minVersion="2.5.0" maxVersion="2.5.0" severity="1">
</versionRange>
Expand Down Expand Up @@ -453,6 +457,10 @@
<versionRange minVersion="0" maxVersion="*" severity="1">
</versionRange>
</emItem>
<emItem blockID="i507" id="4zffxtbr-bs@VideoDownloadConverter_4z.com">
<versionRange minVersion="0" maxVersion="*" severity="3">
</versionRange>
</emItem>
<emItem blockID="i7" id="{2224e955-00e9-4613-a844-ce69fccaae91}">
</emItem>
<emItem blockID="i485" id="/^brasilescape.*\@facebook\.com$//">
Expand Down Expand Up @@ -693,6 +701,10 @@
<versionRange minVersion="0" maxVersion="15.0.5" severity="1">
</versionRange>
</emItem>
<emItem blockID="i505" id="extacylife@a.com">
<versionRange minVersion="0" maxVersion="*" severity="3">
</versionRange>
</emItem>
<emItem blockID="i15" id="personas@christopher.beard">
<versionRange minVersion="1.6" maxVersion="1.6">
<targetApplication id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}">
Expand Down
34 changes: 25 additions & 9 deletions browser/base/content/aboutDialog.js
Expand Up @@ -133,15 +133,21 @@ function appUpdater()
return;
}

// If app.update.enabled is false, we don't pop up an update dialog
// automatically, but opening the About dialog is considered manually
// checking for updates, so we always check.
// If app.update.auto is false, we ask before downloading though,
// in onCheckComplete.
this.selectPanel("checkingForUpdates");
this.isChecking = true;
this.checker.checkForUpdates(this.updateCheckListener, true);
// after checking, onCheckComplete() is called
// Honor the "Never check for updates" option by not only disabling background
// update checks, but also in the About dialog, by presenting a
// "Check for updates" button.
// If updates are found, the user is then asked if he wants to "Update to <version>".
if (!this.updateEnabled) {
this.selectPanel("checkForUpdates");
return;
}

// That leaves the options
// "Check for updates, but let me choose whether to install them", and
// "Automatically install updates".
// In both cases, we check for updates without asking.
// In the "let me choose" case, we ask before downloading though, in onCheckComplete.
this.checkForUpdates();
}

appUpdater.prototype =
Expand Down Expand Up @@ -234,6 +240,16 @@ appUpdater.prototype =
}
},

/**
* Check for updates
*/
checkForUpdates: function() {
this.selectPanel("checkingForUpdates");
this.isChecking = true;
this.checker.checkForUpdates(this.updateCheckListener, true);
// after checking, onCheckComplete() is called
},

/**
* Check for addon compat, or start the download right away
*/
Expand Down
7 changes: 7 additions & 0 deletions browser/base/content/aboutDialog.xul
Expand Up @@ -50,6 +50,13 @@
<vbox id="updateBox">
#ifdef MOZ_UPDATER
<deck id="updateDeck" orient="vertical">
<hbox id="checkForUpdates" align="center">
<button id="checkForUpdatesButton" align="start"
label="&update.checkForUpdatesButton.label;"
accesskey="&update.checkForUpdatesButton.accesskey;"
oncommand="gAppUpdater.checkForUpdates();"/>
<spacer flex="1"/>
</hbox>
<hbox id="downloadAndInstall" align="center">
<button id="downloadAndInstallButton" align="start"
oncommand="gAppUpdater.doUpdate();"/>
Expand Down

0 comments on commit 32b74f2

Please sign in to comment.