Skip to content

Commit

Permalink
fix: replace empty string namespaceURI with null (#1285)
Browse files Browse the repository at this point in the history
Temp fix before the CDP fix crrev.com/c/4856861 is landed

---------

Co-authored-by: Maksim Sadym <[email protected]>
  • Loading branch information
sadym-chromium and Maksim Sadym authored Sep 12, 2023
1 parent 5bbe93f commit 93fdf47
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 18 deletions.
4 changes: 4 additions & 0 deletions src/bidiMapper/domains/script/Realm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ export class Realm {
) {
bidiValue.shadowRoot = this.#deepSerializedToBiDi(bidiValue.shadowRoot);
}
// `namespaceURI` can be is either `null` or non-empty string.
if (bidiValue.namespaceURI === '') {
bidiValue.namespaceURI = null;
}
}

// Recursively update the nested values.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 93fdf47

Please sign in to comment.