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.

replyDict.set("RT", Name.get("Group")
        replyDict.set("T", "Reply Title"
        replyDict.set("Contents", "Reply Text"
        replyDict.set("M", "D:20190523"
        replyDict.set("C", [0.4]
        const popupRef = Ref.get(821, 0
        const popupDict = new Dict(
        popupDict.set("Type", Name.get("Annot")
        popupDict.set("Subtype", Name.get("Popup")
        popupDict.set("T", "Wrong Title"
        popupDict.set("Contents", "Wrong Text"
        popupDict.set("Parent", replyRef
        popupDict.set("M", "D:20190623"
        popupDict.set("C", [0.8]
        replyDict.set("Popup", popupRef
        const xref = new XRefMock([
          { ref: annotationRef, data: annotationDict },
          { ref: replyRef, data: replyDict },
          { ref: popupRef, data: popupDict },
        ]
        annotationDict.assignXref(xref
        popupDict.assignXref(xref
        replyDict.assignXref(xref
        const { data } = await AnnotationFactory.create(
          xref,
          popupRef,
          pdfManagerMock,
          idFactoryMock
        
        expect(data.title).toEqual("Correct Title"