rm_success_codes draft rm_success_codes
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sat, 03 Nov 2018 05:34:53 +0900
changeset 1776366 2d4d022a4a7251bf6598f23ba2f0619676d0f656
parent 1776365 f76fa5354f01daceafe62ff949e363e0b1be9048
child 1910658 00b042a6d4b60b504a8bbfc1c03ea7f9c641a20e
push id319370
push userVYV03354@nifty.ne.jp
push dateSat, 01 Dec 2018 13:50:35 +0000
treeherdertry@2d4d022a4a72 [default view] [failures only]
milestone65.0a1
rm_success_codes
xpcom/base/ErrorList.py
--- a/xpcom/base/ErrorList.py
+++ b/xpcom/base/ErrorList.py
@@ -175,17 +175,17 @@ with modules["XPCOM"]:
     # with this exception.
     errors["NS_ERROR_ILLEGAL_DURING_SHUTDOWN"] = FAILURE(30)
     errors["NS_ERROR_SERVICE_NOT_AVAILABLE"] = FAILURE(22)
 
     errors["NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA"] = SUCCESS(1)
     # Used by nsCycleCollectionParticipant
     errors["NS_SUCCESS_INTERRUPTED_TRAVERSE"] = SUCCESS(2)
     # DEPRECATED
-    errors["NS_ERROR_SERVICE_IN_USE"] = SUCCESS(23)
+    #errors["NS_ERROR_SERVICE_IN_USE"] = SUCCESS(23)
 
 # =======================================================================
 # 2: NS_ERROR_MODULE_BASE
 # =======================================================================
 with modules["BASE"]:
     # I/O Errors
 
     #  Stream closed
@@ -463,17 +463,17 @@ with modules["PLUGINS"]:
     errors["NS_ERROR_PLUGIN_CLICKTOPLAY"] = FAILURE(1004)
 
 
 # =======================================================================
 # 8: NS_ERROR_MODULE_LAYOUT
 # =======================================================================
 with modules["LAYOUT"]:
     # Return code for nsITableLayout
-    errors["NS_TABLELAYOUT_CELL_NOT_FOUND"] = SUCCESS(0)
+    #errors["NS_TABLELAYOUT_CELL_NOT_FOUND"] = SUCCESS(0)
     # Return code for SheetLoadData::VerifySheetReadyToParse
     errors["NS_OK_PARSE_SHEET"] = SUCCESS(1)
     # Return code for nsFrame::GetNextPrevLineFromeBlockFrame
     errors["NS_POSITION_BEFORE_TABLE"] = SUCCESS(3)
 
 
 # =======================================================================
 # 9: NS_ERROR_MODULE_HTMLPARSER
@@ -497,63 +497,63 @@ with modules["HTMLPARSER"]:
     errors["NS_ERROR_HTMLPARSER_BADDTD"] = FAILURE(1013)
     errors["NS_ERROR_HTMLPARSER_BADCONTEXT"] = FAILURE(1014)
     errors["NS_ERROR_HTMLPARSER_STOPPARSING"] = FAILURE(1015)
     errors["NS_ERROR_HTMLPARSER_UNTERMINATEDSTRINGLITERAL"] = FAILURE(1016)
     errors["NS_ERROR_HTMLPARSER_HIERARCHYTOODEEP"] = FAILURE(1017)
     errors["NS_ERROR_HTMLPARSER_FAKE_ENDTAG"] = FAILURE(1018)
     errors["NS_ERROR_HTMLPARSER_INVALID_COMMENT"] = FAILURE(1019)
 
-    errors["NS_HTMLTOKENS_NOT_AN_ENTITY"] = SUCCESS(2000)
-    errors["NS_HTMLPARSER_VALID_META_CHARSET"] = SUCCESS(3000)
+    #errors["NS_HTMLTOKENS_NOT_AN_ENTITY"] = SUCCESS(2000)
+    #errors["NS_HTMLPARSER_VALID_META_CHARSET"] = SUCCESS(3000)
 
 
 # =======================================================================
 # 10: NS_ERROR_MODULE_RDF
 # =======================================================================
 with modules["RDF"]:
     # Returned from nsIRDFDataSource::Assert() and Unassert() if the assertion
     # (or unassertion was accepted by the datasource
     errors["NS_RDF_ASSERTION_ACCEPTED"] = errors["NS_OK"]
     # Returned from nsIRDFCursor::Advance() if the cursor has no more
     # elements to enumerate
-    errors["NS_RDF_CURSOR_EMPTY"] = SUCCESS(1)
+    #errors["NS_RDF_CURSOR_EMPTY"] = SUCCESS(1)
     # Returned from nsIRDFDataSource::GetSource() and GetTarget() if the
     # source/target has no value
     errors["NS_RDF_NO_VALUE"] = SUCCESS(2)
     # Returned from nsIRDFDataSource::Assert() and Unassert() if the assertion
     # (or unassertion) was rejected by the datasource; i.e., the datasource was
     # not willing to record the statement.
-    errors["NS_RDF_ASSERTION_REJECTED"] = SUCCESS(3)
+    #errors["NS_RDF_ASSERTION_REJECTED"] = SUCCESS(3)
     # Return this from rdfITripleVisitor to stop cycling
-    errors["NS_RDF_STOP_VISIT"] = SUCCESS(4)
+    #errors["NS_RDF_STOP_VISIT"] = SUCCESS(4)
 
 
 # =======================================================================
 # 11: NS_ERROR_MODULE_UCONV
 # =======================================================================
 with modules["UCONV"]:
     errors["NS_ERROR_UCONV_NOCONV"] = FAILURE(1)
     errors["NS_ERROR_UDEC_ILLEGALINPUT"] = FAILURE(14)
 
     errors["NS_OK_HAD_REPLACEMENTS"] = SUCCESS(3)
-    errors["NS_SUCCESS_USING_FALLBACK_LOCALE"] = SUCCESS(2)
-    errors["NS_OK_UDEC_EXACTLENGTH"] = SUCCESS(11)
+    #errors["NS_SUCCESS_USING_FALLBACK_LOCALE"] = SUCCESS(2)
+    #errors["NS_OK_UDEC_EXACTLENGTH"] = SUCCESS(11)
     errors["NS_OK_UDEC_MOREINPUT"] = SUCCESS(12)
-    errors["NS_OK_UDEC_MOREOUTPUT"] = SUCCESS(13)
-    errors["NS_OK_UDEC_NOBOMFOUND"] = SUCCESS(14)
-    errors["NS_OK_UENC_EXACTLENGTH"] = SUCCESS(33)
-    errors["NS_OK_UENC_MOREOUTPUT"] = SUCCESS(34)
+    #errors["NS_OK_UDEC_MOREOUTPUT"] = SUCCESS(13)
+    #errors["NS_OK_UDEC_NOBOMFOUND"] = SUCCESS(14)
+    #errors["NS_OK_UENC_EXACTLENGTH"] = SUCCESS(33)
+    #errors["NS_OK_UENC_MOREOUTPUT"] = SUCCESS(34)
     errors["NS_ERROR_UENC_NOMAPPING"] = SUCCESS(35)
-    errors["NS_OK_UENC_MOREINPUT"] = SUCCESS(36)
+    #errors["NS_OK_UENC_MOREINPUT"] = SUCCESS(36)
 
     # BEGIN DEPRECATED
-    errors["NS_EXACT_LENGTH"] = errors["NS_OK_UDEC_EXACTLENGTH"]
-    errors["NS_PARTIAL_MORE_INPUT"] = errors["NS_OK_UDEC_MOREINPUT"]
-    errors["NS_PARTIAL_MORE_OUTPUT"] = errors["NS_OK_UDEC_MOREOUTPUT"]
+    #errors["NS_EXACT_LENGTH"] = errors["NS_OK_UDEC_EXACTLENGTH"]
+    #errors["NS_PARTIAL_MORE_INPUT"] = errors["NS_OK_UDEC_MOREINPUT"]
+    #errors["NS_PARTIAL_MORE_OUTPUT"] = errors["NS_OK_UDEC_MOREOUTPUT"]
     errors["NS_ERROR_ILLEGAL_INPUT"] = errors["NS_ERROR_UDEC_ILLEGALINPUT"]
     # END DEPRECATED
 
 
 # =======================================================================
 # 13: NS_ERROR_MODULE_FILES
 # =======================================================================
 with modules["FILES"]:
@@ -675,17 +675,17 @@ with modules["DOM"]:
     # Only for legacy use by nsJSUtils.
     errors["NS_SUCCESS_DOM_SCRIPT_EVALUATION_THREW_UNCATCHABLE"] = SUCCESS(3)
 
 
 # =======================================================================
 # 15: NS_ERROR_MODULE_IMGLIB
 # =======================================================================
 with modules["IMGLIB"]:
-    errors["NS_IMAGELIB_SUCCESS_LOAD_FINISHED"] = SUCCESS(0)
+    #errors["NS_IMAGELIB_SUCCESS_LOAD_FINISHED"] = SUCCESS(0)
 
     errors["NS_IMAGELIB_ERROR_FAILURE"] = FAILURE(5)
     errors["NS_IMAGELIB_ERROR_NO_DECODER"] = FAILURE(6)
     errors["NS_IMAGELIB_ERROR_NOT_FINISHED"] = FAILURE(7)
     errors["NS_IMAGELIB_ERROR_NO_ENCODER"] = FAILURE(9)
 
 
 # =======================================================================
@@ -851,19 +851,19 @@ with modules["CONTENT"]:
     errors["NS_ERROR_XBL_BLOCKED"] = FAILURE(15)
     # Error code for when the content process crashed
     errors["NS_ERROR_CONTENT_CRASHED"] = FAILURE(16)
     # Error code for when the content process had a different buildID than the
     # parent
     errors["NS_ERROR_BUILDID_MISMATCH"] = FAILURE(17)
 
     # XXX this is not really used
-    errors["NS_HTML_STYLE_PROPERTY_NOT_THERE"] = SUCCESS(2)
-    errors["NS_CONTENT_BLOCKED"] = SUCCESS(8)
-    errors["NS_CONTENT_BLOCKED_SHOW_ALT"] = SUCCESS(9)
+    #errors["NS_HTML_STYLE_PROPERTY_NOT_THERE"] = SUCCESS(2)
+    #errors["NS_CONTENT_BLOCKED"] = SUCCESS(8)
+    #errors["NS_CONTENT_BLOCKED_SHOW_ALT"] = SUCCESS(9)
     errors["NS_PROPTABLE_PROP_OVERWRITTEN"] = SUCCESS(11)
     # Error codes for FindBroadcaster in XULDocument.cpp
     errors["NS_FINDBROADCASTER_NOT_FOUND"] = SUCCESS(12)
     errors["NS_FINDBROADCASTER_FOUND"] = SUCCESS(13)
 
 
 # =======================================================================
 # 27: NS_ERROR_MODULE_XSLT
@@ -1133,17 +1133,17 @@ with modules["GENERAL"]:
     errors["NS_ERROR_DOCUMENT_IS_PRINTMODE"] = FAILURE(2001)
 
     errors["NS_SUCCESS_DONT_FIXUP"] = SUCCESS(1)
     # This success code may be returned by nsIAppStartup::Run to indicate that
     # the application should be restarted.  This condition corresponds to the
     # case in which nsIAppStartup::Quit was called with the eRestart flag.
     errors["NS_SUCCESS_RESTART_APP"] = SUCCESS(1)
     errors["NS_SUCCESS_RESTART_APP_NOT_SAME_PROFILE"] = SUCCESS(3)
-    errors["NS_SUCCESS_UNORM_NOTFOUND"] = SUCCESS(17)
+    #errors["NS_SUCCESS_UNORM_NOTFOUND"] = SUCCESS(17)
 
     # a11y
     # raised when current pivot's position is needed but it's not in the tree
     errors["NS_ERROR_NOT_IN_TREE"] = FAILURE(38)
 
     # see nsTextEquivUtils
     errors["NS_OK_NO_NAME_CLAUSE_HANDLED"] = SUCCESS(34)