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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: sean, Assigned: sean)
Details
Attachments
(4 files)
2.81 KB,
patch
|
Details | Diff | Splinter Review | |
2.82 KB,
patch
|
Details | Diff | Splinter Review | |
3.75 KB,
patch
|
Details | Diff | Splinter Review | |
3.96 KB,
patch
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
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.
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
Tested patch on Win2k with fresh pull from the tip.
Peter, can you please review?
Keywords: review
Comment 5•24 years ago
|
||
not my area. ->xpapps.
Assignee: trudelle → pchen
Component: XP Toolkit/Widgets → XP Apps
QA Contact: jrgm → sairuh
Assignee | ||
Comment 6•24 years ago
|
||
Paul, can you please either review the attached patch or let me know who should
review it?
Assignee | ||
Comment 7•24 years ago
|
||
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
Comment 8•24 years ago
|
||
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 );
Updated•24 years ago
|
QA Contact: sairuh → tpreston
Assignee | ||
Comment 9•24 years ago
|
||
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.
Assignee | ||
Comment 10•24 years ago
|
||
And I think I see your point - the linebreak shouldn't come from the url but be
written explicitly if we wanted it.
Comment 11•24 years ago
|
||
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.
Assignee | ||
Comment 12•24 years ago
|
||
new patch in the works...
Assignee | ||
Comment 13•24 years ago
|
||
Comment 14•24 years ago
|
||
looks good, r=pink.
Assignee | ||
Comment 15•24 years ago
|
||
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
Assignee | ||
Comment 16•24 years ago
|
||
Assignee | ||
Comment 17•24 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•