Closed
Bug 786201
Opened 12 years ago
Closed 11 years ago
Canvas clearRect rotate bug
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: rurlevv, Assigned: bas.schouten)
References
()
Details
(Keywords: regression, testcase)
Attachments
(1 file)
204.86 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347
Steps to reproduce:
I used Mozilla Firefox version 14.0.1
I write the next code
<html>
<head>
<title>BAG</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">*{margin:0;padding:0}</style>
<script type="text/javascript">
function start(){
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
ctx.fillStyle = "#ff0000";
ctx.fillRect(0,0,500,500);
ctx.translate(250,250);
ctx.rotate(Math.PI/6); ///30 градусов
ctx.fillStyle = "#00ff00";
ctx.clearRect(0,0,50,50);
ctx.translate(0,100);
ctx.fillRect(0,0,50,50);
ctx.translate(0,-200);
ctx.strokeRect(0,0,50,50);
}
</script>
</head>
<body onLoad="start();">
<canvas id="canvas" width="500" height="500"></div>
</body>
</html>
Actual results:
fillRect turned through an angle of 30 degrees
strokeRect turned through an angle of 30 degrees
clearRect NOT turned through an angle of 30 degrees
Expected results:
clearRect turned through an angle of 30 degrees
other browsers work fine
![]() |
||
Comment 1•12 years ago
|
||
Regression window(m-c)
Good:
http://hg.mozilla.org/mozilla-central/rev/450e4d9ea2d5
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110624 Firefox/7.0a1 ID:20110625025936
Bad:
http://hg.mozilla.org/mozilla-central/rev/48ad4ffc4230
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110625 Firefox/7.0a1 ID:20110625030821
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=450e4d9ea2d5&tochange=48ad4ffc4230
Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/c65f1fb0449d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110624 Firefox/7.0a1 ID:20110624094307
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/46c3d095bc75
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110624 Firefox/7.0a1 ID:20110624104626
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=c65f1fb0449d&tochange=46c3d095bc75
Suspected :Bug 651858
Blocks: 651858
Status: UNCONFIRMED → NEW
tracking-firefox16:
--- → ?
tracking-firefox17:
--- → ?
tracking-firefox18:
--- → ?
Component: Untriaged → Graphics
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Version: 14 Branch → 7 Branch
Comment 2•12 years ago
|
||
This does not appear to be a recent regression, nor has it been
Assignee: nobody → bas.schouten
Comment 3•12 years ago
|
||
... called out as a critical user pain point. Sending over to Bas to investigate with a priority he sees fit.
Comment 4•12 years ago
|
||
Same issue.
jsFiddle:
http://jsfiddle.net/r2ZE7/159/
System:
{
"application": {
"name": "Firefox",
"version": "18.0.1",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0",
"supportURL": "http://support.mozilla.org/1/firefox/18.0.1/WINNT/de/"
},
"modifiedPreferences": {
"accessibility.typeaheadfind.flashBar": 0,
"browser.cache.disk.capacity": 1048576,
"browser.cache.disk.smart_size.first_run": false,
"browser.cache.disk.smart_size_cached_value": 829440,
"browser.places.smartBookmarksVersion": 4,
"browser.startup.homepage": "file:///P:/Others/startseite.html|http://www4.rzbint.de/portal/de/portal/startseite.html",
"browser.startup.homepage_override.buildID": "20130116073211",
"browser.startup.homepage_override.mstone": "18.0.1",
"extensions.lastAppVersion": "18.0.1",
"gfx.direct3d.prefer_10_1": true,
"network.cookie.prefsMigrated": true,
"places.history.expiration.transient_current_max_pages": 104858,
"places.database.lastMaintenance": 1359531863,
"privacy.sanitize.migrateFx3Prefs": true,
"security.warn_viewing_mixed": false,
"security.disable_button.openCertManager": false
},
"graphics": {
"numTotalWindows": 1,
"numAcceleratedWindows": 1,
"windowLayerManagerType": "Direct3D 10",
"adapterDescription": "Intel(R) HD Graphics Family",
"adapterVendorID": "0x8086",
"adapterDeviceID": "0x0126",
"adapterRAM": "Unknown",
"adapterDrivers": "igdumd64 igd10umd64 igd10umd64 igdumdx32 igd10umd32 igd10umd32",
"driverVersion": "8.15.10.2279",
"driverDate": "1-7-2011",
"adapterDescription2": "",
"adapterVendorID2": "",
"adapterDeviceID2": "",
"adapterRAM2": "",
"adapterDrivers2": "",
"driverVersion2": "",
"driverDate2": "",
"isGPU2Active": false,
"direct2DEnabled": true,
"directWriteEnabled": true,
"directWriteVersion": "6.1.7601.17789",
"webglRenderer": "Google Inc. -- ANGLE (Intel(R) HD Graphics Family)",
"info": {
"AzureCanvasBackend": "direct2d",
"AzureFallbackCanvasBackend": "cairo",
"AzureContentBackend": "direct2d"
}
},
"javaScript": {
"incrementalGCEnabled": true
},
"accessibility": {
"isActive": false,
"forceDisabled": 0
},
"libraryVersions": {
"NSPR": {
"minVersion": "4.9.4",
"version": "4.9.4"
},
"NSS": {
"minVersion": "3.14.1.0 Basic ECC",
"version": "3.14.1.0 Basic ECC"
},
"NSSUTIL": {
"minVersion": "3.14.1.0",
"version": "3.14.1.0"
},
"NSSSSL": {
"minVersion": "3.14.1.0 Basic ECC",
"version": "3.14.1.0 Basic ECC"
},
"NSSSMIME": {
"minVersion": "3.14.1.0 Basic ECC",
"version": "3.14.1.0 Basic ECC"
}
},
"extensions": [
{
"name": "Firebug",
"version": "1.11.1",
"isActive": true,
"id": "firebug@software.joehewitt.com"
},
{
"name": "IDS_SS_NAME",
"version": "IDS_SS_VERSION",
"isActive": false,
"id": "{D19CA586-DD6C-4a0a-96F8-14644F340D60}"
}
]
}
Can't reproduce from mozilla overlay on gentoo. this is windows only regression
Comment 6•11 years ago
|
||
Any news on for that bug?
Comment 7•11 years ago
|
||
I think this is fixed since FF 27.
![]() |
||
Comment 8•11 years ago
|
||
(In reply to Stefan Kienzle from comment #7)
> I think this is fixed since FF 27.
Yep.
Confirmed Comment 0 with
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 ID:20140421162246 CSet: 1c35a9dca8a0
WFM with:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20140314220517 CSet: 5f7c149b07ba
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 ID:20140513030201 CSet: 4b6d63b05a0a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•