Skip to content

Commit

Permalink
merge mozilla-inbound to mozilla-central a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
BavarianTomcat committed Jul 27, 2016
2 parents dbdbb9d + 1c88605 commit 7293066
Show file tree
Hide file tree
Showing 131 changed files with 2,850 additions and 1,790 deletions.
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessible.idl
Expand Up @@ -30,7 +30,7 @@ class Accessible;
* Mozilla creates the implementations of nsIAccessible on demand.
* See http://www.mozilla.org/projects/ui/accessibility for more information.
*/
[scriptable, uuid(de2869d9-563c-4943-996b-31a4daa4d097)]
[scriptable, builtinclass, uuid(de2869d9-563c-4943-996b-31a4daa4d097)]
interface nsIAccessible : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleApplication.idl
Expand Up @@ -9,7 +9,7 @@
* This interface is implemented by top level accessible object in hierarchy and
* provides information about application.
*/
[scriptable, uuid(79251626-387c-4531-89f3-680d31d6cf05)]
[scriptable, builtinclass, uuid(79251626-387c-4531-89f3-680d31d6cf05)]
interface nsIAccessibleApplication : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleDocument.idl
Expand Up @@ -19,7 +19,7 @@ interface mozIDOMWindowProxy;
* the root node of a document or you can get one from
* nsIAccessible::GetDocument().
*/
[scriptable, uuid(5cad5f91-fcce-40e7-913e-4671701d19b4)]
[scriptable, builtinclass, uuid(5cad5f91-fcce-40e7-913e-4671701d19b4)]
interface nsIAccessibleDocument : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleEditableText.idl
Expand Up @@ -6,7 +6,7 @@

#include "nsISupports.idl"

[scriptable, uuid(28915cca-3366-4034-ba1d-b7afb9b37639)]
[scriptable, builtinclass, uuid(28915cca-3366-4034-ba1d-b7afb9b37639)]
interface nsIAccessibleEditableText : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleHyperLink.idl
Expand Up @@ -13,7 +13,7 @@ interface nsIAccessible;
* A cross-platform interface that supports hyperlink-specific properties and
* methods. Anchors, image maps, xul:labels with class="text-link" implement this interface.
*/
[scriptable, uuid(883643d4-93a5-4f32-922c-6f06e01363c1)]
[scriptable, builtinclass, uuid(883643d4-93a5-4f32-922c-6f06e01363c1)]
interface nsIAccessibleHyperLink : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleHyperText.idl
Expand Up @@ -15,7 +15,7 @@
* Current implementation assumes every embedded object is a link.
*/

[scriptable, uuid(b33684e2-090c-4e1d-a3d9-f4b46f4237b9)]
[scriptable, builtinclass, uuid(b33684e2-090c-4e1d-a3d9-f4b46f4237b9)]
interface nsIAccessibleHyperText : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleImage.idl
Expand Up @@ -5,7 +5,7 @@

#include "nsISupports.idl"

[scriptable, uuid(09086623-0f09-4310-ac56-c2cda7c29648)]
[scriptable, builtinclass, uuid(09086623-0f09-4310-ac56-c2cda7c29648)]
interface nsIAccessibleImage : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleRelation.idl
Expand Up @@ -11,7 +11,7 @@ interface nsIAccessible;
/**
* This interface gives access to an accessible's set of relations.
*/
[scriptable, uuid(55b308c4-2ae4-46bc-b4cd-4d4370e0a660)]
[scriptable, builtinclass, uuid(55b308c4-2ae4-46bc-b4cd-4d4370e0a660)]
interface nsIAccessibleRelation : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleRetrieval.idl
Expand Up @@ -16,7 +16,7 @@ interface nsIAccessiblePivot;
* nsIAccessible for a given DOM node. More documentation at:
* http://www.mozilla.org/projects/ui/accessibility
*/
[scriptable, uuid(17f86615-1a3d-4021-b227-3a2ef5cbffd8)]
[scriptable, builtinclass, uuid(17f86615-1a3d-4021-b227-3a2ef5cbffd8)]
interface nsIAccessibleRetrieval : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleRole.idl
Expand Up @@ -8,7 +8,7 @@
/**
* Defines cross platform (Gecko) roles.
*/
[scriptable, uuid(05a9f33f-dcfd-4e7b-b825-138ba784c1f5)]
[scriptable, builtinclass, uuid(05a9f33f-dcfd-4e7b-b825-138ba784c1f5)]
interface nsIAccessibleRole : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleSelectable.idl
Expand Up @@ -11,7 +11,7 @@ interface nsIArray;
/**
* An accessibility interface for selectable widgets.
*/
[scriptable, uuid(8efb03d4-1354-4875-94cf-261336057626)]
[scriptable, builtinclass, uuid(8efb03d4-1354-4875-94cf-261336057626)]
interface nsIAccessibleSelectable : nsISupports
{
/**
Expand Down
4 changes: 2 additions & 2 deletions accessible/interfaces/nsIAccessibleTable.idl
Expand Up @@ -9,7 +9,7 @@
interface nsIAccessible;
interface nsIArray;

[scriptable, uuid(cb0bf7b9-117e-40e2-9e46-189c3d43ce4a)]
[scriptable, builtinclass, uuid(cb0bf7b9-117e-40e2-9e46-189c3d43ce4a)]
interface nsIAccessibleTable : nsISupports
{
/**
Expand Down Expand Up @@ -221,7 +221,7 @@ interface nsIAccessibleTable : nsISupports
};


[scriptable, uuid(654e296d-fae6-452b-987d-746b20b9514b)]
[scriptable, builtinclass, uuid(654e296d-fae6-452b-987d-746b20b9514b)]
interface nsIAccessibleTableCell : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleText.idl
Expand Up @@ -13,7 +13,7 @@ interface nsIArray;
interface nsIPersistentProperties;
interface nsIAccessibleTextRange;

[scriptable, uuid(93ad2ca1-f12b-4ab9-a793-95d9fa9d1774)]
[scriptable, builtinclass, uuid(93ad2ca1-f12b-4ab9-a793-95d9fa9d1774)]
interface nsIAccessibleText : nsISupports
{
// In parameters for character offsets:
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleTextRange.idl
Expand Up @@ -13,7 +13,7 @@ interface nsIVariant;
/**
* A range representing a piece of text in the document.
*/
[scriptable, uuid(c4515623-55f9-4543-a3d5-c1e9afa588f4)]
[scriptable, builtinclass, uuid(c4515623-55f9-4543-a3d5-c1e9afa588f4)]
interface nsIAccessibleTextRange : nsISupports
{
readonly attribute nsIAccessibleText startContainer;
Expand Down
4 changes: 2 additions & 2 deletions accessible/interfaces/nsIAccessibleTypes.idl
Expand Up @@ -9,7 +9,7 @@
* These constants control the scrolling of an object or substring into a
* window. Note, keep them synchronized with IA2ScrollType.
*/
[scriptable, uuid(05cd38b1-94b3-4cdf-8371-3935a9611405)]
[scriptable, builtinclass, uuid(05cd38b1-94b3-4cdf-8371-3935a9611405)]
interface nsIAccessibleScrollType : nsISupports
{
/**
Expand Down Expand Up @@ -59,7 +59,7 @@ interface nsIAccessibleScrollType : nsISupports
/**
* These constants define which coordinate system a point is located in.
*/
[scriptable, uuid(c9fbdf10-619e-436f-bf4b-8566686f1577)]
[scriptable, builtinclass, uuid(c9fbdf10-619e-436f-bf4b-8566686f1577)]
interface nsIAccessibleCoordinateType : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleValue.idl
Expand Up @@ -6,7 +6,7 @@

#include "nsISupports.idl"

[scriptable, uuid(42a1e1dc-58cf-419d-bff0-ed3314c70016)]
[scriptable, builtinclass, uuid(42a1e1dc-58cf-419d-bff0-ed3314c70016)]
interface nsIAccessibleValue : nsISupports
{
readonly attribute double maximumValue;
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIXBLAccessible.idl
Expand Up @@ -10,7 +10,7 @@
* XBL controls can implement this interface to provide own implementation of
* accessible properties.
*/
[scriptable, uuid(3716eb86-166b-445b-a94a-9b522fee96e6)]
[scriptable, builtinclass, uuid(3716eb86-166b-445b-a94a-9b522fee96e6)]
interface nsIXBLAccessible : nsISupports
{
/**
Expand Down
1 change: 0 additions & 1 deletion aclocal.m4
Expand Up @@ -16,7 +16,6 @@ builtin(include, build/autoconf/codeset.m4)dnl
builtin(include, build/autoconf/altoptions.m4)dnl
builtin(include, build/autoconf/mozprog.m4)dnl
builtin(include, build/autoconf/mozheader.m4)dnl
builtin(include, build/autoconf/mozcommonheader.m4)dnl
builtin(include, build/autoconf/lto.m4)dnl
builtin(include, build/autoconf/frameptr.m4)dnl
builtin(include, build/autoconf/compiler-opts.m4)dnl
Expand Down
4 changes: 0 additions & 4 deletions browser/base/content/browser-media.js
Expand Up @@ -19,10 +19,6 @@ var gEMEHandler = {
Services.prefs.getPrefType("media.gmp-eme-adobe.enabled") &&
!Services.prefs.getBoolPref("media.gmp-eme-adobe.enabled")) {
Services.prefs.setBoolPref("media.gmp-eme-adobe.enabled", true);
} else if (keySystem == "org.w3.clearkey" &&
Services.prefs.getPrefType("media.eme.clearkey.enabled") &&
!Services.prefs.getBoolPref("media.eme.clearkey.enabled")) {
Services.prefs.setBoolPref("media.eme.clearkey.enabled", true);
} else if (keySystem == "com.widevine.alpha" &&
Services.prefs.getPrefType("media.gmp-widevinecdm.enabled") &&
!Services.prefs.getBoolPref("media.gmp-widevinecdm.enabled")) {
Expand Down
17 changes: 17 additions & 0 deletions browser/components/preferences/cookies.js
Expand Up @@ -79,11 +79,24 @@ var gCookiesWindow = {
aCookieB.originAttributes);
},

_isPrivateCookie: function (aCookie) {
let { userContextId } = aCookie.originAttributes;
if (!userContextId) {
// Default identity is public.
return false;
}
return !ContextualIdentityService.getIdentityFromId(userContextId).public;
},

observe: function (aCookie, aTopic, aData) {
if (aTopic != "cookie-changed")
return;

if (aCookie instanceof Components.interfaces.nsICookie) {
if (this._isPrivateCookie(aCookie)) {
return;
}

var strippedHost = this._makeStrippedHost(aCookie.host);
if (aData == "changed")
this._handleCookieChanged(aCookie, strippedHost);
Expand Down Expand Up @@ -490,6 +503,10 @@ var gCookiesWindow = {
while (e.hasMoreElements()) {
var cookie = e.getNext();
if (cookie && cookie instanceof Components.interfaces.nsICookie) {
if (this._isPrivateCookie(cookie)) {
continue;
}

var strippedHost = this._makeStrippedHost(cookie.host);
this._addCookie(strippedHost, cookie, hostCount);
}
Expand Down
4 changes: 2 additions & 2 deletions browser/modules/PluginContent.jsm
Expand Up @@ -397,9 +397,9 @@ PluginContent.prototype = {
if (eventType == "HiddenPlugin") {
let pluginTag = event.tag.QueryInterface(Ci.nsIPluginTag);
if (event.target.defaultView.top.document != this.content.document) {
return;
return;
}
this._showClickToPlayNotification(pluginTag, true);
this._showClickToPlayNotification(pluginTag, false);
}

let plugin = event.target;
Expand Down
4 changes: 2 additions & 2 deletions build/autoconf/alloc.m4
Expand Up @@ -22,7 +22,7 @@ AC_CHECK_FUNCS(strndup posix_memalign memalign)
AC_CHECK_FUNCS(malloc_usable_size)
MALLOC_USABLE_SIZE_CONST_PTR=const
MOZ_CHECK_HEADERS([malloc.h], [
if test -n "$HAVE_MALLOC_H"; then
AC_MSG_CHECKING([whether malloc_usable_size definition can use const argument])
AC_TRY_COMPILE([#include <malloc.h>
#include <stddef.h>
Expand All @@ -31,7 +31,7 @@ MOZ_CHECK_HEADERS([malloc.h], [
AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no])
MALLOC_USABLE_SIZE_CONST_PTR=)
])
fi
AC_DEFINE_UNQUOTED([MALLOC_USABLE_SIZE_CONST_PTR],[$MALLOC_USABLE_SIZE_CONST_PTR])
Expand Down
52 changes: 1 addition & 51 deletions build/autoconf/android.m4
Expand Up @@ -11,59 +11,9 @@ MOZ_ARG_WITH_STRING(android-cxx-stl,
android_cxx_stl=$withval,
android_cxx_stl=libc++)
define([MIN_ANDROID_VERSION], [9])
android_version=MIN_ANDROID_VERSION
MOZ_ARG_WITH_STRING(android-version,
[ --with-android-version=VER
android platform version, default] MIN_ANDROID_VERSION,
android_version=$withval)
if test $android_version -lt MIN_ANDROID_VERSION ; then
AC_MSG_ERROR([--with-android-version must be at least MIN_ANDROID_VERSION.])
fi
case "$target" in
*-android*|*-linuxandroid*)
AC_MSG_CHECKING([for android platform directory])
case "$target_cpu" in
arm)
target_name=arm
;;
i?86)
target_name=x86
;;
mipsel)
target_name=mips
;;
esac
dnl Not all Android releases have their own platform release. We use
dnl the next lower platform version in these cases.
case $android_version in
11|10)
android_platform_version=9
;;
20)
android_platform_version=19
;;
22)
android_platform_version=21
;;
*)
android_platform_version=$android_version
;;
esac
android_platform="$android_ndk"/platforms/android-"$android_platform_version"/arch-"$target_name"
if test -d "$android_platform" ; then
AC_MSG_RESULT([$android_platform])
else
AC_MSG_ERROR([not found. Please check your NDK. With the current configuration, it should be in $android_platform])
fi
dnl $android_platform will be set for us by Python configure.
CPPFLAGS="-idirafter $android_platform/usr/include $CPPFLAGS"
CFLAGS="-fno-short-enums -fno-exceptions $CFLAGS"
CXXFLAGS="-fno-short-enums -fno-exceptions $CXXFLAGS"
Expand Down
9 changes: 0 additions & 9 deletions build/autoconf/mozcommonheader.m4

This file was deleted.

0 comments on commit 7293066

Please sign in to comment.