Closed Bug 1144620 Opened 9 years ago Closed 9 years ago

Fix ReferenceError: RBMozUI is not defined

Categories

(MozReview Graveyard :: General, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mdoglio, Assigned: mdoglio)

References

Details

Attachments

(2 obsolete files)

With the assets minified, try.js raises an error for an undefined variable. This happens because the minification step creates a closure around the js code the defines RBMozUI, making it out of scope in try.js.
Assignee: nobody → mdoglio
Status: NEW → ASSIGNED
/r/5593 - Bug 1144620 - Fix ReferenceError: RBMozUI is not defined

Pull down this commit:

hg pull review -r 953393e8f69865395975c728254001d70aff1946
Attachment #8579300 - Flags: review?(smacleod)
https://reviewboard.mozilla.org/r/5593/#review4765

What we should be doing to fix this instead is put try.js in the same bundle as MozReview. Bundles really shouldn't be per feature, but more so split up based on which pages they need to load in. So if try.js is just loading on the review request page like the rest it should be in the same bundle.

Our js should probably also be using the RB js extensions mechanisms [1][2]. We should clean this up while we migrate to the mozreview extension

[1] https://github.com/djblets/djblets/blob/d6ded53cb178410ac7ed702ce8bd0b48cdc19e84/djblets/extensions/extension.py#L144
[2] https://github.com/djblets/djblets/blob/d6ded53cb178410ac7ed702ce8bd0b48cdc19e84/djblets/extensions/extension.py#L39
Attachment #8579300 - Flags: review?(smacleod) → review-
https://reviewboard.mozilla.org/r/5593/#review4795

Ok I'll tackle the the rbmozui migration to mozreview
Depends on: 1109721
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Attachment #8579300 - Attachment is obsolete: true
Attachment #8619798 - Flags: review-
Attachment #8619798 - Attachment is obsolete: true
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: