Closed Bug 916235 Opened 11 years ago Closed 7 years ago

Remove obsolete (and now unused) strres.js from the tree

Categories

(Toolkit Graveyard :: Build Config, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1312143
Future

People

(Reporter: sgautherie, Unassigned, Mentored)

References

(Depends on 1 open bug, )

Details

(Keywords: addon-compat, Whiteboard: [Blocked by bug 917024 part to be done first] [good first bug][language=none])

Attachments

(1 file)

1) Remove the following line, to stop packaging strres.js.

/mozilla/toolkit/obsolete/jar.mn
    * line 12 -- + content/global/strres.js (content/strres.js)

2) Remove actual strres.js file in Hg.

http://mxr.mozilla.org/comm-central/source/mozilla/toolkit/obsolete/content/strres.js
Not really sure who should review this, so please redirect as necessary...
Attachment #804992 - Flags: review?(dtownsend+bugmail)
Attachment #804992 - Flags: feedback+
I see quite a surprising number of add-ons making use of this script including some recent ones. There isn't a lot to be gained by removing this except for general cleanup wins so that doesn't seem worth it if we're going to break add-ons needlessly. Jorge what do you think? Would you rather we kept this around for now?
Flags: needinfo?(jorge)
Fwiw, I would expect files that live in /toolkit/obsolete/ to have been deprecated (a long time ago), so removing them now should be a matter of announcing it officially.
If that's not the case, maybe it's time to start planning for that.
Wow, that's a lot of add-ons using this, and just for a little shortcut...

(In reply to Serge Gautherie (:sgautherie) from comment #3)
> Fwiw, I would expect files that live in /toolkit/obsolete/ to have been
> deprecated (a long time ago), so removing them now should be a matter of
> announcing it officially.

Well, all add-on uses I see just load chrome://global/content/strres.js, so they don't know that the file is being loaded from an "obsolete" path.

I think that given the wide usage of this script, we should begin by adding a warning in the console for whenever this file is loaded. We should leave that in for a couple of releases and then finish this. If this is too much work for this file, we might as well leave it be and save us the compatibility problem.
Flags: needinfo?(jorge)
Keywords: addon-compat
(In reply to Jorge Villalobos [:jorgev] from comment #4)
> (In reply to Serge Gautherie (:sgautherie) from comment #3)
> > Fwiw, I would expect files that live in /toolkit/obsolete/ to have been
> > deprecated (a long time ago), so removing them now should be a matter of
> > announcing it officially.
> 
> Well, all add-on uses I see just load chrome://global/content/strres.js, so
> they don't know that the file is being loaded from an "obsolete" path.
> 
> I think that given the wide usage of this script, we should begin by adding
> a warning in the console for whenever this file is loaded. We should leave
> that in for a couple of releases and then finish this. If this is too much
> work for this file, we might as well leave it be and save us the
> compatibility problem.

We should probably do this for all the files in the obsolete path, some of which are unfortunately still in use in the tree. I filed bug 917024 so before we could take this patch we would have to resolve that and let it sit in the tree for a few releases.
Depends on: 917024
(In reply to Dave Townsend (:Mossop) from comment #5)
> I filed bug 917024 so
> before we could take this patch we would have to resolve that and let it sit
> in the tree for a few releases.

Adding a warning now (there) then removing the file (here) a bit later is fine wrt this bug :-)
Assignee: nobody → cykesiopka.bmo
Status: NEW → ASSIGNED
No longer depends on: 56680
Comment on attachment 804992 [details] [diff] [review]
bug916235_v1.patch

The code changes here are good but we can't land them till the other work is done.
Attachment #804992 - Flags: review?(dtownsend+bugmail) → review+
Whiteboard: [good first bug][mentor=sgautherie][language=none] → [Blocked by bug 917024 part to be done first] [good first bug][mentor=sgautherie][language=none]
Target Milestone: --- → Future
Mentor: bugzillamozillaorg_serge_20140323
Whiteboard: [Blocked by bug 917024 part to be done first] [good first bug][mentor=sgautherie][language=none] → [Blocked by bug 917024 part to be done first] [good first bug][language=none]
Unassigning myself because I don't think I'll have the time to push the prerequisite Bug 917024 to completion, since my focus is currently in other areas of code.
Assignee: cykesiopka.bmo → nobody
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: