desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #108484
[Bug 584632]
(In reply to :Aryeh Gregor from comment #77)
> For the record, from black-box testing of WebKit a few years ago, it looked
> like it normalized the selection after every change. Even if you called
> .addRange(), it copied the range and then stuck the selection endpoints
> inside a nearby text node if available, etc. I think it's taking things too
> far to change script-specified selections
Yeah, I think that's a bit too aggressive, and probably would cause
authors to have to do insane hacks if they actually want to put the
selection where the engine doesn't think is appropriate.
> but the right way to do this is
> probably to have some sort of helper method in Selection like
> NormalizePoint(nsINode*, int32_t) and call it before every user-initiated
> selection change. We might want to disallow other types of user-created
> selections from occurring in the future, although my brain is too rusty to
> supply any.
Well, most of the code handling selection changes actually lives outside
Selection. ;-) Depending on where we need to modify the behavior,
having this kind of helper may or may not help... See Jorg's patch for
example, I think the way he modifies the existing logic is cleaner than
going with the current logic and then fixing it up elsewhere.
> Do we want to allow a selection like <b>foo</b>{}<i>bar</i>, with the
> selection collapsed in between the <b> and <i>? IIRC, WebKit in my testing
> forced this to be <b>foo[]</b><i>bar</i> (always making it on the previous
> text node). A ten-second test in WordPad suggests this is the right thing
> to do.
Yes, that makes sense to me. Follow-up bug perhaps?
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/584632
Title:
composer changes font mid email
Status in Mozilla Thunderbird Mail and News:
Confirmed
Status in thunderbird package in Ubuntu:
Confirmed
Bug description:
Binary package hint: thunderbird
As I'm typing my emails in Thunderbird, I can see what appears to be a
font size change on screen, normally in the second line of text. The
second line appear smaller than the first. It's barely perceptible, so
half them time I think I am imagining it.
Well, I've started Bccing to myself to check, and the emails I am
receiving from myself are not only a different size, they're also a
different font. Composer starts in some default serif, and by the
second line is sans. I'd bee glad to email someone viz thunderbird,
and also send along a screenshot of how it looks while I am typing.
Thanks.
To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/584632/+subscriptions