Closed Bug 1510553 Opened 6 years ago Closed 5 years ago

The "." character is wrongly hyperlinked with the "Learn more" string from the "SNIPPETS_SEND_TO_DEVICE_TEST" snippet

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 66
Iteration:
66.1 - Dec 10-23
Tracking Status
firefox63 --- unaffected
firefox64 --- wontfix
firefox65 - verified
firefox66 - verified

People

(Reporter: mcoman, Assigned: pdahiya)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached image rec of the issue.gif
[Affected versions]:
- Firefox 64 and above

[Affected Platforms]:
- All Windows
- All Linux
- All Mac

[Prerequisites]:
- Have an RTL Firefox locale build (eg. Firefox AR) installed.
- Have a Firefox profile with the following prefs in the "about:config" page:
	- "browser.newtabpage.activity-stream.asrouterExperimentEnabled" with "true" value;

[Steps to reproduce]:
1. Open the browser with the profile from prerequisites.
2. Navigate to "about:config#asrouter" page.
3. Scroll down to the "SNIPPETS_SEND_TO_DEVICE_TEST" section and click the "Show" button.
4. Click the "Install now" button.
5. Observe the hyperlink from ".The intended recipient of the email must have consented. Learn more" string.

[Expected result]:
- Only the "Learn more" string is hyperlinked.

[Actual result]:
- The "." character is also hyperlinked.

[Additional Notes]:
- This issue is also reproducible on the other Firefox locales but is more visible on the RTL ones.
- This issue is not reproducible with the "Newsletter" or with the "Simple" snippets.
- Attached a screen recording of the issue.
Assignee: nobody → andrei.br92
Assignee: andrei.br92 → nobody
Iteration: --- → 66.1 - Dec 10-23
Priority: -- → P1
Assignee: nobody → pdahiya
Assignee: pdahiya → nobody
Priority: P1 → P2
Priority: P2 → P1
Assignee: nobody → pdahiya
Blocks: 1513279
Able to replicate the issue using below STR

[Prerequisites]:
- Have an RTL Firefox locale build (eg. Firefox AR) installed.
- Have a Firefox profile with the following prefs in the "about:config" page:
	- "browser.newtabpage.activity-stream.asrouterExperimentEnabled" with "true" value;
        - Set "browser.newtabpage.activity-stream.asrouter.devtoolsEnabled" to true

[Steps to reproduce]:
1. Open the browser with the profile from prerequisites.
2. Navigate to "about:newtab#asrouter" page.
3. Scroll down to the "SNIPPETS_SEND_TO_DEVICE_TEST" section and click the "Show" button.
4. Click the "Install now" button.
5. Observe the hyperlink from ".The intended recipient of the email must have consented. Learn more" string.
The issue appears to be period is part of the privacy link inside disclaimer html that's rendered inside anchor tag. 

https://github.com/mozilla/activity-stream/blob/master/lib/SnippetsTestMessageProvider.jsm#L154

Moving period out of the link fixes the issue. Will submit patch. Thanks!
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Blocks: 1515206
Is this something we should consider uplifting to Beta or can it ride the trains?
Flags: needinfo?(pdahiya)
We should be uplifting this to Beta, I will submit uplift request. Thanks!
Flags: needinfo?(pdahiya)
Hi Marius

Can you please verify this issue is fixed in nightly. This will help to submit uplift request to beta. Thanks!
Flags: needinfo?(marius.coman)
[RTL] Dot character is wrongly hyperlinked with the Learn more string from the SNIPPETS_SEND_TO_DEVICE_TEST snippet
I have verified that this issue is no longer reproducible with the latest Firefox Nightly AR locale build (66.0a1 Build ID - 20181220215605) installed, on Windows 10 x64, Arch Linux and Mac 10.13.3. Now, the "." character is no longer hyperlinked.
Status: RESOLVED → VERIFIED
Flags: needinfo?(marius.coman)
Comment on attachment 9032861 [details]
Fix Bug 1510553 - [RTL] Dot character is wrongly hyperlinked with the Learn more string from the SNIPPETS_SEND_TO_DEVICE_TEST snippet r=andreio

[Beta/Release Uplift Approval Request]

Feature/Bug causing the regression: Bug 1492088

User impact if declined: For Firefox RTL locales, 'Learn More' string shown in Send to device snippets at the bottom of new tab page will show dot wrongly hyperlinked.

Is this code covered by automated tests?: No

Has the fix been verified in Nightly?: Yes

Needs manual test from QE?: Yes

If yes, steps to reproduce: 

List of other uplifts needed: None

Risk to taking this patch: Low

Why is the change risky/not risky? (and alternatives if risky): One line change that moves dot outside of link tag

String changes made/needed: none
Attachment #9032861 - Flags: approval-mozilla-beta?
[Tracking Requested - why for this release]:
Tracking Requested - Better user experience with low hanging UI fixes discovered by QA
Comment on attachment 9032861 [details]
Fix Bug 1510553 - [RTL] Dot character is wrongly hyperlinked with the Learn more string from the SNIPPETS_SEND_TO_DEVICE_TEST snippet r=andreio

[Triage Comment]
Trivial change to end a link prior to the period. Approved for 65.0b7.
Attachment #9032861 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
I don't think this needs to be tracked since it's a super-minor UI polish issue.
Flags: qe-verify+
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65)Gecko/20100101 Firefox/65.0 (20181227144402)

I have verified this issue is no longer reproducible with the latest Firefox Beta AR locale build (65.0b7 Build ID - 20181220215605) installed, on Windows 10 x64, Ubuntu 18.04 x64 and Mac 10.14.2. Now, the "." character is no longer hyperlinked.
Flags: qe-verify+
Component: Activity Streams: Newtab → Messaging System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: