browser-plugin

Writing a plugin using NPAPI + D3D. It works on Firefox, but the browser blacks out. Why?

你说的曾经没有我的故事 提交于 2020-01-16 00:53:35
问题 I'm writing a plugin, using NPAPI and D3D. I just simply put a D3D sample from DXSDK and NPAPI together. I receive a HWND when the plugin starts up, and I passed it to D3D to draw. It works though. the control(a 400 * 300 rectangle) on the test page DOES show what I expected. But all other area in FireFox window is black, including the menu bar. All other contents on the test page cannot be seen. I tried just InitDevice(D3D) with the HWND and do NO rendering at all. But still got the same

How to write a browser plugin?

╄→尐↘猪︶ㄣ 提交于 2019-12-27 10:31:09
问题 I'm curious as to the procedure for writing browser plugins for browsers like Chrome, Safari, and Opera. I'm thinking specifically of Windows here and would prefer working with C++. Are there any tools or tutorials that detail the process? Note : I am not referring to extensions or 'addons'. I'm referring to a plugin similar to how Flash and Adobe Reader have plugins to handle specific content-types. 回答1: As others point out, plugins for those browser are written using the NPAPI. Note: Both

Can a plugin(for safari on mac) be made windowed or windowless programmatically?

馋奶兔 提交于 2019-12-25 16:09:11
问题 We are making a plugin for safari browser on mac. After browsing over internet, i found that generally plugins on mac are windowless but i want a windowed plugin. Even in function NPP_SetWindow i tried to print the value of variable type (which is of type NPWindowType ) as following: NPError NPP_SetWindow(NPP instance, NPWindow * pNPWindow) { ... printf("....: %d",pNPWindow->type); ... } It prints 2 i.e its value is NPWindowTypeDrawable means windowless. Moreover, I read the following code

Scriptable plugin: Error calling method on NPObject

﹥>﹥吖頭↗ 提交于 2019-12-25 05:11:09
问题 I am getting a JavaScript error: Error calling method on NPObject when calling a method in my NPAPI plugin in Chrome & Firefox on XP. Running the same code on Windows 7 with the same browsers was successful. I have built a Scriptable plugin using the NPAPI, so far I can debug into the Invoke method of my scriptable object. But I don't believe I have any control after it's finished. Does anyone have any ideas? Is this an issue only in Windows XP? bool MY_ScriptableObject::Invoke(NPObject*

Querying browser-plugin existence/version/etc

强颜欢笑 提交于 2019-12-24 09:29:05
问题 As far as IE, my understanding is you have to try and instantiate an ActiveXObject and then check this succeeds, and you can then query the version through the instanced plugin... nothing particularly exciting. But on Firefox (and I think other NPAPI browsers) you can check for installed plugins and get the DLL name, etc (on Windows at least). What exactly can I find out about installed plugins other than if it exists? Plugin file name, anything else? edit: And, does IE support any way of

What is the “next generation plugin” for Java

為{幸葍}努か 提交于 2019-12-23 23:14:50
问题 What is the "next generation plugin" for Java and how is it different from the classic plugin? Strangely, there is only one generic plugin on Mac OS X, so is this distinction only on Windows, or does linux also have two plugins? I also noticed that Firefox is only telling me to update the classic plugin, so I must wonder how different the two plugins are if only one can be compromised. Or else Firefox is making a mistake, and they're both vulnerable. I am also interested if this distinction

how to import java.security.* in my gwt application

自古美人都是妖i 提交于 2019-12-22 09:54:16
问题 i want to develop a plugin using gwt. It has to use java.security.* for the key generation on client side. i have made all requirement But it is showing following error. Loading modules coreservlets.GwtApp1 Loading inherited module 'coreservlets.GwtApp1' Loading inherited module 'java.security.KeyPair' [ERROR] Unable to find 'java/security/KeyPair.gwt.xml' on your classpath; >could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] Line 15: Unexpected exception

See trace() of Flash when running in browser

可紊 提交于 2019-12-18 10:23:07
问题 What's an easy way to see the trace() output of Flash/Flex movies when running in any browser? 回答1: Download and install the content debugger version of Flash Player. Enable trace logging (official guide) by adding an mm.cfg file: ErrorReportingEnable=1 TraceOutputFileEnable=1 Where to save mm.cfg depends on the OS: Mac OS X: /Library/Application Support/Macromedia Windows: %HOMEDRIVE%\%HOMEPATH% Linux: /home/user name The log file, flashlog.txt, can be found at: Windows 95/98/ME/2000/XP: C:

firefox add-on vs. extensions vs. plugins

谁说我不能喝 提交于 2019-12-17 21:49:41
问题 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? 回答1: 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

Calling webpage JavaScript methods from browser extension

≯℡__Kan透↙ 提交于 2019-12-17 14:57:15
问题 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:/