This name identifies the window data provider on the papi. Every window registers a provider of
its own under a window-scoped name — this name with the window's id appended — and what you get
from this property depends on where you read it.
From a renderer or a web view, it is that window's own scoped name, so the provider found by it
— with the useData hook, for instance — both reports and changes the focus of the window you
are in. Read it from papi.window and use it as it comes.
From the extension host, which runs in no window, it is the bare unscoped name. That name
resolves to whichever window the router is currently targeting, so two reads can answer for
different windows. The bare windowServiceProviderName constant behaves the same way
wherever it is imported. To act on one particular window from there,
platform.getFocusedWindowId reports which window has focus.
This name identifies the window data provider on the papi. Every window registers a provider of its own under a window-scoped name — this name with the window's id appended — and what you get from this property depends on where you read it.
From a renderer or a web view, it is that window's own scoped name, so the provider found by it — with the useData hook, for instance — both reports and changes the focus of the window you are in. Read it from
papi.windowand use it as it comes.From the extension host, which runs in no window, it is the bare unscoped name. That name resolves to whichever window the router is currently targeting, so two reads can answer for different windows. The bare windowServiceProviderName constant behaves the same way wherever it is imported. To act on one particular window from there,
platform.getFocusedWindowIdreports which window has focus.