Closed Bug 1815308 Opened 2 years ago Closed 2 years ago

Differently cased pdf extensions do not trigger the display of pdfjs feature callout

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

RESOLVED FIXED
111 Branch
Iteration:
111.2 - Jan 30 - Feb 10
Tracking Status
firefox111 --- fixed

People

(Reporter: jprickett, Assigned: jprickett)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Since the checks for .pdf in tabbrowser.js don't manipulate casing before happening, the feature callout is only ever displayed if the .pdf extension is in all lowercase. We should use something like gBrowser.contentPrincipal?.originNoSuffix === "resource://pdf.js" to eliminate edge cases surrounding extension naming, and potentially other edge cases we haven't thought of.

Attachment #9316207 - Attachment is obsolete: true
Pushed by jprickett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/296ab70af91e Changed feature callout pdf check to use content principal instead of source URI r=aminomancer,omc-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: