'Reading PrintData (PrintProvider API) in chrome extension stuck in pending state with manifest V3

  • Listening for onPrintRequested(chrome.printerProvider API), I can get a printJob arg in callback function. It work in Manifest V2, when I call printJob.document.arrayBuffer(), the promise can be fullfilled. However, in Manifest V3, it sometimes stuck in pending state and never transfer to fullfilled, just like the blob(printJob.document) is occupied.

  • Here is the similar question.

  • I would like to know how to solve it. Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source