Closed Bug 1528969 Opened 5 years ago Closed 5 years ago

Permission Prompts are missing "Learn More" URLs

Categories

(Firefox :: Site Identity, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 67
Tracking Status
firefox-esr60 --- unaffected
firefox65 --- unaffected
firefox66 --- unaffected
firefox67 --- verified

People

(Reporter: johannh, Assigned: bgrins)

References

Details

(Keywords: regression)

Attachments

(1 file)

STR:

Go to https://permission.site and show the geolocation prompt. It should have a "Learn More" URL, but it doesn't anymore.

This was regressed by bug 1487065.

Brian, can you please look into it? :)

Thanks!

Flags: needinfo?(bgrinstead)

Hmm… I was pretty sure we had test coverage for some learn more links.

(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #1)

Hmm… I was pretty sure we had test coverage for some learn more links.

Yeah, I was under the same impression, but I couldn't find any on a quick glance.

Flags: in-testsuite?

I guess the [href] isn't being set properly, since it seems that's what controls if it's visible or not (https://searchfox.org/mozilla-central/rev/93905b660fc99a5d52b683690dd26471daca08c8/toolkit/themes/shared/popupnotification.inc.css#31). Will take a look.

Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Flags: needinfo?(bgrinstead)

Actually, the [href] is being set. The textContent (set to &learnMore;) is getting dropped somehow: https://searchfox.org/mozilla-central/rev/93905b660fc99a5d52b683690dd26471daca08c8/toolkit/content/widgets/popupnotification.js#75.

Need to figure out why this fixes it, the textContent shouldn't get dropped.

Attachment #9045010 - Attachment description: Bug 1528969 - POC - fix learn more link by using [value] instead of textContent → Bug 1528969 - Only remove whitespace-only text nodes in parseXULToFragment

This was an issue with the parseXULToFragment helper, surprised this hasn't come up before. Thanks for filing.

Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9af9ed6a354d
Only remove whitespace-only text nodes in parseXULToFragment r=MattN
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 67

I have reproduced this bug with Nightly 67.0a1 (2019-02-19) on Windows 7, 64 Bit. The fix of this bug is now verified with latest Nightly!

Build ID 20190222081112
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

QA Whiteboard: [bugday-20190220]
Status: RESOLVED → VERIFIED
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: