diff --git a/devtools/server/actors/network-monitor/utils/network-utils.js b/devtools/server/actors/network-monitor/utils/network-utils.js index c8151df7527c..e21105a32df0 100644 --- a/devtools/server/actors/network-monitor/utils/network-utils.js +++ b/devtools/server/actors/network-monitor/utils/network-utils.js @@ -464,7 +464,6 @@ const ErrorCodes = { NS_ERROR_DUPLICATE_HANDLE: 0x80610002, NS_ERROR_BRIDGE_OPEN_PARENT: 0x80610003, NS_ERROR_BRIDGE_OPEN_CHILD: 0x80610004, - NS_ERROR_DOM_SVG_WRONG_TYPE_ERR: 0x80620000, NS_ERROR_STORAGE_BUSY: 0x80630001, NS_ERROR_STORAGE_IOERR: 0x80630002, NS_ERROR_STORAGE_CONSTRAINT: 0x80630003, diff --git a/dom/base/domerr.msg b/dom/base/domerr.msg index 60cb41d02e61..b4f51ac2afd0 100644 --- a/dom/base/domerr.msg +++ b/dom/base/domerr.msg @@ -40,10 +40,6 @@ DOM4_MSG_DEF(UnknownError, "The operation failed for an unknown transient reason DOM4_MSG_DEF(DataError, "Data provided to an operation does not meet requirements", NS_ERROR_DOM_DATA_ERR) DOM4_MSG_DEF(OperationError, "The operation failed for an operation-specific reason", NS_ERROR_DOM_OPERATION_ERR) -/* SVG DOM errors from http://www.w3.org/TR/SVG11/svgdom.html */ - -DOM4_MSG_DEF(TypeError, "Unknown or invalid type", NS_ERROR_DOM_SVG_WRONG_TYPE_ERR) - /* XPath errors from http://www.w3.org/TR/DOM-Level-3-XPath/ */ DOM4_MSG_DEF(SyntaxError, "The expression is not a legal expression.", NS_ERROR_DOM_INVALID_EXPRESSION_ERR) diff --git a/dom/svg/SVGMarkerElement.cpp b/dom/svg/SVGMarkerElement.cpp index 1057d02baac5..4cee3d5533df 100644 --- a/dom/svg/SVGMarkerElement.cpp +++ b/dom/svg/SVGMarkerElement.cpp @@ -113,7 +113,7 @@ void SVGMarkerElement::SetOrientToAuto() { void SVGMarkerElement::SetOrientToAngle(DOMSVGAngle& angle, ErrorResult& rv) { float f = angle.Value(); if (!IsFinite(f)) { - rv.Throw(NS_ERROR_DOM_SVG_WRONG_TYPE_ERR); + rv.ThrowTypeError("Unknown or invalid type"); return; } mOrient.SetBaseValue(f, angle.UnitType(), this, true); diff --git a/xpcom/base/ErrorList.py b/xpcom/base/ErrorList.py index 99ed72364e53..e455c26e9d85 100755 --- a/xpcom/base/ErrorList.py +++ b/xpcom/base/ErrorList.py @@ -1046,14 +1046,6 @@ with modules["IPC"]: errors["NS_ERROR_BRIDGE_OPEN_CHILD"] = FAILURE(4) -# ======================================================================= -# 29: NS_ERROR_MODULE_SVG -# ======================================================================= -with modules["SVG"]: - # SVG DOM error codes from http://www.w3.org/TR/SVG11/svgdom.html - errors["NS_ERROR_DOM_SVG_WRONG_TYPE_ERR"] = FAILURE(0) - - # ======================================================================= # 30: NS_ERROR_MODULE_STORAGE # =======================================================================