mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Merge m-c to inbound.
This commit is contained in:
commit
e4923d046c
@ -886,16 +886,9 @@ let SessionStoreInternal = {
|
||||
winData._shouldRestore = true;
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
|
||||
// Save the window if it has multiple tabs or a single saveable tab and
|
||||
// it's not private.
|
||||
if (!winData.isPrivate && (winData.tabs.length > 1 ||
|
||||
(winData.tabs.length == 1 && this._shouldSaveTabState(winData.tabs[0])))) {
|
||||
#else
|
||||
// save the window if it has multiple tabs or a single saveable tab
|
||||
if (winData.tabs.length > 1 ||
|
||||
(winData.tabs.length == 1 && this._shouldSaveTabState(winData.tabs[0]))) {
|
||||
#endif
|
||||
// we don't want to save the busy state
|
||||
delete winData.busy;
|
||||
|
||||
|
@ -1833,9 +1833,6 @@ ContentParent::RecvAsyncMessage(const nsString& aMsg,
|
||||
bool
|
||||
ContentParent::RecvAddGeolocationListener()
|
||||
{
|
||||
if (!AssertAppProcessPermission(this, "geolocation")) {
|
||||
return false;
|
||||
}
|
||||
if (mGeolocationWatchID == -1) {
|
||||
nsCOMPtr<nsIDOMGeoGeolocation> geo = do_GetService("@mozilla.org/geolocation;1");
|
||||
if (!geo) {
|
||||
@ -1850,28 +1847,20 @@ ContentParent::RecvAddGeolocationListener()
|
||||
bool
|
||||
ContentParent::RecvRemoveGeolocationListener()
|
||||
{
|
||||
if (mGeolocationWatchID == -1) {
|
||||
return true;
|
||||
if (mGeolocationWatchID != -1) {
|
||||
nsCOMPtr<nsIDOMGeoGeolocation> geo = do_GetService("@mozilla.org/geolocation;1");
|
||||
if (!geo) {
|
||||
return true;
|
||||
}
|
||||
geo->ClearWatch(mGeolocationWatchID);
|
||||
mGeolocationWatchID = -1;
|
||||
}
|
||||
|
||||
if (!AssertAppProcessPermission(this, "geolocation")) {
|
||||
return false;
|
||||
}
|
||||
nsCOMPtr<nsIDOMGeoGeolocation> geo = do_GetService("@mozilla.org/geolocation;1");
|
||||
if (!geo) {
|
||||
return true;
|
||||
}
|
||||
geo->ClearWatch(mGeolocationWatchID);
|
||||
mGeolocationWatchID = -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
ContentParent::HandleEvent(nsIDOMGeoPosition* postion)
|
||||
{
|
||||
if (!AssertAppProcessPermission(this, "geolocation")) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
unused << SendGeolocationUpdate(GeoPosition(postion));
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ PKG_STAGE = $(DIST)/test-package-stage
|
||||
|
||||
libs::
|
||||
$(INSTALL) $(srcdir)/xpcshell.ini $(DEPTH)/_tests/xpcshell
|
||||
$(INSTALL) $(srcdir)/xpcshell_b2g.ini $(DEPTH)/_tests/xpcshell
|
||||
cp $(srcdir)/xpcshell.ini $(DEPTH)/_tests/xpcshell/all-test-dirs.list
|
||||
|
||||
# Run selftests
|
||||
|
14
testing/xpcshell/xpcshell_b2g.ini
Normal file
14
testing/xpcshell/xpcshell_b2g.ini
Normal file
@ -0,0 +1,14 @@
|
||||
; 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/.
|
||||
|
||||
[include:dom/sms/tests/xpcshell.ini]
|
||||
[include:dom/mms/tests/xpcshell.ini]
|
||||
[include:dom/system/gonk/tests/xpcshell.ini]
|
||||
[include:toolkit/mozapps/downloads/tests/unit/xpcshell.ini]
|
||||
[include:toolkit/mozapps/update/test_timermanager/unit/xpcshell.ini]
|
||||
[include:toolkit/mozapps/update/test_svc/unit/xpcshell.ini]
|
||||
[include:toolkit/mozapps/update/test/unit/xpcshell.ini]
|
||||
[include:toolkit/mozapps/shared/test/unit/xpcshell.ini]
|
||||
[include:ipc/testshell/tests/xpcshell.ini]
|
||||
[include:b2g/components/test/unit/xpcshell.ini]
|
Loading…
x
Reference in New Issue
Block a user