Skip to content

Commit

Permalink
Backed out changeset 4294063f1606 (bug 1688452) for causing mochitest…
Browse files Browse the repository at this point in the history
… and wpt failures. CLOSED TREE
  • Loading branch information
Sandor Molnar committed Nov 20, 2021
1 parent 5dbb675 commit 5b58543
Show file tree
Hide file tree
Showing 19 changed files with 223 additions and 809 deletions.
2 changes: 1 addition & 1 deletion config/recurse.mk
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ endif
ifdef MOZ_USING_WASM_SANDBOXING
security/rlbox/target-objects: config/external/wasm2c_sandbox_compiler/host
security/rlbox/target: security/rlbox/target-objects
dom/media/ogg/target-objects extensions/spellcheck/hunspell/glue/target-objects gfx/thebes/target-objects parser/expat/target-objects parser/htmlparser/target-objects: security/rlbox/target-objects
dom/media/ogg/target-objects extensions/spellcheck/hunspell/glue/target-objects gfx/thebes/target-objects: security/rlbox/target-objects
endif

# Most things are built during compile (target/host), but some things happen during export
Expand Down
1 change: 0 additions & 1 deletion layout/build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ LOCAL_INCLUDES += [
"/js/xpconnect/src",
"/netwerk/base",
"/netwerk/cookie",
"/parser/htmlparser",
"/toolkit/components/sessionstore",
"/view",
]
Expand Down
4 changes: 0 additions & 4 deletions layout/build/nsLayoutStatics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@
#include "RestoreTabContentObserver.h"
#include "mozilla/intl/nsComplexBreaker.h"

#include "nsRLBoxExpatDriver.h"

using namespace mozilla;
using namespace mozilla::net;
using namespace mozilla::dom;
Expand Down Expand Up @@ -296,8 +294,6 @@ nsresult nsLayoutStatics::Initialize() {

ComplexBreaker::Initialize();

RLBoxExpatSandboxPool::Initialize();

return NS_OK;
}

Expand Down
17 changes: 12 additions & 5 deletions parser/expat/expat_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@
#ifndef __expat_config_h__
#define __expat_config_h__

#ifdef MOZ_IN_WASM_SANDBOX
# include "expat_config_rlbox.h"
#else
# include "expat_config_moz.h"
#endif
#define MOZ_UNICODE
#include "nspr.h"

#ifdef IS_LITTLE_ENDIAN
#define BYTEORDER 1234
#else
#define BYTEORDER 4321
#endif /* IS_LITTLE_ENDIAN */

#if PR_BYTES_PER_INT != 4
#define int int32_t
#endif /* PR_BYTES_PER_INT != 4 */

/* Other Mozilla code relies on memmove already, so we assume it's available */
#define HAVE_MEMMOVE 1
Expand Down
22 changes: 0 additions & 22 deletions parser/expat/expat_config_moz.h

This file was deleted.

20 changes: 0 additions & 20 deletions parser/expat/expat_config_rlbox.h

This file was deleted.

11 changes: 6 additions & 5 deletions parser/expat/lib/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
# 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("sources.mozbuild")

EXPORTS += [
'expat.h',
'expat_external.h',
]

SOURCES += expat_sources
SOURCES += [
'xmlparse.c',
'xmlrole.c',
'xmltok.c',
]

FINAL_LIBRARY = 'gkmedias'

for k, v in expat_defines:
DEFINES[k] = v
DEFINES['HAVE_EXPAT_CONFIG_H'] = True
15 changes: 0 additions & 15 deletions parser/expat/lib/sources.mozbuild

This file was deleted.

7 changes: 0 additions & 7 deletions parser/expat/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,5 @@ DIRS += ['lib']

EXPORTS += [
'expat_config.h',
'expat_config_moz.h',
'expat_config_rlbox.h',
'rlbox_expat.h',
'rlbox_expat_types.h',
]

LOCAL_INCLUDES += [
'!/security/rlbox',
]
28 changes: 0 additions & 28 deletions parser/expat/rlbox_expat.h

This file was deleted.

18 changes: 0 additions & 18 deletions parser/expat/rlbox_expat_types.h

This file was deleted.

5 changes: 0 additions & 5 deletions parser/htmlparser/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ EXPORTS += [
"nsParserBase.h",
"nsParserCIID.h",
"nsParserConstants.h",
"nsRLBoxExpatDriver.h",
"nsScannerString.h",
]

Expand Down Expand Up @@ -58,8 +57,4 @@ FINAL_LIBRARY = "xul"
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
CXXFLAGS += ["-Wno-error=shadow"]

LOCAL_INCLUDES += [
"!/security/rlbox",
]

REQUIRES_UNIFIED_BUILD = True
Loading

0 comments on commit 5b58543

Please sign in to comment.