发明名称 Cross-extension messaging using a browser as an intermediary
摘要 A method for mediating messages between at least two browser extensions using a web browser of a computing device includes receiving a request from a first browser extension via a messaging application programming interface provided by the web browser, wherein a receiver of the request is a second browser extension determined by the messaging application programming interface based on a requested functionality included in the request from the first browser extension. The method includes sending, using the messaging application programming interface, the request to the second browser extension when the requested functionality is available in the second browser extension, and sending an error message to the first browser extension using the messaging application programming interface when the requested functionality is not available.
申请公布号 US9384073(B2) 申请公布日期 2016.07.05
申请号 US201213409651 申请日期 2012.03.01
申请人 Google Inc. 发明人 Mazzoni Dominic;Kay Erik
分类号 G06F9/54 主分类号 G06F9/54
代理机构 Brake Hughes Bellermann LLP 代理人 Brake Hughes Bellermann LLP
主权项 1. A computer-implemented method comprising: mediating cross-extension communications between a first browser extension and a second browser extension installed in a web browser running on a computing device, the first browser extension and the second browser extension each providing respective additional functionalities to the web browser, the first browser extension being functionally isolated from the second browser extension, and being unaware of the second browser extension and the additional functionalities being provided by the second browser extension to the web browser, wherein mediating the cross-extension communications includes: receiving a request for a web browser functionality from the first browser extension, at a messaging application programming interface in the web browser, the request not identifying the second extension; determining, by the messaging application programming interface, whether the requested web browser functionality included in the request from the first browser extension is an additional functionality provided to the web browser by the second extension; and forwarding the request received from the first browser extension, by the messaging application programming interface, to the second browser extension, when the requested web browser functionality is an additional functionality provided to the web browser by the second browser extension; intercepting, by the messaging application programming interface, an error from the second browser extension; sending an error message to the first browser extension, by the messaging application programming interface, when the requested web browser functionality is not available, and automatically forwarding the request received from the first browser extension, by the messaging application programming interface, to a third browser extension installed in the web browser of the computing device; and automatically outputting, via the web browser of the computing device, an output provided by the third browser extension.
地址 Mountain View CA US