Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The run() method of the SharedStorageSelectURLOperation interface defines the structure to which the run() method defined inside a URL Selection output gate operation should conform.
run(urls, data)
urlsAn array of objects representing the URLs to be chosen by the URL Selection operation. Each object contains two properties:
urlA string representing the URL.
reportingMetadata OptionalAn object containing properties where names are event types and values are URLs pointing to reporting destinations, for example "click" : "my-reports/report1.html". The URLs act as destinations for reports submitted with a destination of type "shared-storage-select-url", typically submitted via a Fence.reportEvent() or Fence.setReportEventDataForAutomaticBeacons() method call.
dataAn object representing any data required for executing the operation.
A Promise that fulfills with a number defining the array index of the URL selected by the operation.
See the main SharedStorageSelectURLOperation page for an example.
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SharedStorageSelectURLOperation/run