Open the result of form submission in new tab

Bug #700054 reported by Danielle Foré
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Midori Web Browser
Confirmed
Undecided
Unassigned

Bug Description

I am currently struggling with OS X withdrawal. One feature that I miss terribly from Safari is the ability to submit a form (searching on Amazon, for example) and open the result in a new tab. I envision a few different ways of triggering this:

- First, and most important to me, is the ability to trigger this from the keyboard. I am very much in the habit of typing a query and hitting command-enter to open the result in a new tab. The default keybinding doesn't matter, but I suppose alt would make sense as it matches the current behavior of the location bar.
- Middle clicking on a button should open the result in a new tab as well.
- A context menu is currently brought up when one right clicks on a submission button. This should have an "open in new tab" option.

Tags: form
Revision history for this message
gue5t gue5t (gue5t) wrote :

The attached userscript (which can be tested by enabling the user addons extension) does most of what's requested here (submitting a form in new tabs with ctrl+clicking, ctrl+enter, and middle-click), with a few caveats:
It disrupts existing onclick handlers for form submit elements, and does not function on forms without submit buttons.
It doesn't add a "submit in new tab" menu item to the context menu for forms or submission buttons.
It doesn't work on all sites; Google's main page, for example, subverts some of the events it listens to.

These concerns would probably be better-addressed in an extension or patch to midori core that reimplements similar logic. This userscript could form the basis for a fallback implementation for older webkit versions that don't yet have C DOM bindings.

Cris Dywan (kalikiana)
summary: - It should be possible to open the result of form submissions in new tabs
+ Open the result of form submission in new tab
Cris Dywan (kalikiana)
tags: added: form
Changed in midori:
status: New → Confirmed
Revision history for this message
gue5t gue5t (gue5t) wrote :

I've revised the userscript.

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.