Closed Bug 550234 Opened 15 years ago Closed 15 years ago

Port bug 543444 (Replace single-view API with multiple observers) to SeaMonkey history

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.1a1

People

(Reporter: kairo, Assigned: kairo)

References

Details

Attachments

(2 files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #543444 +++ The browser/ changes in bug 543444 - Replace single-view API with multiple observers - should be ported to SeaMonkey history files. I'll base the patch for it on the bug 547815 work.
Actually, I'm reverting the order between this and bug 547815 as bug 543444 changes the interfaces and therefore breaks us right now.
Blocks: 547815
No longer depends on: 547815
Attached patch patch to port us over to the interface changes (obsolete) (deleted) — Splinter Review
This patch should port over everything and make us compatible with the changed interfaces.
Assignee: nobody → kairo
Status: NEW → ASSIGNED
Attachment #430425 - Flags: review?(neil)
Severity: normal → blocker
Target Milestone: --- → seamonkey2.1a1
Comment on attachment 430425 [details] [diff] [review] patch to port us over to the interface changes Looks good to me FWIW.
Attachment #430425 - Flags: review+
Comment on attachment 430425 [details] [diff] [review] patch to port us over to the interface changes >+ var suppressNotificationsOld = result.suppressNotifications; Nit: I would have named it didSuppressNotifications >- var nodes = this._view.getDragableSelection(); >+ let nodes = this._view.getDragableSelection(); > >- for (var i = 0; i < nodes.length; ++i) { >+ for (let i = 0; i < nodes.length; ++i) { Well I can't allow this given that you used var above :-P
Attachment #430425 - Flags: review?(neil) → review+
(In reply to comment #4) > (From update of attachment 430425 [details] [diff] [review]) > >+ var suppressNotificationsOld = result.suppressNotifications; > Nit: I would have named it didSuppressNotifications Hrm, do I have to do this? Renaming this makes porting of further changes much harder :( > >- var nodes = this._view.getDragableSelection(); > >+ let nodes = this._view.getDragableSelection(); > > > >- for (var i = 0; i < nodes.length; ++i) { > >+ for (let i = 0; i < nodes.length; ++i) { > Well I can't allow this given that you used var above :-P I don't understand... I'm trying hard to use var at the direct function level and let only in blocks underneath it - and in a for loop, let makes even more sense, IMHO...
back to normal, as the toolkit side got backout out (again).
Severity: blocker → normal
OK, I've updated the patch for recent changes to the bug 543444, including the variable renaming you requested.
Attachment #430425 - Attachment is obsolete: true
Attachment #431854 - Flags: review?(neil)
Comment on attachment 431854 [details] [diff] [review] v2: updated to recent bug 543444 changes Oh, I see now, the Firefox version has the same var/let changes.
Attachment #431854 - Flags: review?(neil) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attached patch Missed one spot (deleted) — Splinter Review
I happened to spot the strict JS warning about the removed interface. The failure doesn't break anything, but this call is quicker if it works.
Attachment #658611 - Flags: review?(iann_bugzilla)
Attachment #658611 - Flags: review?(iann_bugzilla) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: