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 377077 30e67d594b1b738683121a0dfebdd63f9f36add7
parent 377076 2f7a5d9d060a48ad7a73cb1983603ff4f1445adb
child 377078 129731bcc4354181ad1843277a966af974576b35
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [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]