Open Bug 1964061 Opened 14 days ago Updated 14 days ago

Initialize AnnotationEditorUIManager while loading the worker script

Categories

(Firefox :: PDF Viewer, task)

task

Tracking

()

People

(Reporter: calixte, Unassigned)

Details

Right now, that stuff is loaded while setting the pdf document, but it could be done sooner.
And the color picker we build here:
https://github.com/mozilla/pdf.js/blob/91bfe12f3865ff05b345903894227bf9bfd1001e/web/toolbar.js#L268C47-L268C48
could be created sooner too.

Please keep in mind that the GENERIC viewer supports opening more than one PDF document (e.g. via the secondaryToolbar or drag-and-drop), hence this may not be as simple/straightforward as it first seems (since each PDF gets its own AnnotationEditorUIManager instance).

You need to log in before you can comment on or make changes to this bug.