Closed
Bug 304739
Opened 19 years ago
Closed 19 years ago
Tidy up hrefAndLinkNodeForClickEvent
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: iannbugzilla, Assigned: iannbugzilla)
References
Details
(Keywords: fixed1.8)
Attachments
(2 files, 3 obsolete files)
6.46 KB,
patch
|
iannbugzilla
:
review+
Bienvenu
:
superreview+
asa
:
approval1.8b4+
|
Details | Diff | Splinter Review |
6.46 KB,
patch
|
Details | Diff | Splinter Review |
Neil pointed out to me on irc that hrefAndLinkNodeForClickEvent could be tied up a bit: should return { linkNode: ..., href: ... }; and just take event as its parameter (or return null if linkNode is null)
This patch: * Only passes event into hrefAndLinkNodeForClickEvent * Returns href and linkNode from hrefAndLinkNodeForClickEvent Not done the returning null as not 100% sure if that will be of use.
From Neil via IRC: a) I'd prefer if you return null if there is no linkNode b) handleLinkClick would like the link element too c) isPhishingURL doesn't work with XLinks, please make it accept an optionally optional href
Changes since v0.1: * hrefAndLinkNodeForClickEvent now returns null for both href and linkNode if linkNode is null * isPhishingURL takes optional argument for xlink's href * handleLinkClick is passed linkNode
Attachment #192761 -
Attachment is obsolete: true
Attachment #192833 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #192833 -
Flags: review?(neil.parkwaycc.co.uk)
Changes from v0.1a: * hrefAndLinkNodeForClickEvent returns null rather than null for each array entry * changed messagePaneOnClick and contentAreaClick to cope with above
Attachment #192833 -
Attachment is obsolete: true
Attachment #192860 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 5•19 years ago
|
||
Comment on attachment 192860 [details] [diff] [review] Tweaked patch v0.1b >+ var href = aHref ? aHref : aLinkNode.href; Nit: could be aHref || aLinkNode.href
Attachment #192860 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Changes from v0.1b: * Fixed nit Carrying forward r= and requesting sr
Attachment #192860 -
Attachment is obsolete: true
Attachment #192876 -
Flags: superreview?(bienvenu)
Attachment #192876 -
Flags: review+
Updated•19 years ago
|
Attachment #192876 -
Flags: superreview?(bienvenu) → superreview+
Comment on attachment 192876 [details] [diff] [review] Un-nitted tweaked patch v0.1c (Checked in) Checking in mailnews/base/resources/content/mailWindow.js; new revision: 1.101; previous revision: 1.100 mailnews/base/resources/content/phishingDetector.js; new revision: 1.2; previous revision: 1.1 xpfe/communicator/resources/content/contentAreaClick.js; new revision: 1.51; previous revision: 1.50 done
Attachment #192876 -
Attachment description: Un-nitted tweaked patch v0.1c → Un-nitted tweaked patch v0.1c (Checked in)
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Reopening as we (SeaMonkey council) want this in the branch too
Status: RESOLVED → REOPENED
Flags: blocking-seamonkey1.0a+
Resolution: FIXED → ---
Comment on attachment 192876 [details] [diff] [review] Un-nitted tweaked patch v0.1c (Checked in) Requesting a= for this suite only fairly low risk patch.
Attachment #192876 -
Flags: approval1.8b4?
Comment 10•19 years ago
|
||
This checkin broke contentAreaClick() quite badly (and in fact broke every single caller of hrefAndLinkNodeForClickEvent()). I filed bug 305158 on that. Please make sure to not land this on branch without a fix for that bug.
Depends on: 305158
Assignee | ||
Comment 11•19 years ago
|
||
Comment on attachment 192876 [details] [diff] [review] Un-nitted tweaked patch v0.1c (Checked in) Request for a= also covers a request to land the bustage fix from bug 305158
Updated•19 years ago
|
Attachment #192876 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 12•19 years ago
|
||
Checking in (1.8 branch) mailnews/base/resources/content/mailWindow.js; new revision: 1.100.2.1; previous revision: 1.100 mailnews/base/resources/content/phishingDetector.js; new revision: 1.1.2.1; previous revision: 1.1 xpfe/communicator/resources/content/contentAreaClick.js; new revision: 1.50.2.1; previous revision: 1.50 done
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Verified FIXED on trunk using LXR for code verification.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•