зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1629604 - Fixed phrase not found in visible <script> and added a test for visible <script>. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D75824
This commit is contained in:
Родитель
bc973c5022
Коммит
6f2e45cfda
|
@ -92,6 +92,11 @@ let runTests = t.step_func_done(function() {
|
|||
</div>
|
||||
`);
|
||||
|
||||
testFindable(true, "foobar", `
|
||||
<body><script style="display: block;">foobar</` + `script></body>
|
||||
`);
|
||||
|
||||
|
||||
testFindable(true, "Shadow text", function(document) {
|
||||
let div = document.createElement("div");
|
||||
div.attachShadow({ mode: "open" }).innerHTML = `
|
||||
|
|
|
@ -175,8 +175,7 @@ static bool SkipNode(const nsIContent* aContent) {
|
|||
const nsIContent* content = aContent;
|
||||
while (content) {
|
||||
if (!IsDisplayedNode(content) || content->IsComment() ||
|
||||
content->IsAnyOfHTMLElements(nsGkAtoms::script, nsGkAtoms::noframes,
|
||||
nsGkAtoms::select)) {
|
||||
content->IsAnyOfHTMLElements(nsGkAtoms::select)) {
|
||||
DEBUG_FIND_PRINTF("Skipping node: ");
|
||||
DumpNode(content);
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче