diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 07:52:31 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 07:52:31 -0500 |
commit | c28c5b704fb3f3af6e7846abd73f63da1e35921f (patch) | |
tree | 4a1db30f0d64b6bae10e3f44bd320414c32c37ce /toolkit/components/viewsource/content/viewSourceUtils.js | |
parent | bb23af29afc0ef21b3ee2d37e593a07f6cd7e81d (diff) | |
download | UXP-c28c5b704fb3f3af6e7846abd73f63da1e35921f.tar UXP-c28c5b704fb3f3af6e7846abd73f63da1e35921f.tar.gz UXP-c28c5b704fb3f3af6e7846abd73f63da1e35921f.tar.lz UXP-c28c5b704fb3f3af6e7846abd73f63da1e35921f.tar.xz UXP-c28c5b704fb3f3af6e7846abd73f63da1e35921f.zip |
Issue N/A - Undeprecate viewSource.xul's original API
Diffstat (limited to 'toolkit/components/viewsource/content/viewSourceUtils.js')
-rw-r--r-- | toolkit/components/viewsource/content/viewSourceUtils.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/toolkit/components/viewsource/content/viewSourceUtils.js b/toolkit/components/viewsource/content/viewSourceUtils.js index 5752683e9..11b39ca54 100644 --- a/toolkit/components/viewsource/content/viewSourceUtils.js +++ b/toolkit/components/viewsource/content/viewSourceUtils.js @@ -15,8 +15,6 @@ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "ViewSourceBrowser", "resource://gre/modules/ViewSourceBrowser.jsm"); -XPCOMUtils.defineLazyModuleGetter(this, "Deprecated", - "resource://gre/modules/Deprecated.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "PrivateBrowsingUtils", "resource://gre/modules/PrivateBrowsingUtils.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "Services", @@ -51,12 +49,12 @@ var gViewSourceUtils = { * lineNumber (optional): * The line number to focus on once the source is loaded. * - * @param aPageDescriptor (deprecated, optional) + * @param aPageDescriptor (optional) * Accepted for compatibility reasons, but is otherwise ignored. - * @param aDocument (deprecated, optional) + * @param aDocument (optional) * The content document we would like to view the source of. This * function will throw if aDocument is a CPOW. - * @param aLineNumber (deprecated, optional) + * @param aLineNumber (optional) * The line number to focus on once the source is loaded. */ viewSource: function(aArgsOrURL, aPageDescriptor, aDocument, aLineNumber) @@ -213,12 +211,12 @@ var gViewSourceUtils = { * lineNumber (optional): * The line number to focus on once the source is loaded. * - * @param aPageDescriptor (deprecated, optional) + * @param aPageDescriptor (optional) * Accepted for compatibility reasons, but is otherwise ignored. - * @param aDocument (deprecated, optional) + * @param aDocument (optional) * The content document we would like to view the source of. This * function will throw if aDocument is a CPOW. - * @param aLineNumber (deprecated, optional) + * @param aLineNumber (optional) * The line number to focus on once the source is loaded. * @param aCallBack * A function accepting two arguments: @@ -231,10 +229,6 @@ var gViewSourceUtils = { aLineNumber, aCallBack) { let data; if (typeof aArgsOrURL == "string") { - Deprecated.warning("The arguments you're passing to " + - "openInExternalEditor are using an out-of-date API.", - "https://developer.mozilla.org/en-US/Add-ons/" + - "Code_snippets/View_Source_for_XUL_Applications"); if (Components.utils.isCrossProcessWrapper(aDocument)) { throw new Error("View Source cannot accept a CPOW as a document."); } |