Closed
Bug 994188
Opened 11 years ago
Closed 11 years ago
Fix "ReferenceError: Cu is not defined" in browser/components/places/content/controller.js
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 31
People
(Reporter: tetsuharu, Assigned: tetsuharu)
References
Details
Attachments
(1 file)
2.53 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
# env
https://hg.mozilla.org/mozilla-central/rev/5811efc11011
# Abstract
When we enabled Places async transaction, "undo" operation in bookmark sidebar causes "ReferenceError: Cu is not defined".
This is follow-up bug 983623.
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8404073 -
Flags: review?(mak77)
Comment 2•11 years ago
|
||
Comment on attachment 8404073 [details] [diff] [review]
patch
Review of attachment 8404073 [details] [diff] [review]:
-----------------------------------------------------------------
Why not just do |const Cu = Components.utils;| at the top?
Assignee | ||
Comment 3•11 years ago
|
||
> Why not just do |const Cu = Components.utils;| at the top?
|Ci|, |Cc| are defined in the global scope which loads controller.js.
But I cannot pinpoint their defined points.
controller.js is not JSM. Its loaded order would be sensitive.
Thus I don't define |const Cu| to avoid the redeclaration error.
I agree this patch is very negative-conservative approach.
Assignee | ||
Comment 4•11 years ago
|
||
> I agree this patch is very negative-conservative approach.
I agree someone points "this patch is very negative approach".
Comment 5•11 years ago
|
||
Comment on attachment 8404073 [details] [diff] [review]
patch
Review of attachment 8404073 [details] [diff] [review]:
-----------------------------------------------------------------
I agree, we should not pollute this with Cu for now, until we fix bug 406371 properly...
Attachment #8404073 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Assignee: nobody → saneyuki.s.snyk
Status: NEW → ASSIGNED
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
You need to log in
before you can comment on or make changes to this bug.
Description
•