[Bug 580970] Re: was not able to upload the a profile picture for Orkut using my Ubuntu 10.04. I tried uploading using the Firefox in XP and succeeded

Mathew P George mathewpadinjath at gmail.com
Tue May 18 03:58:28 UTC 2010


Hi,

I could see the following error in error console under the error tab


Error: b.getBoxObjectFor is not a function
Source File: http://static2.orkut.com/js/gen/imageCropper005.js
Line: 54

and once I click on the error I could see the following message:

function iCh(){}

function isDef(x) { return typeof x != "undefined"; }
iCh.raise=function(a){if(typeof Error!="undefined"){throw new
Error(a||"Assertion Failed");}else{throw a;}}
;iCh.fail=function(a){if(!isDef(a))a="Assertion
failed";if(isDef(iCq))iCq(a+"\n");iCh.raise(a)}
;iCh.isTrue=function(a,b){if(!a){if(!isDef(a))b="Assertion failed";iCh.fail(b)}}
;iCh.equals=function(a,b,c){if(a!=b){if(!isDef(c)){c="AS_Assert.equals
failed: <"+a+"> != <"+b+">"}iCh.fail(c)}}
;iCh.typeOf=function(a,b,c){if(typeof
a==b)return;if(a||a==""){try{if(b==iCh.TYPE_MAP[typeof a]||a
instanceof b){return}}catch(d){}}if(!isDef(c)){if(typeof
b=="function"){var
f=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(f)b=f[1]}c="AS_Assert.typeOf
failed: <"+a+"> not typeof "+b}iCh.fail(c)}
;iCh.TYPE_MAP={string:String,number:Number,"boolean":Boolean};iCh.numArgs=function(a,b){var
c=iCh.numArgs.caller;if(c&&c.arguments.length!=a){if(!isDef(b)){b=c.name+"
expected "+a+" arguments "+" but received
"+c.arguments.length}iCh.fail(b)}}
;
var iCB=false;function iCq(a){try{throw a;}catch(b){iCC(b)}}
function iCC(a,b){var c="Javascript exception: "+(b?b:"")+"
"+a;if(iCu()){c+=" "+a.name+": "+a.message+" ("+a.number+")"}var
d="";if(typeof a=="string"){d=a+"\n"}else{for(var f in a){try{d+=f+":
"+a[f]+"\n"}catch(e){}}}d+=z(iCC.caller);iCI(c+"\n"+d,1)}
var iCV=/function (\w+)/;function iCG(a){var
b=iCV.exec(String(a));if(b){return b[1]}return""}
function iCz(a){try{if(iCv()){return Error().stack}if(!a)return"";var
b="- "+iCG(a)+"(";for(var c=0;c<a.arguments.length;c++){if(c>0)b+=",
";var d=String(a.arguments[c]);if(d.length>40){d=d.substr(0,40)+"..."}b+=d}b+=")\n";b+=iCz(a.caller);return
b}catch(f){return"[Cannot get stack trace]: "+f+"\n"}}
var iCJ;var iCk=null;var iCw=false;function
iCH(){if((iCk==null||iCk.closed)&&!iCw){try{iCw=true;iCk=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");iCk.blur();iCk.document.open();iCw=false;var
a="<font color=#ff0000><b>To turn off this debugging window,hit 'D'
inside the main caribou window, then close this
window.</b></font><br>";iCA(a)}catch(b){}}}
function iCI(a,b){if(!iCB){if(typeof
iCE!="undefined"){iCE(iCD(a))}return}try{var c=iCQ()-J;var d="["+c+"]
"+iCD(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font
color=#ff0000><b>Error:
"+d+"</b></font>";iCk.focus()}iCA(d)}catch(f){}}
function iCA(a){if(!iCB){return}try{iCH();iCk.document.write(a);iCk.scrollTo(0,1000000)}catch(b){}}
;
function iCp(a){if(a in iCt){return iCt[a]}return
iCt[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}
var iCt={};function iCu(){return iCp("msie")}
function iCv(){return!iCu()&&!(iCp("safari")||iCp("konqueror"))&&iCp("mozilla")}
function iCZ(a){if(typeof Error!="undefined"){throw new
Error(a||"Assertion Failed");}else{throw a;}}
function iCL(a){if(typeof a == 'undefined')a="Assertion
failed";if(iCO(iCq))iCq(a+"\n");iCZ(a)}
function iCy(a,b){if(!a){if(typeof b == 'undefined')b="Assertion
failed";iCL(b)}}
;function iCQ(){return(new Date()).getTime()}
function iCN(a,b){if(a==null||a.className==null)return false;var
c=a.className.split(" ");for(var
d=0;d<c.length;d++){if(c[d]==b){return true}}return false}
function iCs(a,b){if(iCN(a,b))return;a.className+=" "+b}
;var iCR=/&/g;var iCX=/</g;var iCW=/>/g;function
iCD(a){if(!a)return"";return
a.replace(iCR,"&").replace(iCX,"<").replace(iCW,">").replace(iCY,""")}
var iCY=/\"/g;function iCO(a){return typeof a!="undefined"}
function iCT(a){return document.getElementById(a)}
function iCU(a){return document.all[a]}
var iCS=document.getElementById?iCT:iCU;function
iCE(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var
c=iCS("log");if(c){var d="<p class=logentry><span class=logdate>"+new
Date()+"</span><span
class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else{window.status=a}}
;
Function.prototype.bind=function(a){if(typeof this!="function"){throw
new Error("Bind must be called as a method of a function
object.");}var b=this;var
c=Array.prototype.splice.call(arguments,1,arguments.length);return
function(){var d=c.concat();for(var
f=0;f<arguments.length;f++){d.push(arguments[f])}return b.apply(a,d)}
}
;
var iCn;var $;(function(){var a={};var b=0;function
iCc(e){if(!e.r){e.r=++b}return e.r}
function iCd(e,g,o,j){var i=iCc(e);var l=iCc(o);j=!(!j);var
P=i+"_"+g+"_"+l+"_"+j;return P}
iCn=function(e,g,o,j){var i=iCd(e,g,o,j);if(i in a){return i}var
l=iCf.bind(null,i);a[i]={listener:o,proxy:l};if(e.addEventListener){e.addEventListener(g,l,j)}else
if(e.attachEvent){e.attachEvent("on"+g,l)}else{throw new Error("Node
{"+e+"} does not support event listeners.");}return i}
;$=function(e,g,o,j){var i=iCd(e,g,o,j);if(!(i in a)){return false}var
l=a[i].proxy;if(e.removeEventListener){e.removeEventListener(g,l,j)}else
if(e.detachEvent){e.detachEvent("on"+g,l)}delete a[i];return true}
;function iCf(e){var
g=Array.prototype.splice.call(arguments,1,arguments.length);return
a[e].listener.apply(null,g)}
}
)();
function iCm(a,b,c){this.x=a;this.y=b;this.coordinateFrame=c}
iCm.prototype.toString=function(){return"[P "+this.x+","+this.y+"]"}
;iCm.prototype.clone=function(){return new
iCm(this.x,this.y,this.coordinateFrame)}
;function iCx(a,b){this.dx=a;this.dy=b}
iCx.prototype.toString=function(){return"[D "+this.dx+","+this.dy+"]"}
;function iCr(a,b,c,d,f){this.x=a;this.y=b;this.w=c;this.h=d;this.coordinateFrame=f}
iCr.prototype.contains=function(a){return
this.x<=a.x&&a.x<this.x+this.w&&this.y<=a.y&&a.y<this.y+this.h}
;iCr.prototype.toString=function(){return"[R
"+this.w+"x"+this.h+"+"+this.x+"+"+this.y+"]"}
;iCr.prototype.clone=function(){return new
iCr(this.x,this.y,this.w,this.h,this.coordinateFrame)}
;
function iCF(a){var b=a.ownerDocument;if(iCv()&&b){var
c=b.getBoxObjectFor(a);return new iCm(c.x,c.y,window)}var d=0;var
f=0;while(a.offsetParent){d+=a.offsetLeft;f+=a.offsetTop;a=a.offsetParent}return
new iCm(d,f,window)}
function iCM(a){var b=0;var
c=0;if(a.pageX||a.pageY){b=a.pageX;c=a.pageY}else
if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft;c=a.clientY+document.body.scrollTop}return
new iCm(b,c,window)}
;
function _FOCUS_ImageCropper(a,b,c,d,f,e,g, defW,
defH){this.a=a;iCs(this.a,"originalImage");
  this.ratioLimit = -1;
  this.defW = defW || f;
  this.defH = defH || e;

  this.p=b?b:false;this.j=c?c:2;this.E=d?d:"dashed
blue";this.d=e?e:0;this.c=f?f:0;this.m=g?g:document.body;if(this.square){y(this.d===this.c)}this.F=iCF(this.m);this.e=iCK(this.a,this.m);this.a.ondragstart=function(){return
false}
;iCn(g,"mousedown",this.A.bind(this),false);iCn(document,"mouseup",this.n.bind(this),false);iCn(document,"mousemove",this.B.bind(this),false);if(iCv()){iCn(window,"mouseout",this.C.bind(this),false)}this.D()}

_FOCUS_ImageCropper.prototype.limitRatio = function(ratio) {
  this.ratioLimit = ratio;
}

_FOCUS_ImageCropper.prototype._width=0;_FOCUS_ImageCropper.prototype._height=0;_FOCUS_ImageCropper.prototype._x=0;_FOCUS_ImageCropper.prototype._y=0;_FOCUS_ImageCropper.prototype.s=function(){;var
a=document.createElement("DIV");iCs(a,"selectionRegion");a.style.border=this.j+"px
"+this.E;iCn(a,"mousedown",this.u.bind(this),false);iCn(a,"mouseup",this.z.bind(this),false);var
b=document.createElement("IMG");iCs(b,"offsetImage");b.src=this.a.src;b.width=this.a.width;b.height=this.a.height;b.alt="Select
tool"
;a.appendChild(b);this.b=a;this.q=a.childNodes[0];this.m.appendChild(this.b)}
;_FOCUS_ImageCropper.prototype.D=function(){this.s();iCy(this.a.width>=this.c&&this.a.height>=this.d);if(this.p){this._width=(this._height=Math.max(this.c,Math.min(this.a.width,this.a.height)/2))}else{this._width=Math.max(this.a.width/3,this.defW);this._height=Math.max(this.a.height/3,this.defH)}this._x=(this.a.width-this._width)/2;this._y=(this.a.height-this._height)/2;this.o=new
iCx(this._x,this._y);this.f=true;this.g=false;this.l()}
;_FOCUS_ImageCropper.prototype.C=function(a){var b=a||window.event;var
c=b.relatedTarget||b.toElement;if(this.g&&!c){this.n(b)}}
;_FOCUS_ImageCropper.prototype.n=function(a){var
b=a||window.event;if(this.g){b.cancelBubble=true;if(this._width<0){this._x+=this._width;this._width=-this._width}if(this._height<0){this._y+=this._height;this._height=-this._height}this.g=false;this.f=true;this.i(b)}}
;_FOCUS_ImageCropper.prototype.A=function(a){
  var b=a||window.event;b.cancelBubble=true;var c=this.k(b);var
d=b.target?b.target:b.srcElement;if(d===this.a){this.f=false;this.g=true;this._x=c.x-this.e.x;this._y=c.y-this.e.y;this._width=this.c;this._height=this.defH;this.l()}this.i(b)}
;_FOCUS_ImageCropper.prototype.B=function(a){
                     //this.d and this.e(?) keep the max
  if(!this.f&&this.g){
    var b=a||window.event;if(iCu()&&b&&b.button===0){this.n(a)}else{var
c=this.k(b);var d=c.x-this.e.x;var
f=c.y-this.e.y;this._width=d-this._x;this._height=f-this._y;this.l();this.i(b)}}else
if(this.f){this.v(a)}};

var CURSOR_TL = "nw-resize";
var CURSOR_TR = "ne-resize";
var CURSOR_BL = "sw-resize";
var CURSOR_BR = "se-resize";

_FOCUS_ImageCropper.prototype.u=function(a){
  if(this.f){var
b=a||window.event;b.cancelBubble=true;if(this.b.style.cursor=="move"){this.g=true;var
c=this.k(b);var d=c.x-this._x-this.e.x;var
f=c.y-this._y-this.e.y;this.o=new
iCx(d,f)}else{if(this.b.style.cursor==CURSOR_TL){this._x+=this._width;this._y+=this._height;this._width=-this._width;this._height=-this._height}else
if(this.b.style.cursor==CURSOR_TR){this._y+=this._height;this._height=-this._height}else
if(this.b.style.cursor==CURSOR_BL){this.
_x+=this._width;this._width=-this._width}this.f=false;this.g=true}this.i(b)}}
;_FOCUS_ImageCropper.prototype.z=function(a){if(this.f){var
b=a||window.event;b.cancelBubble=true;this.g=false;this.i(b)}}
;_FOCUS_ImageCropper.prototype.v=function(a){if(this.f){var
b=a||window.event;b.cancelBubble=true;var c=this.k(b);var
d=c.x-this.e.x;var
f=c.y-this.e.y;if(this.g){this._x=d-this.o.dx;this._y=f-this.o.dy;this.l()}else{var
e=d-this._x;var
g=f-this._y;if(e<3&&g<=this._width/2||g<3&&e<=this._height/2){this.b.style.cursor=CURSOR_TL}else
if(e>this._width-3&&g>this._width/2||g>this._height-3&&e>this._height/2){this.b.style.cursor=CURSOR_BR}else
if(e<3&&g>this._width/2||g>this._height-3&&e<=this._height/
2){this.b.style.cursor=CURSOR_BL}else
if(g<3&&e>this._height/2||e>this._width-3&&g<=this._width/2){this.b.style.cursor=CURSOR_TR}else{this.b.style.cursor="move"}}this.i(b)}}
;_FOCUS_ImageCropper.prototype.l=function(){var a;var b;var c;var
d;this.t();if(this._width>=0){a=this._x;c=this._width}else{a=this._x+this._width;c=-this._width}if(this._height>=0){b=this._y;d=this._height}else{b=this._y+this._height;d=-this._height}this.b.style.left=a+this.e.x-this.j;this.b.style.top=b+this.e.y-this.j;this.b.style.width=c+this.j*2;this.b.style.height=d+this.j*2;this.q.style.left=-a+"px";this.q.style.top=-b+"px"}
;_FOCUS_ImageCropper.prototype.t=function(){var a;if(this.p){
  a=Math.max(Math.abs(this._width),Math.abs(this._height));this._width=this._width<0?-a:a;this._height=this._height<0?-a:a
} else if (this.ratioLimit > 0) {
  var height = Math.max(Math.abs(this._height), this.d);
  var width = Math.max(Math.abs(this._width), this.c);
  var maxHeight = Math.min(width * this.ratioLimit, height);
  var maxWidth = Math.min(height * this.ratioLimit, width);
  height = Math.min(maxHeight, height);
  width = Math.min(maxWidth, width);
  this._width = this._width < 0 ? -width : width;
  this._height = this._height < 0 ? -height : height;
}
  if(this._x<0){this._x=0}else
if(this._x+this._width<0){this._width=-this._x}else
if(this._x+this._width>this.a.width){if(!this.f){this._width=this.a.width-this._x}else{this._x=this.a.width-this._width}}if(this._y<0){this._y=0}else
if(this._y+this._height<0){this._height=-this._y}else
if(this._y+this._height>this.a.height)
{if(!this.f){this._height=this.a.height-this._y}else{this._y=this.a.height-this._height}}if(this.p){a=Math.min(Math.abs(this._width),Math.abs(this._height));this._width=this._width<0?-a:a;this._height=this._height<0?-a:a}if(Math.abs(this._width)<this.c){if(this._width>=0){if(this._x+this.c>this.a.width){this._x-=this.c-this.a.width+this._x}this._width=this.c}else{if(this._x-this.c<0){this._x+=this._width+this.c}this._width=-this.c}}if(Math.abs(this._height)<this.d){if(this._height>=0){if(this._y+
this.d>this.a.height){this._y-=this.d-this.a.height+this._y}this._height=this.d}else{if(this._y-this.d<0){this._y+=this._height+this.d}this._height=-this.d}}}
;_FOCUS_ImageCropper.prototype.i=function(a){if(a.preventDefault){a.preventDefault();a.stopPropagation()}else{a.returnValue=false}}
;_FOCUS_ImageCropper.prototype.k=function(a){var b=iCM(a);var
c=iCF(this.m);b.x=b.x-c.x;b.y=b.y-c.y;return b}
;function iCK(a,b){var c=0;var d=0;while(a.offsetParent){
  if (!iCu())c+=a.offsetLeft;
  d+=a.offsetTop;a=a.offsetParent;if(a==b){break}}return new iCm(c,d,window)}
;



Regards,


Mathew

On Tue, May 18, 2010 at 9:10 AM, Draycen DeCator <ddecator at gmail.com>
wrote:

> Thank you for reporting this to Ubuntu. Could you please let us know if
> any errors appear in the Error Console when this happens? To do so, go
> to Tools > Error Console, clear everything currently in there, reproduce
> the bug, then see if anything was added to the console.
>
> ** Changed in: firefox (Ubuntu)
>       Status: New => Incomplete
>
> --
> was not able to upload the a profile picture for Orkut using my Ubuntu
> 10.04. I tried uploading using the Firefox in XP and succeeded
> https://bugs.launchpad.net/bugs/580970
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “firefox” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: firefox
>
> I could see that ever since I've up graded to Ubuntu 10.04 LTS I was not
> able to upload a profile picture to Orkut.
>
>
> I could upload the same picture from a different system  (XP OS) using
> firefox
>
>
> Regards,
>
>
> Mathew
>
> ProblemType: Bug
> DistroRelease: Ubuntu 10.04
> Package: firefox 3.6.3+nobinonly-0ubuntu4
> ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
> Uname: Linux 2.6.32-22-generic i686
> Architecture: i386
> Date: Sat May 15 19:36:40 2010
> FirefoxPackages:
>  firefox 3.6.3+nobinonly-0ubuntu4
>  firefox-gnome-support 3.6.3+nobinonly-0ubuntu4
>  firefox-branding 3.6.3+nobinonly-0ubuntu4
>  abroswer N/A
>  abrowser-branding N/A
> InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
> ProcEnviron:
>  LANG=en_IN
>  SHELL=/bin/bash
> SourcePackage: firefox
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/580970/+subscribe
>

-- 
was not able to upload the a profile picture for Orkut using my Ubuntu 10.04. I tried uploading using the Firefox in XP and succeeded
https://bugs.launchpad.net/bugs/580970
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in ubuntu.




More information about the Ubuntu-mozillateam-bugs mailing list