Bug 23757 - [Gtk] window.open() is failed and Image is not displayed.
Summary: [Gtk] window.open() is failed and Image is not displayed.
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 412
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL: http://www.hdfcbank.com
Keywords: PlatformOnly
Depends on:
Blocks:
 
Reported: 2009-02-05 04:47 PST by Paanky
Modified: 2009-07-07 06:15 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paanky 2009-02-05 04:47:25 PST
Lunch the browser through GtkLuncher. Fetch the page "http://www.hdfcbank.com". See the login button is not displayed. Instead a small square is displayed in its place.

Click the square it should display a new page. The new page is displayed through javascript "window.open()" method. But in WebKit it fails. The revision id is : 40471.
Comment 1 Paanky 2009-02-05 04:56:19 PST
In "JSValuePtr windowProtoFuncOpen(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)" function, "if (topOrParent)" is checked. But topParent is asigned true, only when frameName is "_top" or "_parent" or non-empty. But it may happen that frameName can be empty as in case of this "http://www.hdfcbank.com" site.

Would like to know why the log-in button image is not displaying. 
Comment 2 Kalle Vahlman 2009-03-26 10:18:23 PDT
(In reply to comment #1)
> Would like to know why the log-in button image is not displaying. 

Probably because of this:
 
new_login.gif: PC bitmap, Windows 3.x format, 69 x 24 x 8

It's not actually a GIF file so WebKit fails to decode it.

As for the window.open() thing, clicking on the login button does open a big window here.
Comment 3 Paanky 2009-03-26 21:51:43 PDT
(In reply to comment #2)
> (In reply to comment #1)
> > Would like to know why the log-in button image is not displaying. 
> 
> Probably because of this:
> 
> new_login.gif: PC bitmap, Windows 3.x format, 69 x 24 x 8
> 
> It's not actually a GIF file so WebKit fails to decode it.
> 
> As for the window.open() thing, clicking on the login button does open a big
> window here.
> 

As I have said above it fails due to the implementation behavior. Just try avoid checking the above said "_top" or "_parent" frameName check in "JSValuePtr windowProtoFuncOpen(ExecState* exec, JSObject*, JSValuePtr
thisValue, const ArgList& args)" function. And see that it will load fine.
Comment 4 Jan Alonzo 2009-07-07 06:15:47 PDT
This seems to be fixed in r455xx (or maybe even fixed in earlier revisions). Please reopen if the problem still exist. Thanks.