Bug 40013

Summary: Javascript-based link on "atomfilms.com" not working
Product: [Applications] konqueror Reporter: dubious
Component: kjsAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: CLOSED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description dubious 2002-04-02 02:15:12 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kjs
Version:           KDE 3.0.5 CVS/CVSup/Snapshot
Severity:          normal
Installed from:    Compiled sources
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

It may just be that Atomfilms.com is just another bastard company that assumes everyone's on Internet Explorer (and therefore this MAY be a feature request rather than a bug but)...

Going to any "films" page the link to start the film (be it a Real or Windows link or a flash file) is some sort of javascript function.

Clicking on the "play film" link at for example at:
 http://atomfilms.shockwave.com/af/content/oscar_goes

Gives me the following error text in the konsole (no messages or for that matter any effect occurs in Konqueror):

KJS: WARNING: Failed function call attempt on: undefined : Undefined (0x82bdcc0) line 213
KJS: Was property 'VBGetFlashVersion'
KJS: of: [object Window] : Window (0x83b3458)
KJS: WARNING: Failed function call attempt on: undefined : Undefined (0x82bdcc0) line 213
KJS: Was property 'VBGetFlashVersion'
KJS: of: [object Window] : Window (0x83b3458)
khtml (jscript): WARNING: Script throwed exception: TypeError: Expression is no object. Cannot be called.

The calls to "VBGetFlashVersion" make me suspicious that it's just crappy site design but...

(Submitted via bugs.kde.org)
Comment 1 Harri Porten 2002-04-02 15:51:27 UTC
On 2 Apr 2002 dubious@2xtreme.net wrote:

> Gives me the following error text in the konsole (no messages or for that matter any effect occurs in Konqueror):
> 
> KJS: WARNING: Failed function call attempt on: undefined : Undefined (0x82bdcc0) line 213
> KJS: Was property 'VBGetFlashVersion'
> KJS: of: [object Window] : Window (0x83b3458)
> KJS: WARNING: Failed function call attempt on: undefined : Undefined (0x82bdcc0) line 213
> KJS: Was property 'VBGetFlashVersion'
> KJS: of: [object Window] : Window (0x83b3458)
> khtml (jscript): WARNING: Script throwed exception: TypeError: Expression is no object. Cannot be called.
> 
> The calls to "VBGetFlashVersion" make me suspicious that it's just crappy site design but...

Did you check the <script> element on that page to see if they specify any
language for those ?

Harri.
Comment 2 dubious 2002-04-02 22:16:58 UTC
On Tuesday 02 April 2002 08:51 am Harri Porten wrote:
> Did you check the <script> element on that page to see if they specify any
> language for those ?
>
> Harri.

Yup according to the source it appears to be javascript.

(The actual link is "javascript:play(film)" - the line 
referencing the code with this function says:
<script language="JavaScript" src="/js/playfilm.js"></script>

I can forward a copy of the playfilm.js file if it'd 
be helpful.  Otherwise the url for that specific
file is:
http://atomfilms.shockwave.com/js/playfilm.js
Comment 3 Harri Porten 2002-04-03 12:12:34 UTC
On Tue 2 Apr 2002 dubious@2xtreme.net wrote:

> On Tuesday 02 April 2002 08:51 am Harri Porten wrote:
> > Did you check the <script> element on that page to see if they specify any
> > language for those ?
> >
> > Harri.
> 
> Yup according to the source it appears to be javascript.
> 
> (The actual link is "javascript:play(film)" - the line 
> referencing the code with this function says:
> <script language="JavaScript" src="/js/playfilm.js"></script>
> 
> I can forward a copy of the playfilm.js file if it'd 
> be helpful.  Otherwise the url for that specific
> file is:
> http://atomfilms.shockwave.com/js/playfilm.js

That file is not the one containing the failing code. As we don't support
VBScript there is not much we can do about anyway. Only recommendation I
can make is to set the User Agent string to a Netscape Browser.

Harri.