Bug 9138

Summary: Open links in the same window
Product: WebKit Reporter: Félix Cloutier <felixcca>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: ahmad.saleem792, ap, vsoneta
Priority: P4    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   

Description Félix Cloutier 2006-05-27 19:25:32 PDT
It's possible to open links into new tabs or new windows, but it isn't possible to open links that should open in a new window in the same window.

I thought it would be a nice enhancement. :)
Comment 1 rahul abrol 2007-12-12 15:02:16 PST
this is one of the most frequently requested features on the safari forums: single window mode, with the option to allow resized popups.

i tried patching this myself using:
WindowProtoFuncOpen: in webcore/bindings/js/kjs_window.cpp
FrameTree::find in webcore/page/FrameTree.cpp

but couldn't get it quite right.
Comment 2 David Kilzer (:ddkilzer) 2007-12-14 08:06:18 PST
(In reply to comment #1)
> this is one of the most frequently requested features on the safari forums:
> single window mode, with the option to allow resized popups.

Could you provide a few links to said requests (or a search URL)?  Thanks!

Comment 3 vsoneta 2009-03-16 12:57:01 PDT
Can you please send me the code as to how to open the links in new window as window.open doesn't work in google chrome, IE , adobe air.. works only in firefox.. Actually it will be more helpful if I can open the links in the user default browser. 

(In reply to comment #0)
> It's possible to open links into new tabs or new windows, but it isn't possible
> to open links that should open in a new window in the same window.
> 
> I thought it would be a nice enhancement. :)
> 

Comment 4 Félix Cloutier 2009-03-16 13:11:30 PDT
Sorry, I don't know how to do it. Dude, this report is two years old; things have changed.
window.open has been used and abused to the point that it's now almost impossible to open a new browser window.

(In reply to comment #3)
> Can you please send me the code as to how to open the links in new window as
> window.open doesn't work in google chrome, IE , adobe air.. works only in
> firefox.. Actually it will be more helpful if I can open the links in the user
> default browser. 
> 
> (In reply to comment #0)
> > It's possible to open links into new tabs or new windows, but it isn't possible
> > to open links that should open in a new window in the same window.
> > 
> > I thought it would be a nice enhancement. :)
> > 
> 
Comment 5 vsoneta 2009-03-16 13:40:31 PDT
So is there any other way round to open the url in a new browser ...

(In reply to comment #4)
> Sorry, I don't know how to do it. Dude, this report is two years old; things
> have changed.
> window.open has been used and abused to the point that it's now almost
> impossible to open a new browser window.
> 
> (In reply to comment #3)
> > Can you please send me the code as to how to open the links in new window as
> > window.open doesn't work in google chrome, IE , adobe air.. works only in
> > firefox.. Actually it will be more helpful if I can open the links in the user
> > default browser. 
> > 
> > (In reply to comment #0)
> > > It's possible to open links into new tabs or new windows, but it isn't possible
> > > to open links that should open in a new window in the same window.
> > > 
> > > I thought it would be a nice enhancement. :)
> > > 
> > 
> 

Comment 6 Félix Cloutier 2009-03-16 15:29:56 PDT
As I just told you, I don't know.
Comment 7 Ahmad Saleem 2024-01-14 07:16:04 PST
Is it Safari level or is it required now?

I think we already have options to do / achieve this.