Closed
Bug 403217
Opened 18 years ago
Closed 17 years ago
Drag & drop Russian text to the search/location bar is broken
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: egor.pelevin, Assigned: enndeakin)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
1.15 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007110805 Minefield/3.0b2pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007110805 Minefield/3.0b2pre
Cannot drag & drop Russian (non-acsii?) text to the search and location bar
Reproducible: Always
Steps to Reproduce:
Drag & drop "история" ("history" in Russian) to the search bar
Actual Results:
Google search page for "история"
Expected Results:
Google search page for "история"
I see the same problem with the location bar
| Reporter | ||
Comment 1•18 years ago
|
||
> Cannot drag & drop Russian (non-acsii?) text to the search and location bar
Bad wording. I can drag & drop, but search query encoding is broken
Version: unspecified → Trunk
Comment 2•18 years ago
|
||
This looks similar to bug 267364, though Neil tells me a different codepath is involved.
Component: Search → Drag and Drop
Product: Firefox → Core
QA Contact: search → drag-drop
| Reporter | ||
Comment 3•18 years ago
|
||
Works fine in Fx 2.0.0.9
Comment 4•18 years ago
|
||
Given that it used to work OK, do you think you could go through "trunk" builds at http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/ and find a regression range?
Keywords: qawanted
| Reporter | ||
Comment 5•18 years ago
|
||
Works in 2007-09-27-05-trunk
Fails in 2007-09-28-04-trunk
Bug #292607 maybe?
Comment 6•18 years ago
|
||
Sure looks like it.
Updated•18 years ago
|
Updated•18 years ago
|
Flags: blocking1.9?
Comment 7•18 years ago
|
||
Neil, what's going on here?
Comment 8•18 years ago
|
||
nsCopySupport :: HTMLCopy doesn't use any serialisation flags (don't ask me how or if it works with links). However for whatever reason nsTransferableFactory :: SerializeNodeOrSelection is still using absolute links and encoded entities. Unfortunately the HTML format converter can't cope with entities.
Updated•18 years ago
|
Flags: blocking1.9? → blocking1.9+
Comment 9•18 years ago
|
||
I tried twiddling the bits in the debugger and it works without any flags.
I can now also drag-n-drop into Word (which was broken before bug 292607).
I tested this with the preformatted space test case, a relative link (which became absolute when dropped into Word or Composer) and the Russian text.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Comment 10•18 years ago
|
||
But the old code used these flags... What's changed?
Comment 11•18 years ago
|
||
I don't know, but my 6 month old XPFE build won't drag Russian text into Word.
Comment 12•18 years ago
|
||
FYI: Also happens on OS X with FF3 + Prototheme. I selected and dragged the text from the comment above from the FF3 browser window to the search bar and has exactly the same results.
Updated•17 years ago
|
Priority: -- → P2
Flags: blocking1.9+
Comment 14•17 years ago
|
||
neil: (either one) can you take a look at this?
Updated•17 years ago
|
Flags: tracking1.9+
| Assignee | ||
Comment 15•17 years ago
|
||
(In reply to comment #10)
> But the old code used these flags... What's changed?
>
The old code converted from DOM->HTML Source and DOM->Unicode. The current code converts from DOM->HTML Source and then HTML Source->Unicode.
However, the bug is caused because the DOM->HTML Source step (done by nsDocumentEncoder) converts the Cyrillic characters into entities like с, but the HTML Source->Unicode step (done by the html parser) doesn't understand these entities so just outputs them as plaintext.
| Assignee | ||
Comment 16•17 years ago
|
||
Assignee: neil → enndeakin
Attachment #288297 -
Attachment is obsolete: true
Attachment #306576 -
Flags: superreview?
Attachment #306576 -
Flags: review?
| Assignee | ||
Updated•17 years ago
|
Attachment #306576 -
Flags: superreview?(jst)
Attachment #306576 -
Flags: superreview?
Attachment #306576 -
Flags: review?(jst)
Attachment #306576 -
Flags: review?
Updated•17 years ago
|
Attachment #306576 -
Flags: superreview?(jst)
Attachment #306576 -
Flags: superreview+
Attachment #306576 -
Flags: review?(jst)
Attachment #306576 -
Flags: review+
Comment 17•17 years ago
|
||
> Neil Deakin:
> Created an attachment (id=306576) [details]
> fix by just translating the html entities
Thank you!
It's work for me.
| Assignee | ||
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 18•17 years ago
|
||
Neil, may we hope to see this patch in the Mozilla Firefox release?
I have install FF3-beta4, but, to my great surprise, this problem was don't fixed... :( Is it forgotten?
---
Sorry for my bad English...
Comment 19•17 years ago
|
||
Beta 4 predates this patch being checked in.
Comment 20•17 years ago
|
||
verified fixed using the steps to reproduce from comment #0 and Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9pre) Gecko/2008042705 Minefield/3.0pre ID:2008042705 - works as expected now.
--> Verified fixed
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•