Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Notification prompt loses focus #1337

Open
AndyM48 opened this issue May 12, 2014 · 26 comments
Open

Notification prompt loses focus #1337

AndyM48 opened this issue May 12, 2014 · 26 comments

Comments

@AndyM48
Copy link

AndyM48 commented May 12, 2014

When I make a search using StartPage, and click on a result, the page opens in the same tab.

Wish: Option to open links in new tab or window automatically.

When I then go back to the search page by clicking on the back button I receive this message in a notification window:

"To show this page, QupZilla must resend request which do it again
(like searching on making an shopping, which has been already done.)"

Wish: Not good English - Suggest "To show this page, QupZilla must resend the previous request"

(Note: this does not happen using Google search page, in which case the previous search is loaded without any notification window.)

Bug: The notification window which opens does not have the focus, so it is necessary to click on the Yes button twice to get the refreshed search page back.

All the best

Andrew

@AndyM48 AndyM48 changed the title Problems using SearchPage as search engine Problems using StartPage as search engine May 12, 2014
@AndyM48
Copy link
Author

AndyM48 commented May 12, 2014

I changed the search string to:

https://startpage.com/do/search?q=%s

and most of the above is now working correctly, e.g. there is no notification window opened and the back button returns me to the search window correctly. The following still exist though:

Wish: Option to open links in new tab or window automatically.
Wish: Not good English - Suggest "To show this page, QupZilla must resend the previous request"
Bug: The notification window which opens does not have the focus, so it is necessary to click on the Yes button twice to get the refreshed search page back.

Andrew

@nowrep
Copy link
Member

nowrep commented May 12, 2014

The To show this page, QupZilla must resend... dialog should have a focus (see https://github.com/QupZilla/qupzilla/blob/master/src/lib/webkit/webpage.cpp#L552 - the dialog have a WebView as a parent).
It's up to your WM to set the focus to the dialog. If it does not do it, then the problem is in your WM (it works fine for me with KWin).

@pejakm
Copy link
Member

pejakm commented May 13, 2014

Wish 1: That's normal behaviour, according to page source. Middle click will open it in new tab (as well as ctrl + click or right click + one of the menu options).
Wish 2: Agreed.
Bug: Works for me. What is your DE and WM?

@AndyM48
Copy link
Author

AndyM48 commented May 13, 2014

Wish 1: OK, but I would like the option to ALWAYS open a link in a new tab, automatically, which would need another check box under Edit>Preferences>Tabs or Edit>Preferences?Browsing
Bug: LightDM + Compiz (under Arch Linux)

Increasingly it seems to me that it would be advantageous to have a Forum whee we could swap ideas and tips, and ask for help, instead of using the bugs list. What do you think?

Andrew

@pejakm
Copy link
Member

pejakm commented May 13, 2014

Like I've said, the page (in this case startpage.com) is dictating whether the link opens in the same window/tab or it will open in new window (eg. using target="_blank"). It is ridiculous to even think of QupZilla forcing all links to open in new tab/window.

Could you try with compiz off? It is known to create problems with window focusing.

@AndyM48
Copy link
Author

AndyM48 commented May 13, 2014

It is ridiculous to ....
Perhaps not a good choice of words when I was suggesting an option? Anyway "ctrl + click" combined with "Automatically switch to newly opened tab" does very nicely - thank you.

Now that I have the correct string for startpage, I do not see the notification window, so the problem no longer exists for me, unless you know how I can force the window to appear.

@pejakm
Copy link
Member

pejakm commented May 13, 2014

Now that I have the correct string for startpage, I do not see the notification window, so the problem no longer exists for me, unless you know how I can force the window to appear.

Because you've changed your search line to use GET method. For StartPage using POST method you can use these:

URL: https://eu3.startpage.com/do/search
POST: query=%s&cat=web&cmd=process_search&language=english&engine0=v1all&abp=1&suggestOn=1

Note that &cat=web&cmd=process_search&language=english&engine0=v1all&abp=1&suggestOn=1 are my own preferences and probably not needed for a search to work correctly.

@AndyM48
Copy link
Author

AndyM48 commented May 13, 2014

OK, I will set up an alternative search string and see what happens.

Andrew

@AndyM48
Copy link
Author

AndyM48 commented May 13, 2014

"Could you try with compiz off? It is known to create problems with window focusing."

Nope, same thing, have to click "Yes" twice to action it

" It is ridiculous to even think of QupZilla forcing all links to open in new tab/window."

Actually this is the default behaviour in both my Firefox installations. Of course I cannot tell if it is some setting I have selected in the past or not.
Edit: No it isn't, as pejakm said, it seems to depend on the coding of the page.

Cheers

Andrew

@pejakm
Copy link
Member

pejakm commented May 13, 2014

Nope, same thing, have to click "Yes" twice to action it

Tried with another WM? As I recall, it works in openbox, but I haven't tried awesome yet.

Actually this is the default behaviour in both my Firefox installations. Of course I cannot tell if it is some setting I have selected in the past or not.

You mean, clicking any link on any web page opens the link in new tab?! There's no such option in Firefox or Chrome. You must have installed some extension or tweaked something in Firefox.

@AndyM48
Copy link
Author

AndyM48 commented May 14, 2014

It doesn't seem to work with Compiz or Kwin here.

default behaviour in ... Firefox

I was wrong, as I think you said before, it seems to depend on the source page.

Andrew

@pejakm pejakm added the Other label May 14, 2014
pejakm pushed a commit to pejakm/qupzilla that referenced this issue May 14, 2014
pejakm pushed a commit to pejakm/qupzilla that referenced this issue May 14, 2014
nowrep added a commit that referenced this issue May 14, 2014
@pejakm
Copy link
Member

pejakm commented May 14, 2014

@fdservices We agreed regarding your first problem, right?
Your suggestion is taken into consideration in #1344.
Your second problem is an issue left to be solved. I cannot reproduce it (KDE under Arch). Do you happen to run xcompmgr? Have you tried under openbox, for example?

And please, next time, if the problems you have are not much related, open new issue for each of them.

@AndyM48
Copy link
Author

AndyM48 commented May 14, 2014

Sure, would you like to close this issue now, I think we have exhausted it

Andrew

@pejakm
Copy link
Member

pejakm commented May 14, 2014

Nope, we'll get to the bottom of this. You haven't responded to:

Do you happen to run xcompmgr? Have you tried under openbox, for example?

According to the Arch Wiki article awesome is known to cause issues with some apps. It might be the case with QupZilla.

@nowrep
Copy link
Member

nowrep commented May 14, 2014

What exactly gets the focus when the dialog appears?
It is modal dialog with parent being the BrowserWindow. I can't imagine what else could get the focus, if not the dialog. In any case, it sounds to me like an issue of your WM.

@AndyM48
Copy link
Author

AndyM48 commented May 15, 2014

OK - I am not using xcompmgr and I have not tried openbox or awesome.

I normally run kde + compiz on arch linux. At present I am running kde + kwin.

Here is the sequence of events at present:

  • Search
  • Select item - page loads in same tab as search results
  • Hit back arrow - here the drop down menu appears with the content Web search + Speed Dial + Clear History

This has the focus.

After the next mouse click the dialog menu receives the focus, hence the two clicks needed.

I cannot stop the drop down menu appearing, I am not "hovering" over the button, or double clicking.

Hope this helps

Andrew

@nowrep
Copy link
Member

nowrep commented May 28, 2014

What exactly do you mean with a "drop down menu appears with the content Web search + Speed Dial + Clear History"?
Maybe can you please make a screenshot?

@AndyM48
Copy link
Author

AndyM48 commented May 29, 2014

Please see attached

All the best

Andrew

/FD Services Ltd, 19 Canons Hill, Old Coulsdon, Surrey CR5 1HB. Reg No:
2017683 England

This email contains confidential information. If you are not the
intended recipient you should destroy this email immediately. You may
not copy or use the contents or attachments in any way./

On 28/05/14 23:07, David Rosca wrote:

What exactly do you mean with a "drop down menu appears with the
content Web search + Speed Dial + Clear History"?
Maybe can you please make a screenshot?


Reply to this email directly or view it on GitHub
#1337 (comment).

@pejakm
Copy link
Member

pejakm commented May 29, 2014

@fdservices You must attach it directly here.

@pejakm pejakm changed the title Problems using StartPage as search engine Notification prompt loses focus May 30, 2014
@AndyM48
Copy link
Author

AndyM48 commented Jun 2, 2014

OK - here you go:

screenshot

@nowrep
Copy link
Member

nowrep commented Jun 2, 2014

So the issue only occurs when you navigate through history with back/forward menu?
Or the opened menu have no impact on this issue?

@AndyM48
Copy link
Author

AndyM48 commented Jun 2, 2014

Not sure that I understand you.

If you set the startpage search engine to use the POST method as above and then:

Execute a search
Select item - page loads in same tab as search results
Hit back arrow - here the drop down menu appears with the content Speed Dial + Clear History (see screenshot above) and the 'Confirm form resubmission' window opens at the same time.
The dialogue window does not have the focus at this point.
After the next mouse click the dialog menu receives the focus, so two clicks are needed to reply Yes.

I cannot stop the drop down menu appearing, I am not "hovering" over the button, or double clicking.

Hope this helps

Andrew

@nowrep
Copy link
Member

nowrep commented Jun 2, 2014

What about just reloading page to trigger the "Form resubmission" dialog?

@AndyM48
Copy link
Author

AndyM48 commented Jun 2, 2014

I think I have cracked it. If you enter the search page URL as http://www.startpage.com/do/search and the POST data as query=%s then it works as expected. If you enter the search page URL as https://startpage.com/do/search?q=%s then, again it works fine.

If you enter the URL as https://startpage.com/do/search and the POST data as query=%s then it behaves as I have posted, so the combination of the secure server address and the POST data seems to be the problem.

Andrew

@AndyM48
Copy link
Author

AndyM48 commented Jun 16, 2014

Did you manage to reproduce/fix this?

Andrew

@nowrep
Copy link
Member

nowrep commented Jul 8, 2014

Unfortunately no, I did not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants