Closed
Bug 724446
Opened 12 years ago
Closed 12 years ago
Cleanup leftover listener from browser_page_style_menu.js, in SeaMonkey
Categories
(SeaMonkey :: Testing Infrastructure, defect)
SeaMonkey
Testing Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.10
People
(Reporter: sgautherie, Assigned: sgautherie)
References
()
Details
(Whiteboard: [fixed by bug 726521])
Attachments
(1 obsolete file)
Bug 724331 comment 1 { Philip Chee 2012-02-04 20:19:21 PST http://hg.mozilla.org/mozilla-central/rev/50a858927fad Cleanup leftover listeners from browser/base/content browser-chrome tests } Bug 724331 fixed browser_bug427559.js. browser_page_style_menu.js is the (only) other test that SeaMonkey has ported.
Assignee | ||
Comment 1•12 years ago
|
||
Sync' with current FF code, + Use a function name.
Attachment #594612 -
Flags: review?(neil)
Assignee | ||
Updated•12 years ago
|
Summary: Cleanup leftover listener from browser_page_style_menu.js → Cleanup leftover listener from browser_page_style_menu.js, in SeaMonkey
Comment 2•12 years ago
|
||
Comment on attachment 594612 [details] [diff] [review] (Av1) Cleanup leftover listener from browser_page_style_menu.js [Included in bug 726521 patch Av1] Can't we remove the event listener directly inside checkPageStyleMenu?
Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 594612 [details] [diff] [review] (Av1) Cleanup leftover listener from browser_page_style_menu.js [Included in bug 726521 patch Av1] (In reply to neil@parkwaycc.co.uk from comment #2) > Can't we remove the event listener directly inside checkPageStyleMenu? http://hg.mozilla.org/mozilla-central/filelog/default/browser/base/content/test/browser_page_style_menu.js It was first added inside checkPageStyleMenu(), yes. Then it was removed, though I assume this was a mistake. Then is was re-added near addEventListener(). I think it's easier to match them that way and I would prefer to be in sync' with FF... (It's easier to maintain and safer than to wonder why SM (can) does it differently.)
Comment 4•12 years ago
|
||
Well, I certainly prefer the method of http://hg.mozilla.org/mozilla-central/diff/50a858927fad/browser/base/content/test/browser_page_style_menu.js over the method of http://hg.mozilla.org/mozilla-central/diff/2e45e66a9200/browser/base/content/test/browser_page_style_menu.js Dao, mak, do you have any preference?
Comment 5•12 years ago
|
||
The former is shorter. The latter keeps the related event code closer together, so it might be easier to comprehend the flow at a glance.
Assignee | ||
Updated•12 years ago
|
Attachment #594612 -
Attachment description: (Av1) Cleanup leftover listener from browser_page_style_menu.js → (Av1) Cleanup leftover listener from browser_page_style_menu.js
[Included in bug 726521 patch Av1]
Attachment #594612 -
Attachment is obsolete: true
Attachment #594612 -
Flags: review?(neil)
Assignee | ||
Comment 6•12 years ago
|
||
Fixed by bug 726521.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [fixed by bug 726521]
You need to log in
before you can comment on or make changes to this bug.
Description
•