Closed
Bug 1312143
Opened 8 years ago
Closed 8 years ago
Delete toolkit/obsolete
Categories
(Toolkit :: General, defect)
Toolkit
General
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: erahm, Assigned: erahm)
References
Details
(Keywords: addon-compat)
Attachments
(1 file)
19.20 KB,
patch
|
kmag
:
review+
|
Details | Diff | Splinter Review |
This is an obsolete interface used by addons. Per discussion on IRC we'd like to just go ahead and delete this.
As a bonus there's some nsISupportsArray usage in the directory, so we'd be getting rid of usage of that as well.
Comment 1•8 years ago
|
||
These interfaces have been deprecated for a very long time, so it should be safe to remove them at this point. A lot of add-ons still use a few of them, particularly nsUserSettings.js and strres.js, but fortunately most of them are not compatible with recent (or any) versions of Firefox.
The rest can easily be updated to use better alternatives like Preferences.jsm and and <stringbundle> nodes.
Assignee | ||
Comment 2•8 years ago
|
||
This removes 'toolkit/obsolete'. I'm not sure the best reviewer here, Kris feel free to redirect.
MozReview-Commit-ID: JZfi0W2wqCL
Attachment #8803579 -
Flags: review?(kmaglione+bmo)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → erahm
Status: NEW → ASSIGNED
Comment 3•8 years ago
|
||
Comment on attachment 8803579 [details] [diff] [review]
Delete toolkit/obsolete
Review of attachment 8803579 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the lingering in-tree references fixed.
::: toolkit/obsolete/content/inlineSpellCheckUI.js
@@ -3,5 @@
> - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
> -
> -Components.utils.import("resource://gre/modules/InlineSpellChecker.jsm");
> -
> -var InlineSpellCheckerUI = new InlineSpellChecker();
This needs to be moved to browser.js, and then this file needs to be removed from global-scripts.inc, web-panels.xul, and import-browserjs-globals.js
::: toolkit/obsolete/jar.mn
@@ -3,5 @@
> -# file, You can obtain one at http://mozilla.org/MPL/2.0/.
> -
> -toolkit.jar:
> - content/global/globalOverlay.xul (content/globalOverlay.xul)
> -* content/global/dialogOverlay.xul (content/dialogOverlay.xul)
It looks like dialogOverlay.xul is still used 3 places. cookieAcceptDialog.xul is dead code at this point, so it probably doesn't matter. printPreviewProgress.xul and printProgress.xul should just need the overlay removed and the top-level <window> changed to <dialog>.
Attachment #8803579 -
Flags: review?(kmaglione+bmo) → review+
Assignee | ||
Comment 4•8 years ago
|
||
Thanks for the quick review!
(In reply to Kris Maglione [:kmag] from comment #3)
> Comment on attachment 8803579 [details] [diff] [review]
> Delete toolkit/obsolete
>
> Review of attachment 8803579 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=me with the lingering in-tree references fixed.
>
> ::: toolkit/obsolete/content/inlineSpellCheckUI.js
> @@ -3,5 @@
> > - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
> > -
> > -Components.utils.import("resource://gre/modules/InlineSpellChecker.jsm");
> > -
> > -var InlineSpellCheckerUI = new InlineSpellChecker();
>
> This needs to be moved to browser.js, and then this file needs to be removed
> from global-scripts.inc, web-panels.xul, and import-browserjs-globals.js
I'm assuming just the browser.js under browser/base/content, right?
> ::: toolkit/obsolete/jar.mn
> @@ -3,5 @@
> > -# file, You can obtain one at http://mozilla.org/MPL/2.0/.
> > -
> > -toolkit.jar:
> > - content/global/globalOverlay.xul (content/globalOverlay.xul)
> > -* content/global/dialogOverlay.xul (content/dialogOverlay.xul)
>
> It looks like dialogOverlay.xul is still used 3 places.
> cookieAcceptDialog.xul is dead code at this point, so it probably doesn't
> matter. printPreviewProgress.xul and printProgress.xul should just need the
> overlay removed and the top-level <window> changed to <dialog>.
Will do.
Assignee | ||
Comment 5•8 years ago
|
||
Assignee | ||
Comment 6•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2dca0ba58df6abd5c5f5b260644b3b56f6e7e69b
Bug 1312143 - Delete toolkit/obsolete. r=John-Galt
Comment 7•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Comment 8•8 years ago
|
||
I wonder if we have data on how many add-ons still use nsPreferences (from chrome://global/content/nsUserSettings.js).
I noticed an old (badly written) add-on misbehaving, and figured out it was because of nsPreferences being undefined.
Comment 9•8 years ago
|
||
There are a fair number on AMO. It's hard to say exactly how many, though, since most of them don't support remotely recent versions of Firefox, and many of them don't support Firefox at all.
Either way, these scripts have been deprecated for a very long time. It's time for add-ons that are still being maintained to stop using them.
You need to log in
before you can comment on or make changes to this bug.
Description
•