Closed Bug 1713458 Opened 4 years ago Closed 3 years ago

Allow shiftKey to modify behaviour of link clicking in cZ

Categories

(SeaMonkey :: Chat, enhancement)

enhancement

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
seamonkey 2.90
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

References

Details

(Whiteboard: SM2.53.10)

Attachments

(1 file, 5 obsolete files)

As mentioned in Bug 1619108, at the moment chatZilla ignores the shift key when clicking on links within the chat window. Whilst we're here:

  • remove the now unused goto-url-external code
  • remove unused call to openTopWin
  • switch from openUILinkIn to openLinkIn to avoid fromChrome flag
  • remove cZ link.focus pref as it is overridden by the browser.tabs.loadInBackground pref
Attached patch 1713458-irc-goto-url-2539.patch (obsolete) — Splinter Review

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: inconsistent behaviour when clicking on links
Testing completed (on m-c, etc.): 2.53.9
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: 5 strings removed

Attachment #9224129 - Flags: review?(frgrahl)
Attachment #9224129 - Flags: approval-comm-release?
Attachment #9224129 - Flags: approval-comm-esr60?

Refreshed against the wrong patch so missing one change.

Attachment #9224129 - Attachment is obsolete: true
Attachment #9224129 - Flags: review?(frgrahl)
Attachment #9224129 - Flags: approval-comm-release?
Attachment #9224129 - Flags: approval-comm-esr60?
Attachment #9224133 - Flags: review?(frgrahl)
Attachment #9224133 - Flags: approval-comm-release?
Attachment #9224133 - Flags: approval-comm-esr60?

Also allow use of the shift key when doing web searches.

Attachment #9224133 - Attachment is obsolete: true
Attachment #9224133 - Flags: review?(frgrahl)
Attachment #9224133 - Flags: approval-comm-release?
Attachment #9224133 - Flags: approval-comm-esr60?
Attachment #9224135 - Flags: review?(frgrahl)
Attachment #9224135 - Flags: approval-comm-release?
Attachment #9224135 - Flags: approval-comm-esr60?
Depends on: 1712498

When ((action == "goto-url-newtab") && !browserWin),
which statement finally takes an effect: where = "window"; or where = e.shiftKey ? "tabshifted" : "tab";?

Flags: needinfo?(iann_bugzilla)

Well spotted buc.
Let openLinkIn function do more of the logic around whether we need to open a window or tab rather than trying to do it twice.

Attachment #9224135 - Attachment is obsolete: true
Attachment #9224135 - Flags: review?(frgrahl)
Attachment #9224135 - Flags: approval-comm-release?
Attachment #9224135 - Flags: approval-comm-esr60?
Flags: needinfo?(iann_bugzilla)
Attachment #9224263 - Flags: review?(frgrahl)
Attachment #9224263 - Flags: approval-comm-release?
Attachment #9224263 - Flags: approval-comm-esr60?
Depends on: 1720003

Changes since last patch:

  • Add back link focus pref and make use of it to decide whether to bring browser window into focus
Attachment #9224263 - Attachment is obsolete: true
Attachment #9224263 - Flags: review?(frgrahl)
Attachment #9224263 - Flags: approval-comm-release?
Attachment #9224263 - Flags: approval-comm-esr60?
Attachment #9230607 - Flags: review?(frgrahl)
Attachment #9230607 - Flags: approval-comm-release?
Attachment #9230607 - Flags: approval-comm-esr60?

Comment on attachment 9224263 [details] [diff] [review]
1713458-irc-goto-url-v1_3-2539.patch

This version goes alongside patch version 1.1 on Bug 1720003

Attachment #9224263 - Attachment is obsolete: false
Attachment #9224263 - Flags: review?(frgrahl)
Attachment #9224263 - Flags: approval-comm-release?
Attachment #9224263 - Flags: approval-comm-esr60?

Changes since v1.3:

  • Make use of browser.tabs.loadDivertedInBackground pref to determine whether link should be loaded in background or not.
Attachment #9224263 - Attachment is obsolete: true
Attachment #9224263 - Flags: review?(frgrahl)
Attachment #9224263 - Flags: approval-comm-release?
Attachment #9224263 - Flags: approval-comm-esr60?
Attachment #9230803 - Flags: review?(frgrahl)
Attachment #9230803 - Flags: approval-comm-release?
Attachment #9230803 - Flags: approval-comm-esr60?
Attachment #9230607 - Attachment is obsolete: true
Attachment #9230607 - Flags: review?(frgrahl)
Attachment #9230607 - Flags: approval-comm-release?
Attachment #9230607 - Flags: approval-comm-esr60?
Blocks: 1713467

Comment on attachment 9230803 [details] [diff] [review]
1713458-irc-goto-url-v1_5-2539.patch

LGTM

Attachment #9230803 - Flags: review?(frgrahl)
Attachment #9230803 - Flags: review+
Attachment #9230803 - Flags: approval-comm-release?
Attachment #9230803 - Flags: approval-comm-release+
Attachment #9230803 - Flags: approval-comm-esr60?
Attachment #9230803 - Flags: approval-comm-esr60+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/f38788ac1ce8
Allow shiftKey to modify behaviour of link clicking in cZ. r=frg

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Whiteboard: SM2.53.10
Target Milestone: --- → seamonkey 2.90
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: