Bug 1888756, part 4 - Text Fragments: Add more logging to parsing/stripping the fragment directive. r=dom-core,edgar

This commit is a prerequisite for part 5 of this patch set
and does not introduce any changes in behavior.

Differential Revision: https://phabricator.services.mozilla.com/D212819
This commit is contained in:
Jan-Niklas Jaeschke
2024-06-20 10:24:27 +00:00
parent ae6c1d60c0
commit 1630071ad7
3 changed files with 95 additions and 12 deletions

View File

@@ -8505,7 +8505,7 @@ bool nsDocShell::IsSameDocumentNavigation(nsDocShellLoadState* aLoadState,
// directives need to be stored for further use.
nsTArray<TextDirective> textDirectives;
if (FragmentDirective::ParseAndRemoveFragmentDirectiveFromFragmentString(
aState.mNewHash, &textDirectives)) {
aState.mNewHash, &textDirectives, aLoadState->URI())) {
if (Document* doc = GetDocument()) {
doc->FragmentDirective()->SetTextDirectives(std::move(textDirectives));
}