Attach (recommended) or Link to PDF file here:
[mytestfile.pdf](https://github.com/mozilla/pdf.js/files/7190033/mytestfile.pdf)

Configuration:
- Web browser and its version: Firefox nightly
- Operating system and its version: linux debian

Steps to reproduce the problem:
1. Open the pdf  
2. Click on the yellow area

What is the expected behavior? (add screenshot)
The text layout should be RTL.

What went wrong? (add screenshot)
The text layout is LTR.

It works correctly in evince and in acrobat.
I added a `dir="rtl"` on the `p` element in using devtools and the rendering is the same as in acrobat.

fileSpecDict.set("Type", Name.get("FileSpec")
        fileSpecDict.set("F", "Part II/Part II.pdf"
        fileSpecDict.set("UF", "Part II/Part II.pdf"
        const actionDict = new Dict(
        actionDict.set("Type", Name.get("Action")
        actionDict.set("S", Name.get("Launch")
        actionDict.set("F", fileSpecDict
        actionDict.set("NewWindow", true
        const annotationDict = new Dict(
        annotationDict.set("Type", Name.get("Annot")
        annotationDict.set("Subtype", Name.get("Link")
        annotationDict.set("A", actionDict
        const annotationRef = Ref.get(88, 0
        const xref = new XRefMock([
          { ref: annotationRef, data: annotationDict },
        ]
        const pdfManager = new PDFManagerMock({
          docBaseUrl: "http://www.example.com/test/pdfs/qwerty.pdf",
        }
        const { data } = await AnnotationFactory.create(
          xref,
          annotationRef,
          pdfManager,
          idFactoryMock
        
        expect(data.annotationType).toEqual(AnnotationType.LINK
        expect(data.url).toEqual(
          new URL("http://www.example.com/test/pdfs/Part II/Part II.pdf").href
        
        expect(data.unsafeUrl).toEqual("Part II/Part II.pdf"