Closed
Bug 1049130
Opened 11 years ago
Closed 8 years ago
UITour: The first highlight is positioned too far right and down
Categories
(Firefox :: Tours, defect, P2)
Tracking
()
VERIFIED
FIXED
Firefox 56
People
(Reporter: MattN, Assigned: rexboy)
References
Details
(Keywords: regression, Whiteboard: [workaround with a 2nd showHighlight call][photon-onboarding])
Attachments
(3 files)
+++ This bug was initially created as a clone of Bug #968039 +++
The first highlight after startup (e.g. on the menu button or the account Status) is offset to the right and down from where it should be. This has regressed since bug 968039 I think and it's affecting our current Sync marketing at https://www.mozilla.org/en-US/firefox/31.0/whatsnew/?oldversion=29.0.1
Flags: firefox-backlog+
Comment 1•11 years ago
|
||
Thanks for the heads up - I'll add a second call to highlight sync in the menu panel as a workaround until this is fixed.
Updated•11 years ago
|
Flags: qe-verify?
Updated•11 years ago
|
Flags: qe-verify? → qe-verify+
Updated•10 years ago
|
Points: --- → 8
Reporter | ||
Comment 2•10 years ago
|
||
Moving open UITour bugs to Firefox::Tours. Filter on firefox-tours-20150121.
Component: General → Tours
Comment 4•9 years ago
|
||
I can answer this - yes the bug is still present, would be great to get this one fixed sometime :)
Flags: needinfo?(MattN+bmo)
Comment 5•9 years ago
|
||
Can you provide some clear steps to reproduce so we can try to track down what caused this regression?
Flags: needinfo?(agibson)
Comment 6•9 years ago
|
||
STR:
1.) Launch Firefox.
2.) Load the URL: https://www.mozilla.org/
2.) Open the Web Console (option + command + k).
3.) Paste the following JS snippet to trigger a UITour highlight on appMenu.
var event = new CustomEvent('mozUITour', {
bubbles: true,
detail: {
action: 'showHighlight',
data: {
target: 'appMenu',
effect: 'none'
}
}
});
document.dispatchEvent(event);
Expected results:
The highlight should be centered over the icon.
Actual results:
The highlight is off center (excecuting the above code a second time corrects the position).
Flags: needinfo?(agibson)
Comment 7•9 years ago
|
||
With those STR, I'm seeing the problem on the 2014-03-01 nightly, i.e. from the day after bug 968039 landed. So I'm not having much luck confirming that this was fixed and re-regressed :(
Comment 8•9 years ago
|
||
As far as I'm aware this bug has always been present, it may not be a regression.
Comment 9•9 years ago
|
||
Matt, you marked this as a regression when you filed it. I'm afraid that I can't reproduce this ever being fixed and therefore can't track down when it regressed :(
Flags: needinfo?(MattN+bmo)
Comment 10•9 years ago
|
||
If this was a regression, I would expect it to be somewhere between Firefox 28-29, as this is when we implemented the highlight styling for the original Australis redesign tour.
Updated•9 years ago
|
Flags: needinfo?(MattN+bmo)
Keywords: regressionwindow-wanted
Assignee | ||
Comment 12•8 years ago
|
||
Just did a little trace on the code:
In the function it uses getComputedStyle to get the padding width of highlighter's container (which is 4px for now). But at the very start, the container popup is hidden by "display: none", which makes getComputedStyle returns no padding at all.
Given UX is planning to change the style of highlight to met Photon's styling guide, I would propose to solve it by:
- Remove the padding of the container
- Remove the box-shadow of highlighter, which is the main reason that we need to do padding in its container
- Remove the logic of compensating the padding
and optionally Remove the border-radius and border, per UX's current opinion. but we can do it on another UI bug once the spec is confirmed.
Assignee | ||
Comment 13•8 years ago
|
||
..Or we just compensate the displacement by CSS margin, and remove the logic of compensating in javascript. That way we can even decreases the complexity of code, and seems all features works as well.
Let me try to give a patch.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → rexboy
Assignee | ||
Comment 15•8 years ago
|
||
The patch just uses the solution I mentioned on comment 13. I ran tests for UITours and they're still good.
Gijs would you take a look on the patch?
Thank you!
Comment 16•8 years ago
|
||
mozreview-review |
Comment on attachment 8890716 [details]
Bug 1049130 - UITour: Fixing highlight placed in the wrong place at first time.
https://reviewboard.mozilla.org/r/161914/#review167242
::: browser/components/uitour/UITour.jsm:1146
(Diff revision 1)
> - let offsetX = paddingTopPx
> - - (Math.max(0, highlightWidthWithMin - targetRect.width) / 2);
> + let offsetX = - (Math.max(0, highlightWidthWithMin - targetRect.width) / 2);
> + let offsetY = - (Math.max(0, highlightHeightWithMin - targetRect.height) / 2);
No space after the first '-'. eslint points this out. Please make sure to use it when you commit ( https://blog.mozilla.org/standard8/2017/05/04/running-eslint-on-commit-for-mozilla-central-git-mercurial/ )
Attachment #8890716 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 18•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8890716 [details]
Bug 1049130 - UITour: Fixing highlight placed in the wrong place at first time.
https://reviewboard.mozilla.org/r/161914/#review167242
> No space after the first '-'. eslint points this out. Please make sure to use it when you commit ( https://blog.mozilla.org/standard8/2017/05/04/running-eslint-on-commit-for-mozilla-central-git-mercurial/ )
That's a handy tool, thanks for the information. The lint error above has been fixed.
I'll land it after re-running try server.
Thank you!
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Whiteboard: [workaround with a 2nd showHighlight call] → [workaround with a 2nd showHighlight call][photon-onboarding]
Comment 20•8 years ago
|
||
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/24d786a6e756
UITour: Fixing highlight placed in the wrong place at first time. r=Gijs
Keywords: checkin-needed
Comment 21•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Updated•8 years ago
|
status-firefox54:
--- → wontfix
status-firefox55:
--- → wontfix
status-firefox-esr52:
--- → wontfix
Version: unspecified → 29 Branch
Comment 22•8 years ago
|
||
Hi KM Lee,
What is the expected behavior for a full-screen mode (F11)?
The highlight shifts when the page enters into full screen.
Here is screen capture: https://testing-1.tinytake.com/sf/MTg1NDY4Ml81OTc3NDUw
Flags: needinfo?(rexboy)
Assignee | ||
Comment 23•8 years ago
|
||
Hi Abe, thanks for finding out that issue.
I think that issue should be existed before this patch.
Please file another bug and you can put on [photon-onboarding][triage] in whiteboard so our team can discuss it in triage.
Thanks!
Flags: needinfo?(rexboy)
Assignee | ||
Comment 24•8 years ago
|
||
That should be a bug persisted for a long time inside UITour.
Comment 25•8 years ago
|
||
Created a bug for comment 22, Bug 1388824.
This issue is still reproducible using the STR provided in comment 6.
What other steps do you suggest to verify this bug,1049130?
Flags: needinfo?(rexboy)
See Also: → 1388824
Assignee | ||
Comment 26•8 years ago
|
||
(In reply to Abe - QA (:Abe_LV) from comment #25)
> Created a bug for comment 22, Bug 1388824.
>
> This issue is still reproducible using the STR provided in comment 6.
> What other steps do you suggest to verify this bug,1049130?
Hi Abe:
That shouldn't happen. Could you confirm it again on a newer version?
If that's the case we may need to reopen/file a new bug.
The issue is not reproducible on Nightly for me anymore. It goes like this:
http://g.recordit.co/FXTzeBoZpe.gif
(I did that on about:home page, but the highlight action is done in browser itself, so they should be the same as in http://www.mozilla.org .)
Flags: needinfo?(rexboy)
Assignee | ||
Comment 27•8 years ago
|
||
seems the image prohibits direct link. You can watch it here.
Comment 28•8 years ago
|
||
> That shouldn't happen. Could you confirm it again on a newer version?
It fails when the browser enters into full-screen mode.
Here is the screen capture: https://testing-1.tinytake.com/sf/MTg2MDgyNF81OTg5NzI1
> If that's the case we may need to reopen/file a new bug.
I am thinking to reopen this bug instead of creating a new one.
Comment 29•8 years ago
|
||
(In reply to Abe - QA (:Abe_LV) from comment #28)
> > That shouldn't happen. Could you confirm it again on a newer version?
>
> It fails when the browser enters into full-screen mode.
> Here is the screen capture:
> https://testing-1.tinytake.com/sf/MTg2MDgyNF81OTg5NzI1
>
> > If that's the case we may need to reopen/file a new bug.
> I am thinking to reopen this bug instead of creating a new one.
The issue with the anchor not adjusting correctly for fullscreen due to the disappearing toolbars seems like something that would happen prior to this bug being fixed, too, and should therefore be a separate (new) bug.
Comment 30•8 years ago
|
||
A new bug is created Bug 1389177. The full-screen mode issue will be addressed in it.
This bug is verified as fixed then.
Status: RESOLVED → VERIFIED
Comment 31•8 years ago
|
||
Comment 32•8 years ago
|
||
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 (20170823100553)
I was able to reproduce the bug on Ubuntu 16.04 x64 using latest Nightly build and RTL locale (ar).
This is not reproducible on Windows and OS X.
Please check the screenshot showing the issue.
Comment 33•8 years ago
|
||
(In reply to Stefan [:StefanG_QA] from comment #32)
> Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
> (20170823100553)
>
> I was able to reproduce the bug on Ubuntu 16.04 x64 using latest Nightly
> build and RTL locale (ar).
>
> This is not reproducible on Windows and OS X.
>
> Please check the screenshot showing the issue.
Is this specific to that locale and/or LTR? I don't think it's appropriate to reopen this bug for that issue - please file a new bug and make it block this one.
Flags: needinfo?(stefan.georgiev)
Updated•8 years ago
|
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox57:
affected → ---
Flags: needinfo?(stefan.georgiev)
OS: Linux → All
Resolution: --- → FIXED
Updated•7 years ago
|
QA Contact: jwilliams
You need to log in
before you can comment on or make changes to this bug.
Description
•