[Dillo-dev] Get Dillo to honour target=_blank

2 views
Skip to first unread message

Nick Warne

unread,
Aug 27, 2016, 11:31:06 AM8/27/16
to dill...@dillo.org
Hi all,

How easy (or hard) would it be to get Dillo to honour the URL/FORM
directive 'target="_blank" to get URL/CGI data returned in a new tab?

I ahve looked at the code, seeing as Dillo already has tabs, but I just
don't get C++ classes and stuff, and wouldn't know where to begin.

The reason for asking this is if one has a form with a lot of data that
needs processing, once submitted the data gets returned to the parent
page... if there is a mistake, then you need to go back to the form,
and as Dillo doesn't keep the previous page data, you have to fill it
all in again. By diverting the output to a new tab, the previous parent
window remains the same, ready for editing and processing again.

Thanks,

Nick
--
Gosh that takes me back... or is it forward? That's the trouble with
time travel, you never can tell."
-- Doctor Who "Androids of Tara"

_______________________________________________
Dillo-dev mailing list
Dill...@dillo.org
http://lists.dillo.org/cgi-bin/mailman/listinfo/dillo-dev

Jorge Arellano Cid

unread,
Aug 28, 2016, 9:18:32 PM8/28/16
to dill...@dillo.org
Hi,

On Sat, Aug 27, 2016 at 04:28:54PM +0100, Nick Warne wrote:
> Hi all,
>
> How easy (or hard) would it be to get Dillo to honour the URL/FORM
> directive 'target="_blank" to get URL/CGI data returned in a new tab?
>
> I ahve looked at the code, seeing as Dillo already has tabs, but I just
> don't get C++ classes and stuff, and wouldn't know where to begin.
>
> The reason for asking this is if one has a form with a lot of data that
> needs processing, once submitted the data gets returned to the parent
> page... if there is a mistake, then you need to go back to the form,
> and as Dillo doesn't keep the previous page data, you have to fill it
> all in again. By diverting the output to a new tab, the previous parent
> window remains the same, ready for editing and processing again.

The trick is to submit pressing the middle button, that way the data
remains in the old tab!

--
Cheers
Jorge.-

Martin Atukunda

unread,
Aug 29, 2016, 6:31:47 AM8/29/16
to Jorge Arellano Cid, dill...@dillo.org
Hi dillo-dev,

While reading, incidentally, news.ycombinator.com, I came across this:

https://dev.to/ben/the-targetblank-vulnerability-by-example


Cheers,

- Martin -

Nick Warne

unread,
Aug 29, 2016, 6:55:45 AM8/29/16
to dill...@dillo.org
Hi Jorge,

On Sun, 28 Aug 2016 21:57:21 -0300


Jorge Arellano Cid <jc...@dillo.org> wrote:

> The trick is to submit pressing the middle button, that way the data
> remains in the old tab!

Duh! I must have read the help file 20 times and still missed that.
Thanks, works a treat!

Nick
--
Gosh that takes me back... or is it forward? That's the trouble with
time travel, you never can tell."
-- Doctor Who "Androids of Tara"

_______________________________________________

Nick Warne

unread,
Aug 29, 2016, 7:04:44 AM8/29/16
to dill...@dillo.org
Hi Martin,

On Mon, 29 Aug 2016 13:29:39 +0300
Martin Atukunda <mat...@gmail.com> wrote:

> Hi dillo-dev,
>
> While reading, incidentally, news.ycombinator.com, I came across this:
>
> https://dev.to/ben/the-targetblank-vulnerability-by-example
>

Interesting! I use it a lot, but having read that page and then this
one:

https://css-tricks.com/use-target_blank/

Basically, if a user _wants_ to open a link in a new tab, it is up to
them!

I have removed all my target="_blank" stuff now, and will not use it
again.

Nick
--
Gosh that takes me back... or is it forward? That's the trouble with
time travel, you never can tell."
-- Doctor Who "Androids of Tara"

_______________________________________________

Jorge Arellano Cid

unread,
Aug 29, 2016, 10:39:01 AM8/29/16
to dill...@dillo.org
Hi,

On Mon, Aug 29, 2016 at 01:29:39PM +0300, Martin Atukunda wrote:
> Hi dillo-dev,
>
> While reading, incidentally, news.ycombinator.com, I came across this:
>
> https://dev.to/ben/the-targetblank-vulnerability-by-example


I remember long ago we decided to avoid it for resons similar to
popup windows, and some others probably, but the details left me...

Thanks for the link.

Jorge Arellano Cid

unread,
Aug 29, 2016, 11:04:05 AM8/29/16
to dill...@dillo.org
On Mon, Aug 29, 2016 at 11:53:30AM +0100, Nick Warne wrote:
> Hi Jorge,
>
> On Sun, 28 Aug 2016 21:57:21 -0300
> Jorge Arellano Cid <jc...@dillo.org> wrote:
>
> > The trick is to submit pressing the middle button, that way the data
> > remains in the old tab!
>
> Duh! I must have read the help file 20 times and still missed that.
> Thanks, works a treat!

I knew it was somewhere and didn't find it either... ;)

It's under the Help|Tabs section, as you found.

A minor refactoring of the help text looks like a good idea.

--
Cheers
Jorge.-

Reply all
Reply to author
Forward
0 new messages