Closed
Bug 193716
Opened 22 years ago
Closed 22 years ago
unlink doesn't work correctly (cmd_removeLinks)
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
People
(Reporter: kaldari, Assigned: Brade)
References
()
Details
(Whiteboard: midas [fixed1.3])
Attachments
(1 file, 2 obsolete files)
1.49 KB,
patch
|
timeless
:
review+
kinmoz
:
superreview+
blizzard
:
approval1.3+
|
Details | Diff | Splinter Review |
The unlink command doesn't work and throws the following JavaScript error:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
http://www.angelblade.com/midas/editor.html :: tbclick :: line 194" data: no]
Assignee | ||
Comment 1•22 years ago
|
||
The url in the original comment is not a valid url (at least for me). Demo2
seems to have an attempt to demonstrate the problem but there seems to be JS
problems which need to be fixed before someone can see the ExecCommand failure.
Sorry, didn't quite have a testcase ready. Try this...
http://www.angelblade.com/midas/tester.html
BTW, in case it's not clear, the unlink button is the one with the breaking
chain link in the top toolbar.
Assignee | ||
Comment 4•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Attachment #114706 -
Attachment description: register command → register remove links command
Attachment #114706 -
Flags: superreview?(sfraser)
Attachment #114706 -
Flags: review?(mkaply)
Updated•22 years ago
|
Attachment #114706 -
Flags: review?(mkaply) → review+
Updated•22 years ago
|
Attachment #114706 -
Flags: superreview?(sfraser) → superreview+
Comment 5•22 years ago
|
||
Comment on attachment 114706 [details] [diff] [review]
register remove links command
We'd REALLY like this for 1.3. We are finalizing the midas API and this one is
hanging out.
Thanks
Easy one line change.
Attachment #114706 -
Flags: approval1.3?
Comment 6•22 years ago
|
||
Comment on attachment 114706 [details] [diff] [review]
register remove links command
a=asa (on behalf of drivers) for checkin to 1.3.
Attachment #114706 -
Flags: approval1.3? → approval1.3+
Assignee | ||
Comment 7•22 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
The behavior of the unlink command is now as follows:
The first time you call it, it puts <href></href> tags around the link but
doesn't remove the anchor tags.
If you call it again, it removes the href and anchor tags.
Here's how I'm calling it:
execCommand(unlink, false, null)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•22 years ago
|
Flags: blocking1.3? → blocking1.3-
Perhaps the registration should be:
NS_REGISTER_STYLE_COMMAND(nsStyleUpdatingCommand, "cmd_removeLinks", "a");
rather than:
NS_REGISTER_STYLE_COMMAND(nsStyleUpdatingCommand, "cmd_removeLinks", "href");
Just a guess really :)
Summary: midas - unlink doesn't work → midas - unlink doesn't work correctly (cmd_removeLinks)
Assignee | ||
Comment 10•22 years ago
|
||
*** Bug 195267 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 11•22 years ago
|
||
Attachment #114706 -
Attachment is obsolete: true
Assignee | ||
Comment 12•22 years ago
|
||
Attachment #116098 -
Attachment is obsolete: true
Updated•22 years ago
|
Keywords: nsbeta1
OS: MacOS X → All
QA Contact: sujay → sairuh
Hardware: Macintosh → All
Summary: midas - unlink doesn't work correctly (cmd_removeLinks) → unlink doesn't work correctly (cmd_removeLinks)
Attachment #116101 -
Flags: review+
Comment 13•22 years ago
|
||
Comment on attachment 116101 [details] [diff] [review]
more efficient version of previous patch
sr=kin@netscape.com
I know you changed the href/name comment. I would probably move it under the
|if| href and name block, but it's up to you.
Does doTagRemoval need to be initialized? Or does the GetBooleanValue() call
guarantee initialization?
Attachment #116101 -
Flags: superreview+
Assignee | ||
Comment 14•22 years ago
|
||
fix checked in
Status: REOPENED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•22 years ago
|
||
Comment on attachment 116101 [details] [diff] [review]
more efficient version of previous patch
seeking approval to land this fix for 1.3 (if it's not too late); I'm seeing
dupes of bugs filed on it already...
it affects composer as well as midas
Attachment #116101 -
Flags: approval1.3?
Reporter | ||
Comment 16•22 years ago
|
||
This patch may be causing a problem with the more important createlink command.
I'll post a better explaination in a second...
Reporter | ||
Comment 17•22 years ago
|
||
When I was testing out the latest Nightly in Windows, it seems that when you
create a link now with the createlink command, it doesn't show up as a link
until you switch to source mode and back or apply some kind of formatting to the
link.
Steps to reproduce:
1. Go to http://www.angelblade.com/midas/tester.html with the latest Nightly
2. Select some text
3. Click the link button
What should happen: The text turns blue and appears underlined
What actually happens: Nothing (at least visibly)
If you swicth to source mode you can see that an anchor tag was actually
created, and if you switch back it will appear blue and underlined. Also if you
apply some kind of formatting like bold or italic to the link it will suddenly
turn blue and get an underline. It seems to work fine in the 1.3b release.
Reporter | ||
Comment 18•22 years ago
|
||
BTW, I'm not sure this patch is actually to blame for the above problem, but I
wanted to have someone check on it before the patch goes into 1.3. Also, I
forgot to mention that this patch does actually fix the unlink command for me.
Assignee | ||
Comment 19•22 years ago
|
||
I'm sure there is a different bug floating around for the links not being
underlined... that bug has been around for a few days and isn't related to this
bug at all. (Sorry I don't have the bug # handy nor time to query for it.)
Reporter | ||
Comment 20•22 years ago
|
||
The link bug appears to be present in the 03-03 trunk build as well, so I'm
guessing this patch isn't to blame after all.
Reporter | ||
Comment 21•22 years ago
|
||
I've filed a new bug on the createlink issue: bug 195948
I don't think this patch has anything to do with it. I recommend approving this
patch for 1.3 as it does fix unlink.
Comment on attachment 116101 [details] [diff] [review]
more efficient version of previous patch
Does the code modified by this patch affect anything other than Midas? (If so,
what?)
Updated•22 years ago
|
Flags: blocking1.3- → blocking1.3?
Assignee | ||
Comment 23•22 years ago
|
||
Composer and Mail compose are broken on 1.3 and also fixed by this patch.
Comment 24•22 years ago
|
||
Comment on attachment 116101 [details] [diff] [review]
more efficient version of previous patch
a=blizzard for the 1.3 branch
Attachment #116101 -
Flags: approval1.3? → approval1.3+
Comment 25•22 years ago
|
||
Fix checked into branch.
Assignee | ||
Comment 26•22 years ago
|
||
mkaply checked in the patch on the 1.3 branch earlier today
marking bug as verified for trunk based on comments from Ryan and others; if
someone could comment here that 1.3 is now also fixed, that'd be great.
Status: RESOLVED → VERIFIED
Whiteboard: midas → midas [fixed 1.3]
Reporter | ||
Comment 27•22 years ago
|
||
I have verified that unlink is fixed in 1.3 now. Thanks!
Updated•22 years ago
|
Flags: blocking1.3?
Updated•22 years ago
|
Whiteboard: midas [fixed 1.3] → midas [fixed1.3]
You need to log in
before you can comment on or make changes to this bug.
Description
•