Open Bug 775110 Opened 12 years ago Updated 3 years ago

Cannot Drag Captcha Text into Textarea

Categories

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

14 Branch
x86
All
defect

Tracking

()

REOPENED
mozilla17
Tracking Status
firefox15 - wontfix
firefox16 - affected
firefox17 - affected

People

(Reporter: therubex, Unassigned)

References

()

Details

(Keywords: regression, testcase)

Attachments

(2 files, 1 obsolete file)

URL: http://forums.mozillazine.org/posting.php?mode=post&f=40

Disable JavaScript
Refresh the page

You should see:

> We need to make sure you are a human. Please solve the challenge below, and
> click the I'm a Human button to get a confirmation code. To make this
> process easier in the future, we recommend you enable Javascript.
 
Followed by a two word phrase
Type the two words into the box
Click, "I'm a human"
(if successful)
Text code is generated
Highlight said text (Ctrl+A)

Attempt to drag the text into any of the textareas on the screen

Mouse pointer changes when hovering the textarea giving an indication that you should be able to drop

Drop

Nothing happens
 
 
This worked in SeaMonkey 2.10 & FF13, but not in SeaMonkey 2.11 nor FF14.
 
 
If you open a new window of URL, you are able to drag the text from the original window into the new window textarea.
 
 
Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/16.0 Firefox/16.0 SeaMonkey/2.13a2
Build identifier: 20120718013005

(for Mc.)
Attached file testcase
(No need to disable JavaScript)
Regression window(cached m-c):
Good:
http://hg.mozilla.org/mozilla-central/rev/3de967c4624c
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120321 Firefox/14.0a1 ID:20120321025041
Bad:
http://hg.mozilla.org/mozilla-central/rev/f10862ac3217
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120321 Firefox/14.0a1 ID:20120321033140
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=3de967c4624c&tochange=f10862ac3217


Regression window(cached m-i):
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/4ce96dfc2c16
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120319 Firefox/14.0a1 ID:20120320075941
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/f163b1d6621e
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120320 Firefox/14.0a1 ID:20120320100241
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=4ce96dfc2c16&tochange=f163b1d6621e

Suspected: Bug 605991
Blocks: 605991
Keywords: regression
OS: Windows XP → All
(In reply to Alice0775 White from comment #2)
> Suspected: Bug 605991

As always, thanks Alice :)

This bug wouldn't block release, but would be great to fix for FF15 given the fact that this is a recent regression.
Assignee: nobody → enndeakin
Bug 605991 caused data being dragged from different domains to not be allowed to be dropped on a parent frame.

In the testcase here, the child frame has a data url. I originally had a check for that which allowed data urls but Olli didn't think it was needed. Maybe it is?

There's a related bug here. The editor code isn't allowing drops from the same domain and should be. I can attach a patch for that.
Attached patch Allow same domains in editors (obsolete) — Splinter Review
Comment on attachment 648794 [details] [diff] [review]
Allow same domains in editors

This patch doesn't fix the bug, but is needed as part of the fix.
Attachment #648794 - Flags: review?(ehsan)
Comment on attachment 648794 [details] [diff] [review]
Allow same domains in editors

Review of attachment 648794 [details] [diff] [review]:
-----------------------------------------------------------------

Shouldn't you use the principals of the documents to check this, the same way that nsHTMLEditor::IsSafeToInsertData works?  In fact you can probably move that method to nsEditor and just use it directly.
Attachment #648794 - Flags: review?(ehsan) → review-
The original bug (with mozillazine) probably isn't fixable without reverting bug 605991 as it relies on dragging text from a child frame from a different domain.
(In reply to comment #8)
> The original bug (with mozillazine) probably isn't fixable without reverting
> bug 605991 as it relies on dragging text from a child frame from a different
> domain.

What do other browser engines do there?
Attachment #648794 - Attachment is obsolete: true
We(In reply to Ehsan Akhgari [:ehsan] from comment #9)
> (In reply to comment #8)
> > The original bug (with mozillazine) probably isn't fixable without reverting
> > bug 605991 as it relies on dragging text from a child frame from a different
> > domain.
> 
> What do other browser engines do there?

Chrome has the same problem.
(In reply to comment #11)
> We(In reply to Ehsan Akhgari [:ehsan] from comment #9)
> > (In reply to comment #8)
> > > The original bug (with mozillazine) probably isn't fixable without reverting
> > > bug 605991 as it relies on dragging text from a child frame from a different
> > > domain.
> > 
> > What do other browser engines do there?
> 
> Chrome has the same problem.

So, WONTFIX?
Comment on attachment 651073 [details] [diff] [review]
Allow same domains in editors, version 2

Still want to have this patch in though.
Attachment #651073 - Flags: review?(ehsan)
Comment on attachment 651073 [details] [diff] [review]
Allow same domains in editors, version 2

Review of attachment 651073 [details] [diff] [review]:
-----------------------------------------------------------------

Sure, looks good!
Attachment #651073 - Flags: review?(ehsan) → review+
Checked into inbound.

Try run: https://tbpl.mozilla.org/?tree=Try&rev=ffbd68c6d1ae
https://hg.mozilla.org/mozilla-central/rev/70545fbaccd7
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updating status flags, we're too late to take something for FF15 here but please nominate for uplift to 16 when ready.
Can we get this fix nominated for FF16 Neil?
(In reply to Alex Keybl [:akeybl] from comment #18)
> Can we get this fix nominated for FF16 Neil?

This patch doesn't fix the bug.  See comment 11.
Thanks Ehsan. Given comment 11, users will just have to copy/paste instead of drag. We have not gotten significant user complaints since FF14.
Not working on this. Chrome doesn't allow this either, so we probably won't fix this.
Assignee: enndeakin → nobody

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: