Closed Bug 1276876 Opened 9 years ago Closed 8 years ago

Migrate the ruleview Image & Font preview to use HTML Tooltip

Categories

(DevTools :: Inspector: Rules, defect, P1)

defect

Tracking

(firefox49 fixed, firefox50 verified)

VERIFIED FIXED
Firefox 49
Iteration:
49.3 - Jun 6
Tracking Status
firefox49 --- fixed
firefox50 --- verified

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

(Whiteboard: [devtools-html])

Attachments

(1 file)

The goal of this bug is to migrate the previewTooltip of the TooltipsOverlay class to a HTMLTooltip instance. We will need to migrate two helper functions to be use the HTMLToolip: - setRelativeImageContent - setFontFamilyContent (these 2 methods are used only here, so no need to keep a XUL Tooltip version alive) This is very similar to what was done for the markup-view image preview migration.
Flags: qe-verify+
Whiteboard: [devtools-html]
QA Contact: alexandra.lucinet
Whiteboard: [devtools-html] → [devtools-html] [triage]
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Blocks: 1277264
Iteration: --- → 49.3 - Jun 6
Priority: -- → P1
Whiteboard: [devtools-html] [triage] → [devtools-html]
Comment on attachment 8758742 [details] MozReview Request: Bug 1276876 - ruleview: migrate font&image preview tooltips to HTMLTooltips;r?tromey Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56928/diff/1-2/
Attachment #8758742 - Attachment description: MozReview Request: Bug 1276876 - ruleview: migrate font&image preview tooltips to HTMLTooltips → MozReview Request: Bug 1276876 - ruleview: migrate font&image preview tooltips to HTMLTooltips;r?tromey
Attachment #8758742 - Flags: review?(ttromey)
Try seems green so far, the browser_dbg_search-symbols.js failures are linked to a bad commit that was backed out a bit later (see https://hg.mozilla.org/integration/fx-team/rev/08084e9e30d2)
Comment on attachment 8758742 [details] MozReview Request: Bug 1276876 - ruleview: migrate font&image preview tooltips to HTMLTooltips;r?tromey https://reviewboard.mozilla.org/r/56928/#review54134 Thank you. This looks good to me.
Attachment #8758742 - Flags: review?(ttromey) → review+
Thanks for the review Tom! Try is green, landing.
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/fx-team/rev/46d41d717dde ruleview: migrate font&image preview tooltips to HTMLTooltips;r=tromey
Depends on: 1277906
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
I managed to test this bug on Firefox 50.0a1 (2016-06-07) across platforms[1]. Beside the already known issues (Bug 932220, Bug 1067999, Bug 938097), I noticed that the Font preview text is wrongly displayed when the FF window width is reduced (http://imgur.com/Uac7sV8). As an expected result, if the text can't be displayed entirely, than the first part of the text should be displayed instead of the middle part. Note that the issue describe above is not reproducible if the 'Dock to side of browser window' option is enabled. Should I log a new bug for this issue? [1] Windows 10 x64, Ubuntu 16.04 x64 and Mac OS X 10.10.5.
QA Whiteboard: [qe-dthtml]
Flags: needinfo?(jdescottes)
(In reply to Mihai Boldan, QA [:mboldan] from comment #10) > I managed to test this bug on Firefox 50.0a1 (2016-06-07) across > platforms[1]. > Beside the already known issues (Bug 932220, Bug 1067999, Bug 938097), I > noticed that the Font preview text is wrongly displayed when the FF window > width is reduced (http://imgur.com/Uac7sV8). As an expected result, if the > text can't be displayed entirely, than the first part of the text should be > displayed instead of the middle part. > Note that the issue describe above is not reproducible if the 'Dock to side > of browser window' option is enabled. > Should I log a new bug for this issue? > > [1] Windows 10 x64, Ubuntu 16.04 x64 and Mac OS X 10.10.5. Thanks for spotting this Mihai, I think it's a valid issue and we should log a Bug for this. > width is reduced (http://imgur.com/Uac7sV8). As an expected result, if the > text can't be displayed entirely, than the first part of the text should be > displayed instead of the middle part. Resizing the font-preview image to fit the tooltip could also be acceptable.
Flags: needinfo?(jdescottes)
I logged Bug 1279189 for the issue described in Comment 11. Since the found issues were logged separately, I am marking this issue Verified Fixed.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: