browser-plugin

How do I add a Webkit plugin to my sandboxed OS X app WebView?

回眸只為那壹抹淺笑 提交于 2019-12-01 11:02:54
问题 I'm new to OS X application development, so bear with me.....I've got an OS X application that extensively uses a WebView to provide the user with a video conference/screensharing feature which relies on a browser plugin. The video plugin works when I have sandboxing disabled, but we'd like to distribute our app in the OS X App Store and need to get it to work with a sandboxed WebView. My question is, how can I enable sandboxing and have my sandboxed WebView include the browser plugin? Can I

How to create plugins/addons for firefox, IE and chrome

泄露秘密 提交于 2019-12-01 10:46:49
问题 I need to create plug-ins/add-ons for IE, firefox and chrome browsers for the following requirement: If the url requested is in a particular format/ matching a particular regex pattern, the plugin has to block the request and pop up and alert box. I have searched a lot but did not find anything helpful. For IE, I think we can create BHO for this purpose. But is there a way to achieve this using javascript? Thanks in advance. Regards, Maggi 回答1: Unfortunately, IE's addon development is still

Detecting NPAPI support using JavaScript

南楼画角 提交于 2019-12-01 06:16:09
How can you detect if a browser supports NPAPI from JavaScript? Not all of them do, and whilst I could rely on the user-agent I'd much rather do it a more reliable way if one exists. Unfortunately, I can't simply detect if my plug-in has loaded or not, as it may be that the plugin simply isn't installed yet on a supported browser. Thanks. There is no JS API for this, but basically all desktop browsers except IE-/Trident-based ones and ChromeOS support NPAPI. You can find out wether your plugin is installed by checking navigator.plugins . If you want to check whether java plugins are enabled or

Detecting NPAPI support using JavaScript

允我心安 提交于 2019-12-01 05:07:03
问题 How can you detect if a browser supports NPAPI from JavaScript? Not all of them do, and whilst I could rely on the user-agent I'd much rather do it a more reliable way if one exists. Unfortunately, I can't simply detect if my plug-in has loaded or not, as it may be that the plugin simply isn't installed yet on a supported browser. Thanks. 回答1: There is no JS API for this, but basically all desktop browsers except IE-/Trident-based ones and ChromeOS support NPAPI. You can find out wether your

firefox add-on vs. extensions vs. plugins

断了今生、忘了曾经 提交于 2019-11-28 16:50:23
I want to write scripts for firefox. It seems that firefox has different terms, like add-on, extensions, plugins. and I have a feeling they're not all the same. Can you sum up the difference between in a few words? Add-on: essentially anything that can be installed into the browser. This includes for example extensions, themes, plugins, dictionaries, language packs, search engines. Extension: a package extending browser functionality, the extension format used by Firefox works in Gecko-based browsers only. Extensions typically use XUL and CSS for their user interface as well as JavaScript for

How to sequentially insert scripts into the page context using <script> tags

a 夏天 提交于 2019-11-28 02:27:24
I am having troubles loading all the scripts that I am inserting into the page context with <script> tags from a content_script script, because they are required to be executed in the correct loading order, as some depend on others. In an actual HTML file I guess there is a queue to load the files, but with inserting <script> tags it seems like if one script delays a little time, the next one starts loading and then is immediately executed notwithstanding it had to wait for its dependency library that is still loading. Below is the network output with the error caused because of x-tag-core.min

Browser Plugin Testing With Selenium

雨燕双飞 提交于 2019-11-27 18:24:30
I am writing a webapp that has a browser plugin component for both firefox and chrome. My current testing system uses a series of Selenium tests created through Selenium IDE. Is it possible to also have selenium install, activate, and delete browser plugins for firefox and chrome (possibly other browsers as well)? I think the biggest concern is that installing/enabling the browser plugin requires a browser restart, and I'm not sure if that would through selenium off. The acquisition of the plugin is easily handled by visiting an internal site-link to a php-script that detects your browser. The

Calling webpage JavaScript methods from browser extension

房东的猫 提交于 2019-11-27 16:31:02
I am developing an firefox extension using webExtensions that would help me ease my work with the scenario below. I have to click around 50-60 buttons on the site that update the task status. On click of this button, the web page is calling the webpage's updTask(id) JavaScript function that is then making a web-service call to update the task. I am not able to do this from my content script using the code below: manifest.json : "permissions": [ "activeTab", "cross-domain-content": ["http://workdomain.com/","http://workdomain.org/","http://www.workdomain.com/","http://www.workdomain.org/"] ]

Deployment of NPAPI plugin with minimal user steps

删除回忆录丶 提交于 2019-11-27 11:43:09
问题 Situation: I've already written an ActiveX control for my IE users which works perfectly. I build the .ocx, CAB it up, sign it, and put it on the site with an EMBED tag. Users load the page, the yellow bar shows up asking if they want to install it: all they have to do is click it, and we're off. Now I need to build support for FF, Chrome, and Safari (on Mac). From my research, NPAPI is the way to do this, and Firebreath is supposed to make it easier. But from what I have read, deployment is

How to sequentially insert scripts into the page context using <script> tags

℡╲_俬逩灬. 提交于 2019-11-27 04:57:47
问题 I am having troubles loading all the scripts that I am inserting into the page context with <script> tags from a content_script script, because they are required to be executed in the correct loading order, as some depend on others. In an actual HTML file I guess there is a queue to load the files, but with inserting <script> tags it seems like if one script delays a little time, the next one starts loading and then is immediately executed notwithstanding it had to wait for its dependency