Closed Bug 1925037 Opened 4 months ago Closed 3 months ago

Align the SeaMonkey switchToTabHavingURI() call syntax with Firefox and toolkit

Categories

(SeaMonkey :: General, defect)

defect

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: frg, Assigned: frg)

Details

(Whiteboard: SM2.53.20)

Attachments

(1 file, 1 obsolete file)

We use a callback in switchToTabHavingURI() but tookit passes optional parameters for the function and the actual load in this location. You occasionally see a

Timestamp: 16.10.2024, 15:47:53
Error: TypeError: aCallback is not a function
Source File: chrome://communicator/content/utilityOverlay.js
Line: 1793

error because of this in the log. This is usually not fatal because the call is at the end of the fuction call but should not happen.

To test just open the addon manager select the wheel and click Debug Add-ons.

Type: enhancement → defect

Basically takes the Firefox function, adds the callback parameter and fix the callers to pass it differently. We do not currently use the other optional parameters. Should we keep them or take out?

2 mini drive by fixes as noted in the patch.

[Approval Request Comment]
Regression caused by (bug #): unknown
User impact if declined: usally none but an error is logged.
Testing completed (on m-c, etc.): 2.53.20b1 pre
Risk to taking this patch (and alternatives if risky): tested and working.
String changes made by this patch: --

Attachment #9431263 - Flags: review?(iannbugzilla)
Attachment #9431263 - Flags: approval-comm-release?

Basically takes the Firefox function, adds the callback parameter and fix the callers to pass it differently. We do not currently use the other optional parameters browser uses so per discussion take them out for now.

2 mini drive by fixes as noted in the patch.

[Approval Request Comment]
Regression caused by (bug #): unknown
User impact if declined: usually none but an error is logged.
Testing completed (on m-c, etc.): 2.53.20b1 pre
Risk to taking this patch (and alternatives if risky): tested and working.
String changes made by this patch: --

Attachment #9431263 - Attachment is obsolete: true
Attachment #9431263 - Flags: review?(iannbugzilla)
Attachment #9431263 - Flags: approval-comm-release?
Attachment #9431404 - Flags: review?(iannbugzilla)
Attachment #9431404 - Flags: approval-comm-release?

Comment on attachment 9431404 [details] [diff] [review]
1925037-switchToTabHavingURI-1_1-25320.patch

[Triage Comment]
LGTM r/a=me

Attachment #9431404 - Flags: review?(iannbugzilla)
Attachment #9431404 - Flags: review+
Attachment #9431404 - Flags: approval-comm-release?
Attachment #9431404 - Flags: approval-comm-release+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/75a7530cb06f
Pass optional parameters to switchToTabHavingURI as an array. r=IanN

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: