security/sandbox/common/moz.build
author Masayuki Nakano <masayuki@d-toybox.com>
Thu, 02 Feb 2023 05:09:15 +0000
changeset 651452 20512741e7b60f3f6791002d8311d681f9242e68
parent 581798 735298219a0292ca798108c640d9623e18431b90
permissions -rw-r--r--
Bug 1812170 - Make `HTMLEditor::ClearStyleAt` should return `pointToPutCaret` if next node of first split is not split r=m_kato The new path added in bug 1807829 hits the odd result case of `ClearStyleAt`. `pointToPutCaret` may be updated if the preceding split occurs. Therefore, it should be returned if it does not split next nodes after the first split instead of returning unset point (because of not splitting the point, `unwrappedSplitNodeResult.AtSplitPoint` may return unset point, therefore, it may return unset point in the case). Additionally, I forgot to split delete `SplitNodeResult::mCaretPoint` in bug 1792654, and it causes `SplitNodeDeepWithTransaction` returns unset caret point. This patch fixes this bug too. Differential Revision: https://phabricator.services.mozilla.com/D168179

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

with Files("**"):
    BUG_COMPONENT = ("Core", "Security: Process Sandboxing")

UNIFIED_SOURCES += [
    "SandboxSettings.cpp",
]

XPCOM_MANIFESTS += [
    "components.conf",
]

XPIDL_SOURCES += [
    "mozISandboxSettings.idl",
]

XPIDL_MODULE = "sandbox"

if CONFIG["MOZ_SANDBOX"] and CONFIG["MOZ_DEBUG"] and CONFIG["ENABLE_TESTS"]:
    UNIFIED_SOURCES += [
        "test/SandboxTest.cpp",
        "test/SandboxTestingChild.cpp",
        "test/SandboxTestingParent.cpp",
    ]

    EXPORTS.mozilla += [
        "test/SandboxTestingChild.h",
        "test/SandboxTestingParent.h",
    ]

    IPDL_SOURCES += [
        "test/PSandboxTesting.ipdl",
    ]

    XPIDL_SOURCES += [
        "test/mozISandboxTest.idl",
    ]

    LOCAL_INCLUDES += [
        "/netwerk/base",
    ]

include("/ipc/chromium/chromium-config.mozbuild")

FINAL_LIBRARY = "xul"

EXPORTS.mozilla += [
    "SandboxSettings.h",
]