support firefox3

Bug #281209 reported by prajwala
2
Affects Status Importance Assigned to Milestone
JavaScriptUnit
Fix Committed
Undecided
schettino72

Bug Description

I try to run one test on firefox3. I clicked list, run button but nothing is displaying in the down. It is not giving any error message also. But it is showing the status is Running.

Revision history for this message
prajwala (prajwala) wrote :

This error happening in firefox3.0.2 version. It is working in firefox3.0.1. May be it is browser problem.

Revision history for this message
prajwala (prajwala) wrote :

I debugged this problem.
In the beginning I thought this is the problem with the script tag onload event. Because script tag onload event is not firing. Ofcource this also one problem in IE. The solution is explained in http://unixpapa.com/js/dyna.html article. I tried it but this is not the actual problem.

This is happening because Firefox 3 changed what is returned by the value attribute of a file input form element. Now it is just returning the file name, not the file path.

By reading http://soakedandsoaped.com/articles/read/firefox-3-native-ajax-file-upload post I tried to use "getAsBinary" function for listing the test cases. The getAsBinary function returning the file data as string. And I used eval function to evaluate the file conten. It is working but the test case is not running.

But this solution works only in firefox.

Another solution is http://devdaweb.blogspot.com/2008/07/firefox-3-changes-in-file-input.html there in that post. But I don't like this. we need to change configurations.
I think this need to change a lot in the code.

I attached the bzr diff patch file, which is having changes that I did for the 2 files. and I am using old jsu code. when I do bzr revno I sew "3".

Revision history for this message
schettino72 (schettino72) wrote : Re: [Bug 281209] Re: support firefox3

are you online ?

On Tue, Nov 25, 2008 at 4:46 PM, prajwala <email address hidden> wrote:
> I debugged this problem.
> In the beginning I thought this is the problem with the script tag onload event. Because script tag onload event is not firing. Ofcource this also one problem in IE. The solution is explained in http://unixpapa.com/js/dyna.html article. I tried it but this is not the actual problem.
>
> This is happening because Firefox 3 changed what is returned by the
> value attribute of a file input form element. Now it is just returning
> the file name, not the file path.
>
> By reading http://soakedandsoaped.com/articles/read/firefox-3-native-
> ajax-file-upload post I tried to use "getAsBinary" function for listing
> the test cases. The getAsBinary function returning the file data as
> string. And I used eval function to evaluate the file conten. It is
> working but the test case is not running.
>
> But this solution works only in firefox.
>
> Another solution is http://devdaweb.blogspot.com/2008/07/firefox-3-changes-in-file-input.html there in that post. But I don't like this. we need to change configurations.
> I think this need to change a lot in the code.
>
> I attached the bzr diff patch file, which is having changes that I did
> for the 2 files. and I am using old jsu code. when I do bzr revno I sew
> "3".
>
> ** Attachment added: "changes that I did for the jsu code to work in firefox3"
> http://launchpadlibrarian.net/19941143/changes.patch
>
> --
> support firefox3
> https://bugs.launchpad.net/bugs/281209
> You received this bug notification because you are the registrant for
> JavaScriptUnit.
>

Revision history for this message
schettino72 (schettino72) wrote :

I am not using input-file anymore, just input-text.

Changed in javascriptunit:
assignee: nobody → schettino72
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.