Closed Bug 102413 Opened 23 years ago Closed 23 years ago

nsIWebShell's GetURL using const PRUnichar**

Categories

(Core :: DOM: Navigation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: adamlock)

References

Details

Attachments

(2 files)

Should not be const

Needs to be fixed so we can use getter_Copies with an XPIDLString
Blocks: 102411
Keywords: review
Looks good, except that in mozilla/webshell/tests/viewer/nsBrowserWindow.cpp
near where you made the change there you're leaking the PRUnichar* you're
getting. Not necessarily part of this patch, but you may want to fix that while
you're there (using nsXPIDLString and getter_Copies).

r=jag
Attachment #52499 - Flags: review+
*** Bug 102410 has been marked as a duplicate of this bug. ***
Comment on attachment 52507 [details] [diff] [review]
Second patch with getter_Copies

r=jag

I like this :-)
Attachment #52507 - Flags: review+
(Of course, I could point out that one could save that string copy by making
ViewSource take const nsAString& instead of nsString, but that is really a
different bug altogether, so I won't ;-) ).
Comment on attachment 52507 [details] [diff] [review]
Second patch with getter_Copies

sr=rpotts@netscape.com
Attachment #52507 - Flags: superreview+
Fix is checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: