зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f5a6348688
Коммит
55c0cb1dad
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче