Bug 1330536 part 8. Annotate Node.textContent as capable of OOM but not of throwing otherwise in the IDL. r=smaug
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 17 Jan 2017 23:52:29 -0500
changeset 374793 30e67d594b1b738683121a0dfebdd63f9f36add7
parent 374792 2f7a5d9d060a48ad7a73cb1983603ff4f1445adb
child 374794 129731bcc4354181ad1843277a966af974576b35
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1330536
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1330536 part 8. Annotate Node.textContent as capable of OOM but not of throwing otherwise in the IDL. r=smaug
dom/webidl/Node.webidl
--- a/dom/webidl/Node.webidl
+++ b/dom/webidl/Node.webidl
@@ -54,17 +54,17 @@ interface Node : EventTarget {
   readonly attribute Node? lastChild;
   [Pure]
   readonly attribute Node? previousSibling;
   [Pure]
   readonly attribute Node? nextSibling;
 
   [SetterThrows, Pure]
            attribute DOMString? nodeValue;
-  [Throws, Pure]
+  [SetterThrows, GetterCanOOM, Pure]
            attribute DOMString? textContent;
   [Throws]
   Node insertBefore(Node node, Node? child);
   [Throws]
   Node appendChild(Node node);
   [Throws]
   Node replaceChild(Node node, Node child);
   [Throws]