Closed Bug 73349 Opened 24 years ago Closed 24 years ago

internet shortcuts are not created properly

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: sean, Assigned: sean)

Details

Attachments

(4 files)

Ever since this change to navigatorDD.js: http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&file=navigatorDD.js&root=/cvsroot&subdir=mozilla/xpfe/browser/resources/content&command=DIFF_FRAMESET&rev1=1.52&rev2=1.53 http://bonsai.mozilla.org/cvslog.cgi?file=mozilla/xpfe/browser/resources/content/navigatorDD.js internet shortcuts have not been created properly. Shortcuts are created with a the first word missing from the title. That word appears in the shortcut file on the line after the url line. Will attach possible fix.
I believe this also prevents shortcuts from being created if the title of the document does not contain a space. Will test patch on Monday.
Attached patch update patchSplinter Review
Tested patch on Win2k with fresh pull from the tip. Peter, can you please review?
Keywords: review
not my area. ->xpapps.
Assignee: trudelle → pchen
Component: XP Toolkit/Widgets → XP Apps
QA Contact: jrgm → sairuh
Paul, can you please either review the attached patch or let me know who should review it?
reassigning to self. chnging component to xpapps:dnd cc'ing Mike since he's had his hands in nsDataObj.cpp. Mike, can you please review the attached patch?
Assignee: pchen → sean
Component: XP Apps → XP Apps: Drag and Drop
why are we truncating the url at |lineIndex + 1|? wouldn't that then include the linefeed in the url? + if ( lineIndex > 0 ) { + outURL.Truncate ( lineIndex+1 );
QA Contact: sairuh → tpreston
Yes, it does include the newline but it's written out as a linebreak, not as part of the url. I opened up an internet shortcut created by IE and it had a linebreak after the last line, so I explicitly made that change.
And I think I see your point - the linebreak shouldn't come from the url but be written explicitly if we wanted it.
correct ;) i'd prefer to have it explicitly be put into the file, thus better documenting the file format and not relying on the magical, mystical \n coming from the URL.
new patch in the works...
looks good, r=pink.
Chris Blizzard wrote (and copied to reviewers@mozilla.org): Can't you use something like PR_sprintf() instead of just sprintf()? Other than that looks good. sr=blizzard --Chris
checked in -> Fixed Checking in nsDataObj.cpp; /cvsroot/mozilla/widget/src/windows/nsDataObj.cpp,v <-- nsDataObj.cpp new revision: 1.38; previous revision: 1.37 done
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified fixed w2k build 2001081003
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: