Closed
Bug 1282223
Opened 9 years ago
Closed 9 years ago
Remove gPermissionObserver
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(1 file)
3.73 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
Bug 1206251 added a gPermissionObserver object to the global browser.xul scope, but it should have just extended the gPermissionObserver object where all the related code is encapsulated.
Attachment #8765172 -
Flags: review?(paolo.mozmail)
Updated•9 years ago
|
Attachment #8765172 -
Flags: review?(paolo.mozmail) → review?(gijskruitbosch+bugs)
Comment 1•9 years ago
|
||
Comment on attachment 8765172 [details] [diff] [review]
patch
Review of attachment 8765172 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
::: browser/base/content/browser.js
@@ +7247,5 @@
>
> return container;
> + },
> +
> + observe: function (subject, topic, data) {
Nit: please use the shorthand observe(subject, topic, data) { instead, and personally I would prefer adding this directly after the handleEvent() implementation. Up to you.
I would also prefer to split this whole thing off to its own file, because browser.js is too much of a dumping ground and this object takes up about 10% (!) of it, but that can be its own bug, if you agree that makes sense? :-)
Attachment #8765172 -
Flags: review?(gijskruitbosch+bugs) → review+
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/5d888fb5d239
Remove gPermissionObserver. r=gijs
Comment 3•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
You need to log in
before you can comment on or make changes to this bug.
Description
•