Files
tubestation/toolkit/components/find/moz.build
Jan-Niklas Jaeschke 0339c0813d Bug 1897942 - Text Fragments: Replace spec find-string-in-range algorithm with nsFind. r=emilio
`nsFind` is updated in this patch to allow checking for word boundaries at the beginning and the end of the match pattern instead of only allowing to specify whether a whole word should be searched (ie., word boundary at start and end), or not (ie., no word boundary required at start and end).
This change does not affect the IDL interface and is only available from C++. It is tested by the scroll-to-text-fragment WPTs.

This patch also introduces some more verbose debug logging for the algorithm to find a text directive.

Differential Revision: https://phabricator.services.mozilla.com/D211029
2024-06-19 17:16:39 +00:00

34 lines
701 B
Python

# -*- 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 = ("Toolkit", "Find Toolbar")
XPIDL_SOURCES += [
"nsIFind.idl",
"nsIFindService.idl",
"nsIWebBrowserFind.idl",
]
EXPORTS += [
"nsFind.h",
]
XPIDL_MODULE = "mozfind"
UNIFIED_SOURCES += [
"nsFind.cpp",
"nsWebBrowserFind.cpp",
]
SOURCES += [
"nsFindService.cpp",
]
MOCHITEST_MANIFESTS += ["test/mochitest/mochitest.toml"]
FINAL_LIBRARY = "xul"