Closed
Bug 690414
Opened 13 years ago
Closed 13 years ago
syncNotification.xml leaks 'Observers' and 'Notifications' into the global scope
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 10
People
(Reporter: dao, Assigned: dao)
Details
Attachments
(1 file)
3.14 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #563449 -
Flags: review?(gavin.sharp)
Comment 1•13 years ago
|
||
Comment on attachment 563449 [details] [diff] [review] patch >diff --git a/browser/base/content/syncNotification.xml b/browser/base/content/syncNotification.xml >+ Cu.import("resource://services-sync/notifications.js", temp); >+ for each (var notification in temp.Notifications.notifications) Looks like this could use Weave.Notifications?
Attachment #563449 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 2•13 years ago
|
||
Possibly... Of course, there should be no global Weave object in the first place. (It should at least be called Sync.)
Comment 3•13 years ago
|
||
I don't think adding 1 more reference to it will significantly hinder efforts to rename it.
Assignee | ||
Comment 4•13 years ago
|
||
No, but I don't know that it needs to be in browser.js at all. I haven't looked into this lately.
Comment 5•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e4ee17a3f362
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 10
Comment 6•13 years ago
|
||
Thanks for fixing this, Dão! (In reply to Dão Gottwald [:dao] from comment #4) > No, but I don't know that it needs to be in browser.js at all. I haven't > looked into this lately. browser-syncui.js uses it a lot. It's the main entry point for Sync's UI-facing APIs. Note that instead of importing the JSMs in the first place, the exposed objects could've been accessed via the 'Weave' object (Weave.Svc.Obs and Weave.Notifications).
You need to log in
before you can comment on or make changes to this bug.
Description
•