Closed Bug 1313150 Opened 8 years ago Closed 7 years ago

Remove |weak| parameter from nsIMutableArray methods

Categories

(Core :: XPCOM, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox52 --- wontfix
firefox58 --- fixed

People

(Reporter: erahm, Assigned: emk)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently nsIMutableArray.{appendElement,insertElementAt,replaceElementAt} require a |weak| param. This is rarely, if at all, ever set to |true|. Lets make this param optional and have it default to false.
Mass wontfix for bugs affecting firefox 52.
Priority: -- → P3
Bug 1355216 already fixed about appendElement. But we could just remove the `weak` parameter entirely as Nathan said in that bug.
Summary: nsIMutableArray should default to |weak = false| when adding an element → Remove |weak| parameter from nsIMutableArray methods
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Comment on attachment 8920820 [details]
Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods.

https://reviewboard.mozilla.org/r/191808/#review197198

This makes sense to me.  ~150 calls and none of them ask for weak references?  Definitely a candidate for fixing up.

I see that you changed the lone JavaScript test we have for this...how confident are we that there are no other calls from JS that we have to fixup?
Attachment #8920820 - Flags: review?(nfroyd) → review+
Comment on attachment 8920820 [details]
Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods.

https://reviewboard.mozilla.org/r/191808/#review197198

I searched insertElementAt and replaceElementAt using dxr and replaced them.
This patch contains 4 js files.
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.

hg error in cmd: hg rebase -s 7a68de4eca81 -d e1e574000af4: rebasing 428870:7a68de4eca81 "Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj" (tip)
merging dom/base/nsDOMWindowUtils.cpp
merging security/manager/ssl/PKCS11ModuleDB.cpp
merging security/manager/ssl/nsNSSCertificateDB.cpp
merging security/manager/ssl/nsNSSIOLayer.cpp
merging security/manager/ssl/nsPKCS11Slot.cpp
merging xpfe/components/directory/nsDirectoryViewer.cpp
warning: conflicts while merging security/manager/ssl/nsPKCS11Slot.cpp! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Pushed by VYV03354@nifty.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/26c7003f1546
Remove |weak| parameter from nsIMutableArray methods. r=froydnj
https://hg.mozilla.org/mozilla-central/rev/26c7003f1546
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
And tons of uses in c-c (e.g. calls to appendElement seem to be all with false). Should be manageable for us.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: