Skip to content

Commit

Permalink
Merge mozilla-central to autoland
Browse files Browse the repository at this point in the history
  • Loading branch information
BavarianTomcat committed Mar 15, 2017
2 parents 7be07ee + f807b33 commit 7decdeb
Show file tree
Hide file tree
Showing 97 changed files with 984 additions and 1,077 deletions.
2 changes: 1 addition & 1 deletion CLOBBER
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
# don't change CLOBBER for WebIDL changes any more.

Bug 1345336 - Crash in icu_58::TimeZoneFormat::initGMTOffsetPatterns
Bug 1346967 - Generate metadata for all three ISimpleDOM interfaces via a single combined run of MIDL
2 changes: 1 addition & 1 deletion accessible/interfaces/msaa/AccessibleMarshal.rc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* 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/. */

1 typelib ISimpleDOMNode.tlb
1 typelib ISimpleDOM.tlb
23 changes: 23 additions & 0 deletions accessible/interfaces/msaa/ISimpleDOM.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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/. */

// We use #include instead of import here so that MIDL treats these files as
// part of the current file, thus forcing MIDL to generate proxy info for them.
#include "ISimpleDOMNode.idl"
#include "ISimpleDOMDocument.idl"
#include "ISimpleDOMText.idl"

[
uuid(a6245497-9c0b-4449-85a5-bd6ad07df8ea),
helpstring("ISimpleDOM Type Library")
]
library ISimpleDOM
{
interface ISimpleDOMNode;
interface ISimpleDOMText;
interface ISimpleDOMDocument;
};

15 changes: 0 additions & 15 deletions accessible/interfaces/msaa/ISimpleDOMNode.idl
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ cpp_quote("")
import "objidl.idl";
import "oaidl.idl";

import "ISimpleDOMText.idl";
import "ISimpleDOMDocument.idl";

[object, uuid(1814ceeb-49e2-407f-af99-fa755a7d2607)]
interface ISimpleDOMNode : IUnknown
{
Expand Down Expand Up @@ -174,15 +171,3 @@ interface ISimpleDOMNode : IUnknown
[propget] HRESULT language([out, retval] BSTR *language);
}


[
uuid(a6245497-9c0b-4449-85a5-bd6ad07df8ea),
helpstring("ISimpleDOM Type Library")
]
library ISimpleDOM
{
interface ISimpleDOMNode;
interface ISimpleDOMText;
interface ISimpleDOMDocument;
};

29 changes: 9 additions & 20 deletions accessible/interfaces/msaa/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,20 @@ GARBAGE += $(MIDL_GENERATED_FILES) done_gen

MIDL_GENERATED_FILES = \
dlldata.c \
ISimpleDOMNode.h \
ISimpleDOMNode_p.c \
ISimpleDOMNode_i.c \
ISimpleDOMNode.tlb \
ISimpleDOMDocument.h \
ISimpleDOMDocument_p.c \
ISimpleDOMDocument_i.c \
ISimpleDOMText.h \
ISimpleDOMText_p.c \
ISimpleDOMText_i.c \
ISimpleDOM.h \
ISimpleDOM_i.c \
ISimpleDOM_p.c \
ISimpleDOM.tlb \
$(NULL)

$(MIDL_GENERATED_FILES): done_gen

done_gen: ISimpleDOMNode.idl \
done_gen: ISimpleDOM.idl \
ISimpleDOMNode.idl \
ISimpleDOMDocument.idl \
ISimpleDOMText.idl

$(MIDL) $(MIDL_FLAGS) -I $(srcdir) -Oicf $(srcdir)/ISimpleDOMNode.idl
$(MIDL) $(MIDL_FLAGS) -Oicf $(srcdir)/ISimpleDOMDocument.idl
$(MIDL) $(MIDL_FLAGS) -Oicf $(srcdir)/ISimpleDOMText.idl
$(MIDL) $(MIDL_FLAGS) -I $(srcdir) -robust -Oicf $(srcdir)/ISimpleDOM.idl
touch $@

export:: done_gen
Expand All @@ -38,12 +31,8 @@ register::
EMBED_MANIFEST_AT = 2

midl_exports := \
ISimpleDOMDocument.h \
ISimpleDOMDocument_i.c \
ISimpleDOMNode.h \
ISimpleDOMNode_i.c \
ISimpleDOMText.h \
ISimpleDOMText_i.c \
ISimpleDOM.h \
ISimpleDOM_i.c \
$(NULL)

INSTALL_TARGETS += midl_exports
Expand Down
25 changes: 9 additions & 16 deletions accessible/interfaces/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ GeckoSharedLibrary('AccessibleMarshal', linkage=None)

SOURCES += [
'!dlldata.c',
'!ISimpleDOMDocument_i.c',
'!ISimpleDOMDocument_p.c',
'!ISimpleDOMNode_i.c',
'!ISimpleDOMNode_p.c',
'!ISimpleDOMText_i.c',
'!ISimpleDOMText_p.c',
'!ISimpleDOM_i.c',
'!ISimpleDOM_p.c',
]

DEFINES['REGISTER_PROXY_DLL'] = True
# The following line is required to preserve compatibility with older versions
# of AccessibleMarshal.dll.
DEFINES['PROXY_CLSID'] = 'IID_ISimpleDOMNode'

DEFFILE = SRCDIR + '/AccessibleMarshal.def'

Expand All @@ -28,16 +27,10 @@ OS_LIBS += [

GENERATED_FILES += [
'dlldata.c',
'ISimpleDOMDocument.h',
'ISimpleDOMDocument_i.c',
'ISimpleDOMDocument_p.c',
'ISimpleDOMNode.h',
'ISimpleDOMNode.tlb',
'ISimpleDOMNode_i.c',
'ISimpleDOMNode_p.c',
'ISimpleDOMText.h',
'ISimpleDOMText_i.c',
'ISimpleDOMText_p.c',
'ISimpleDOM.h',
'ISimpleDOM.tlb',
'ISimpleDOM_i.c',
'ISimpleDOM_p.c',
]

RCINCLUDE = 'AccessibleMarshal.rc'
Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/msaa/ServiceProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "mozilla/Preferences.h"
#include "nsIDocShell.h"

#include "ISimpleDOMNode_i.c"
#include "ISimpleDOM.h"

namespace mozilla {
namespace a11y {
Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/sdn/sdnAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "sdnAccessible-inl.h"
#include "ISimpleDOMNode_i.c"
#include "ISimpleDOM_i.c"

#include "DocAccessibleWrap.h"

Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/sdn/sdnAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef mozilla_a11y_sdnAccessible_h_
#define mozilla_a11y_sdnAccessible_h_

#include "ISimpleDOMNode.h"
#include "ISimpleDOM.h"
#include "AccessibleWrap.h"
#include "IUnknownImpl.h"

Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/sdn/sdnDocAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "sdnDocAccessible.h"

#include "ISimpleDOMDocument_i.c"
#include "ISimpleDOM.h"

#include "nsNameSpaceManager.h"

Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/sdn/sdnDocAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef mozilla_a11y_sdnDocAccessible_h_
#define mozilla_a11y_sdnDocAccessible_h_

#include "ISimpleDOMDocument.h"
#include "ISimpleDOM.h"
#include "IUnknownImpl.h"

#include "DocAccessibleWrap.h"
Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/sdn/sdnTextAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "sdnTextAccessible.h"

#include "ISimpleDOMText_i.c"
#include "ISimpleDOM.h"

#include "nsCoreUtils.h"
#include "DocAccessible.h"
Expand Down
2 changes: 1 addition & 1 deletion accessible/windows/sdn/sdnTextAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef mozilla_a11y_sdnTextAccessible_h_
#define mozilla_a11y_sdnTextAccessible_h_

#include "ISimpleDOMText.h"
#include "ISimpleDOM.h"
#include "IUnknownImpl.h"

#include "AccessibleWrap.h"
Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/test/webrtc/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ skip-if = (os == "linux" && debug) # linux: bug 976544
[browser_devices_get_user_media_anim.js]
[browser_devices_get_user_media_in_frame.js]
[browser_devices_get_user_media_screen.js]
skip-if = (e10s && debug) || (os == "linux" && !debug) # bug 1320754 for e10s debug, and bug 1320994 for linux opt
skip-if = (e10s && debug) || (os == "linux") || (os == "win" && !debug) # bug 1320754 for e10s debug, and bug 1320994 for linux opt, bug 1338038 for windows and linux debug
[browser_devices_get_user_media_tear_off_tab.js]
[browser_devices_get_user_media_unprompted_access.js]
[browser_devices_get_user_media_unprompted_access_in_frame.js]
Expand Down
6 changes: 3 additions & 3 deletions browser/config/tooltool-manifests/linux64/asan.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"unpack": true
},
{
"version": "clang 3.8.0, libgcc 4.8.5",
"size": 139183100,
"digest": "a056a151d4f25f415b6d905136c3fa8d51d12a5a815c3df37d5663c67d59571736641a4c990884a69f78ea6b5e37a6a7bfff0417dfe38936d842d6fa0776ae54",
"version": "clang 3.9.0, libgcc 4.9.4",
"size": 166261192,
"digest": "52f3fc23f0f5c98050f8b0ac7c92a6752d067582a16f712a5a58074be98975d594f9e36249fc2be7f1cc2ca6d509c663faaf2bea66f949243cc1f41651638ba6",
"algorithm": "sha512",
"filename": "clang.tar.xz",
"unpack": true
Expand Down
6 changes: 3 additions & 3 deletions browser/config/tooltool-manifests/linux64/msan.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"unpack": true
},
{
"version": "clang 3.8.0, libgcc 4.8.5",
"size": 139183100,
"digest": "a056a151d4f25f415b6d905136c3fa8d51d12a5a815c3df37d5663c67d59571736641a4c990884a69f78ea6b5e37a6a7bfff0417dfe38936d842d6fa0776ae54",
"version": "clang 3.9.0, libgcc 4.9.4",
"size": 166261192,
"digest": "52f3fc23f0f5c98050f8b0ac7c92a6752d067582a16f712a5a58074be98975d594f9e36249fc2be7f1cc2ca6d509c663faaf2bea66f949243cc1f41651638ba6",
"algorithm": "sha512",
"filename": "clang.tar.xz",
"unpack": true
Expand Down
6 changes: 3 additions & 3 deletions browser/config/tooltool-manifests/linux64/tsan.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"unpack": true
},
{
"version": "clang 3.8.0, libgcc 4.8.5",
"size": 139183100,
"digest": "a056a151d4f25f415b6d905136c3fa8d51d12a5a815c3df37d5663c67d59571736641a4c990884a69f78ea6b5e37a6a7bfff0417dfe38936d842d6fa0776ae54",
"version": "clang 3.9.0, libgcc 4.9.4",
"size": 166261192,
"digest": "52f3fc23f0f5c98050f8b0ac7c92a6752d067582a16f712a5a58074be98975d594f9e36249fc2be7f1cc2ca6d509c663faaf2bea66f949243cc1f41651638ba6",
"algorithm": "sha512",
"filename": "clang.tar.xz",
"unpack": true
Expand Down
3 changes: 0 additions & 3 deletions config/system-headers
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,6 @@ Quickdraw.h
QuickDraw.h
QuickTimeComponents.h
quipu/attr.h
rasdlg.h
raserror.h
ras.h
regex.h
Region.h
resolv.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ const PropertiesView = createClass({
const { member } = props;

// Hide strings with following conditions
// 1. this row is a togglable section
// 2. the `value` object has a `value` property, only happend in Cookies panel
// 1. this row is a togglable section and content is object ('cause it shouldn't hide
// when string or number)
// 2. the `value` object has a `value` property, only happened in Cookies panel
// Put 2 here to not dup this method
if (member.level === 0 ||
if (member.level === 0 && member.type === "object" ||
(typeof member.value === "object" && member.value && member.value.value)) {
return null;
}
Expand Down
33 changes: 12 additions & 21 deletions docshell/base/nsDocShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,7 @@ nsDocShell::~nsDocShell()
NS_IF_RELEASE(sURIFixup);
}

if (gDocShellLeakLog) {
MOZ_LOG(gDocShellLeakLog, LogLevel::Debug, ("DOCSHELL %p destroyed\n", this));
}
MOZ_LOG(gDocShellLeakLog, LogLevel::Debug, ("DOCSHELL %p destroyed\n", this));

#ifdef DEBUG
// We're counting the number of |nsDocShells| to help find leaks
Expand Down Expand Up @@ -1322,15 +1320,9 @@ nsDocShell::LoadURI(nsIURI* aURI,
aLoadInfo->GetBaseURI(getter_AddRefs(baseURI));
}

#if defined(DEBUG)
if (MOZ_LOG_TEST(gDocShellLog, LogLevel::Debug)) {
nsAutoCString uristr;
aURI->GetAsciiSpec(uristr);
MOZ_LOG(gDocShellLog, LogLevel::Debug,
("nsDocShell[%p]: loading %s with flags 0x%08x",
this, uristr.get(), aLoadFlags));
}
#endif
MOZ_LOG(gDocShellLeakLog, LogLevel::Debug,
("nsDocShell[%p]: loading %s with flags 0x%08x",
this, aURI->GetSpecOrDefault().get(), aLoadFlags));

if (!shEntry &&
!LOAD_TYPE_HAS_FLAGS(loadType, LOAD_FLAGS_REPLACE_HISTORY)) {
Expand Down Expand Up @@ -1980,10 +1972,9 @@ bool
nsDocShell::SetCurrentURI(nsIURI* aURI, nsIRequest* aRequest,
bool aFireOnLocationChange, uint32_t aLocationFlags)
{
if (gDocShellLeakLog && MOZ_LOG_TEST(gDocShellLeakLog, LogLevel::Debug)) {
PR_LogPrint("DOCSHELL %p SetCurrentURI %s\n",
this, aURI ? aURI->GetSpecOrDefault().get() : "");
}
MOZ_LOG(gDocShellLeakLog, LogLevel::Debug,
("DOCSHELL %p SetCurrentURI %s\n",
this, aURI ? aURI->GetSpecOrDefault().get() : ""));

// We don't want to send a location change when we're displaying an error
// page, and we don't want to change our idea of "current URI" either
Expand Down Expand Up @@ -5343,7 +5334,8 @@ nsDocShell::LoadErrorPage(nsIURI* aURI, const char16_t* aURL,

MOZ_LOG(gDocShellLog, LogLevel::Debug,
("nsDocShell[%p]::LoadErrorPage(\"%s\", \"%s\", {...}, [%s])\n", this,
aURI->GetSpecOrDefault().get(), NS_ConvertUTF16toUTF8(aURL).get(),
aURI ? aURI->GetSpecOrDefault().get() : "",
NS_ConvertUTF16toUTF8(aURL).get(),
chanName.get()));
}
#endif
Expand Down Expand Up @@ -9809,10 +9801,9 @@ nsDocShell::InternalLoad(nsIURI* aURI,
nsresult rv = NS_OK;
mOriginalUriString.Truncate();

if (gDocShellLeakLog && MOZ_LOG_TEST(gDocShellLeakLog, LogLevel::Debug)) {
PR_LogPrint("DOCSHELL %p InternalLoad %s\n",
this, aURI ? aURI->GetSpecOrDefault().get() : "");
}
MOZ_LOG(gDocShellLeakLog, LogLevel::Debug,
("DOCSHELL %p InternalLoad %s\n",
this, aURI ? aURI->GetSpecOrDefault().get() : ""));
// Initialize aDocShell/aRequest
if (aDocShell) {
*aDocShell = nullptr;
Expand Down
Loading

0 comments on commit 7decdeb

Please sign in to comment.