Closed
Bug 861512
Opened 12 years ago
Closed 12 years ago
Uploading an image by pasting does not work on Nightly
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tracking
(firefox21 unaffected, firefox22+ verified, firefox23+ verified)
VERIFIED
FIXED
| Tracking | Status | |
|---|---|---|
| firefox21 | --- | unaffected |
| firefox22 | + | verified |
| firefox23 | + | verified |
People
(Reporter: jimmythetronlegacy, Unassigned)
References
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20130413 Firefox/23.0
Build ID: 20130413030927
Steps to reproduce:
-Navigate to http://www.imgur.com on Nightly 23.0a1
-Paste a section of an image copied from mspaint
Actual results:
The upload image dialog appears but not the image, and this happens in the javascript log:
Error: ReferenceError: elem is not defined
Source File: http://s.imgur.com/min/global_js?1365705716
Line: 58
Expected results:
The image should have pasted to the uploader and been able to be uploaded, as happens on mainline Firefox, but not Nightly.
Comment 1•12 years ago
|
||
Regression window(m-c)
Good:
http://hg.mozilla.org/mozilla-central/rev/dfeacbbb793d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130311 Firefox/22.0 ID:20130311092347
Bad:
http://hg.mozilla.org/mozilla-central/rev/7433bc4545c9
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130311 Firefox/22.0 ID:20130311165838
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=dfeacbbb793d&tochange=7433bc4545c9
Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/875c77fe1e79
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130311 Firefox/22.0 ID:20130311082346
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/b123c8210d41
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130311 Firefox/22.0 ID:20130311085346
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=875c77fe1e79&tochange=b123c8210d41
Regressed by: Bug 407983
Blocks: 407983
Status: UNCONFIRMED → NEW
status-firefox21:
--- → unaffected
tracking-firefox22:
--- → ?
tracking-firefox23:
--- → ?
Component: Untriaged → DOM: Core & HTML
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Version: 23 Branch → 22 Branch
Comment 2•12 years ago
|
||
Gavin: Neil's away until June 10th so do you have someone else willing to take on this regression? It seems like a very common use case.
Comment 3•12 years ago
|
||
Smaug, any chance you could look into this, or suggest someone else who could?
Assignee: gavin.sharp → bugs
Comment 4•12 years ago
|
||
Is this Windows only or cross platform?
Comment 5•12 years ago
|
||
I cannot reproduce the problem any more. The "BAD" build mentioned in comment #1 also works fine.
Maybe, the site was changed their code.
I confirmed in the following latest Nightly23.0a3 and Aurora22.0a2.
http://hg.mozilla.org/mozilla-central/rev/261d6997d1d1
Mozilla/5.0 (X11; Linux i686; rv:23.0) Gecko/20130415 Firefox/23.0 ID:20130415030812
http://hg.mozilla.org/releases/mozilla-aurora/rev/b6d86fda0787
Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20130415 Firefox/22.0 ID:20130415004014
http://hg.mozilla.org/mozilla-central/rev/261d6997d1d1
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130415 Firefox/23.0 ID:20130415030812
http://hg.mozilla.org/releases/mozilla-aurora/rev/b6d86fda0787
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130415 Firefox/22.0 ID:20130415004014
Comment 6•12 years ago
|
||
reporter, can you still reproduce this?
Comment 8•12 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #6)
> reporter, can you still reproduce this?
Reproduced in
http://hg.mozilla.org/mozilla-central/rev/0e45f1b9521f
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130427 Firefox/23.0 ID:20130427030919
And
http://hg.mozilla.org/releases/mozilla-aurora/rev/558d4c759bae
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130427 Firefox/22.0 ID:20130427004014
Comment 9•12 years ago
|
||
ok. But it is possible that I won't have time to look at this before Thursday.
Comment 10•12 years ago
|
||
In global_js, the Line: 58 is as follows:
initPasteUploadMozilla: function () {
var a = this;
var b = this._.el.$FFPasteBox;
handlePaste = function (d, c) {
var f = c.innerHTML;
if (d && d.clipboardData && d.clipboardData.getData) {
if (/text\/html/.test(d.clipboardData.types)) {
c.innerHTML = d.clipboardData.getData("text/html")
} else {
if (/text\/plain/.test(d.clipboardData.types)) {
c.innerHTML = d.clipboardData.getData("text/plain")
} else {
c.innerHTML = ""
}
}
waitForPasteData(elem, f);
if (d.preventDefault) {
d.stopPropagation();
d.preventDefault()
}
return false
} else {
waitForPasteData(c, f);
return true
}
};
Before landing Bug 407983, just execute waitForPasteData(c, f);
After landing Bug 407983, we support event.clipboardData for paste event.
So, the code path is different, waitForPasteData(elem, f) will execute, but 'elem' is defined nowhere.
I think that this is the site problem(something is missing or typo in global_js).
Comment 11•12 years ago
|
||
Yeah, based on that, ->evang
Assignee: bugs → english-us
Component: DOM: Core & HTML → English US
Product: Core → Tech Evangelism
Version: 22 Branch → Trunk
Comment 12•12 years ago
|
||
I have submitted a bug report on imgur.com's site letting them know this is occurring in the FF22 builds which are going to be released to general audience on June 25th, 2013.
Comment 13•12 years ago
|
||
Still not working sadly, but also not absolutely critical. We'll try outreach one more time and then untrack.
Comment 14•12 years ago
|
||
Imgur team is looking into this.
Comment 15•12 years ago
|
||
Imgur confirms they will have a fix in place before the release of FF22.
Updated•12 years ago
|
Comment 16•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Firefox/22.0
Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20100101 Firefox/23.0
Verified as fixed on Firefox 22 (build ID: 20130618035212) and Firefox 23 beta 5 (build ID: 20130711122148)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•