Bug 1833879 - Add a UseCounter for DOMParser.parseFromString and Range.createContextualFragment;r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D178457
This commit is contained in:
Brian Grinstead 2023-05-23 20:45:17 +00:00
Родитель f5a6348688
Коммит 55c0cb1dad
3 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -366,6 +366,10 @@ method Window.WritableStream
// Gecko-specific command usage of `Document.execCommand`
custom DocumentExecCommandContentReadOnly calls execCommand with contentReadOnly
// Methods used in frameworks to create DOM from strings
method DOMParser.parseFromString
method Range.createContextualFragment
// Gecko-specific command usage of `Document.queryCommandState` or `Document.queryCommandValue`
custom DocumentQueryCommandStateOrValueContentReadOnly calls queryCommandState or queryCommandValue with contentReadOnly
custom DocumentQueryCommandStateOrValueInsertBrOnReturn calls queryCommandState or queryCommandValue with insertBrOnReturn

Просмотреть файл

@ -23,7 +23,7 @@ interface DOMParser {
[Throws]
constructor();
[NewObject, Throws]
[NewObject, Throws, UseCounter]
Document parseFromString(DOMString str, SupportedType type);
[NewObject, ChromeOnly, Throws]

Просмотреть файл

@ -75,7 +75,7 @@ interface Range : AbstractRange {
// http://domparsing.spec.whatwg.org/#dom-range-createcontextualfragment
partial interface Range {
[CEReactions, Throws]
[CEReactions, Throws, UseCounter]
DocumentFragment createContextualFragment(DOMString fragment);
};