GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

8 results across 6 corpora for runtime.sendMessage().

Encyclopedia 2

Observer pattern

ubscribe(IObserver observer) { if (!_observers.Contains(observer)) { _observers.Add(observer); } return new Unsubscriber(observer, _observers); } internal void SendMessage(string message) { foreach (IObserver observer in _observers) { observer.OnNext(new Payload { Message = message }); } } } internal class Unsubscriber : IDisposable { private readonly IObserver _observer; private readonly ICollection > _observers; in

e01 Encyclopedia · CC BY-SA 4.0 · https://en.wikipedia.org/w/index.php?oldid=1339059800

Security and safety features new to Windows Vista

egrity processes like Windows Internet Explorer 7 or 8. A lower privilege process cannot perform a window handle validation of higher process privilege, cannot SendMessage or PostMessage to higher privilege application windows, cannot use thread hooks to attach to a higher privilege process, cannot use Journal hooks to monitor a higher privilege process and cannot perform DLL–injection to a higher privilege process.

e01 Encyclopedia · CC BY-SA 4.0 · https://en.wikipedia.org/w/index.php?oldid=1367047046

Developer library 6

options_ui

extension with extension.getViews(). Alternately, you can communicate between the JavaScript for your options page and your background script(s) using runtime.sendMessage(), runtime.onMessage, or runtime.connect(). The latter (or runtime.Port equivalents) can also be used to share options between your [background script(s)](/docs/Mozilla/Add-ons/WebExtensions/Anatomy_of_a_WebExtension#background_scripts) and your **

externally_connectable

</tbody> </table> Externally connectable controls which other extensions and web pages can communicate with an extension using runtime.connect() and runtime.sendMessage() message passing. If `externally_connectable` is not specified, all extensions can communicate with each other but not with web pages. > [!NOTE] > For communication with web pages: > > - In Chrome, `chrome.runtime.connect` and `chrome.runtime.sen

Modify a web page

<tr> <th scope="row">Send a message</th> <td> <code ><a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/sendMessage" >browser.runtime.sendMessage()</a ></code > </td> <td> <code ><a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/sendMessage" >browser.tabs.sendMessage()<

Chrome incompatibilities

reation-flags) flag. ## Data cloning algorithm Some extension APIs allow an extension to send data from one part of the extension to another, such as runtime.sendMessage(), tabs.sendMessage(), runtime.onMessage, the `postMessage()` method of runtime.port, and tabs.executeScript(). - **In Firefox:** The [Structured clone algorithm](/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) is used. - **In Chrome:**

Background scripts

invoke an extension API on the wrong target when the "current tab" changes while waking the event page. For example, runtime.onMessage can respond to runtime.sendMessage calls as follows: ```js browser.runtime.onMessage.addListener((message, sender, sendResponse) => { if (message.data === "setAlarm") { browser.alarms.create({ delayInMinutes: 5 }); } else if (message.data === "runLogic") { browser.scrip

Your second extension

nsertCSS({ target: { tabId: tab.id }, css: hidePage, }); const url = beastNameToURL(e.target.textContent); await browser.tabs.sendMessage(tab.id, { command: "beastify", beastURL: url, }); } /** * Remove the page-hiding CSS from the active tab and * send a "reset" message to the content script in the active tab. */ async function reset

JSON results · Services directory