Align the SeaMonkey switchToTabHavingURI() call syntax with Firefox and toolkit
Categories
(SeaMonkey :: General, defect)
Tracking
(seamonkey2.53+ fixed)
People
(Reporter: frg, Assigned: frg)
Details
(Whiteboard: SM2.53.20)
Attachments
(1 file, 1 obsolete file)
10.64 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 1•4 months ago
•
|
||
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: --
Assignee | ||
Comment 2•4 months ago
|
||
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: --
Comment on attachment 9431404 [details] [diff] [review]
1925037-switchToTabHavingURI-1_1-25320.patch
[Triage Comment]
LGTM r/a=me
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/75a7530cb06f
Pass optional parameters to switchToTabHavingURI as an array. r=IanN
Assignee | ||
Comment 5•5 days ago
|
||
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/40f0571c29839ec189a4c67948c1434b919034ed
Pass optional parameters to switchToTabHavingURI as an array. r=IanN a=IanN
Description
•