Opened 12 days ago

Last modified 11 days ago

#7338 new change

Don't use any DOM API's in the background page

Reported by: sebastian Assignee: kzar
Priority: P2 Milestone:
Module: Platform Keywords: manifestv3
Cc: kzar Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Background

With manifest V3, background pages no longer have access to any DOM APIs but are limited to web APIs provided in Service Workers (besides extension APIs). Hence in the future Chrome extensions that attempt to access the global window or document object, or any of their properties imported in the global scope that don't exist in the Service Worker context will fail to run.

What to change

Remove any usage of web APIs that don't exist in Service Workers from code that runs in the background page. This code can be identified by changing the ESLint environment from browser to serviceworker for the code in lib/*.

Change History (2)

comment:1 Changed 11 days ago by kzar

  • Owner set to kzar

comment:2 Changed 11 days ago by kzar

  • Keywords manifestv3 added
Note: See TracTickets for help on using tickets.