title: ThreeJS texture load: black for a while on Firefox
body: <p>I want to build an undo/redo feature on a 3D paint tool.
  I store the texture in an array after each draw like this:</p>
  
  <pre><code>        var image3 = mesh.material.map.image;
          var testCanvas = image3.getContext('2d').canvas;
          var canvasData = testCanvas.toDataURL("image/jpeg");
          undoArray[undoArrayCursor] = canvasData;
  </code></pre>
  
  <p>To restore it, I am using this code: </p>
  
  <pre><code>    var canvasimg = mesh.material.map.image;
      var img = new Image();
      img.src = srcimg;
      var tmpcanvas = document.createElement('canvas');
      tmpcanvas.width = canvasimg.width;
      tmpcanvas.height = canvasimg.height;
      var tmpctx = tmpcanvas.getContext('2d');
      tmpctx.drawImage(img,0,0);
      var pMap = new THREE.Texture( tmpcanvas );
      pMap.flipY = true;
      pMap.needsUpdate = true;
      pMaterial = new THREE.MeshLambertMaterial( { map:pMap } );
      mesh.material = pMaterial;
  </code></pre>
  
  <p>This is working fine on Chrome and IE but not on Firefox. I get no error/warning message in the console. With Firefox, there is some king of latency. Undo/redo clicks randomly display full black or correct textures. After a while (15-20s), all textures are displayed correctly while I cycle through undo/redo. It looks like it takes a while for Firefox to load the textures. Is there something I missed?</p>