CN103617092A - Browser based plug-in running method and device - Google Patents

Browser based plug-in running method and device Download PDF

Info

Publication number
CN103617092A
CN103617092A CN201310594915.5A CN201310594915A CN103617092A CN 103617092 A CN103617092 A CN 103617092A CN 201310594915 A CN201310594915 A CN 201310594915A CN 103617092 A CN103617092 A CN 103617092A
Authority
CN
China
Prior art keywords
request
unit
browser
interface
create
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310594915.5A
Other languages
Chinese (zh)
Inventor
张聪
孙晓骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310594915.5A priority Critical patent/CN103617092A/en
Publication of CN103617092A publication Critical patent/CN103617092A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a browser based plug-in running method and device. The method specifically includes: intercepting an ActiveX plug-in create request from a browser process; creating a proxy object of a real ActiveX plug-in corresponding to the create request in the browser process, and returning the proxy object, used for realizing all interfaces of the real ActiveX plug-in, to a browser; creating a packaging process in a sandbox, and creating a real object of the real ActiveX plug-in in the packaging process; intercepting a call request of the browser for the proxy object, transmitting the call request to the real object, and executing the call request via the real object. The proxy object can realize all the interfaces of the real ActiveX plug-in and applicable to all ActiveX plug-ins, and a special proxy object needs not to be created for a special ActiveX plug-in, so that the method has the advantage of good universality.

Description

A kind of plug-in component operation method and apparatus based on browser
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of plug-in component operation method and apparatus based on browser.
Background technology
So-called plug-in unit, the program that it writes out for a kind of application programming interfaces of following certain standard.A lot of software has plug-in unit, and plug-in unit has countless versions.
ActiveX plug-in part technology is the general in the world software engineering based on windows platform, and much software is all to adopt this kind of mode to develop, and such as Flash animation player plug-in, Microsoft Media Player plug-in unit, Adobe PDF, reads plug-in unit etc.ActiveX plug-in unit is generally some component softwares or object, can be inserted in webpage.
When user browses to specific webpage, browser can point out user to download and install ActiveX plug-in unit, and after installing, ActiveX plug-in unit moves in browser.Because ActiveX plug-in unit quantity is various, running environment is complicated, and the opening of ActiveX plug-in unit, has caused ActiveX plug-in unit average quality poor, once out of joint, can cause browser not use, or occur serious safety problem.
For example, in browser, installed for playing after the ActiveX plug-in unit of film, because this ActiveX plug-in unit is a DLL(dynamic link library, Dynamic Link Library), this DLL is easy to make mistakes when being loaded execution, and DLL makes mistakes and also can have influence on browser.
From the above, browser usually can be subject to the impact of browser plug-in, occurs the problem of stability and security.
Summary of the invention
In view of the above problems, the present invention has been proposed to a kind of a kind of plug-in component operation method and apparatus based on browser that overcomes the problems referred to above or address the above problem is at least in part provided.
According to one aspect of the present invention, a kind of plug-in component operation method based on browser is provided, comprising:
In browser process, intercept the request to create of ActiveX plug-in unit;
In browser process, create the agent object of the corresponding true ActiveX plug-in unit of described request to create, and return to browser; Described agent object is for realizing the total interface of true ActiveX plug-in unit;
In sandbox, create packing process, and in described packing process, create the real object of described true ActiveX plug-in unit;
Intercept browser for the call request of described agent object, and based on interprocess communication mode, described call request is transferred to described real object, by described real object, carry out described call request; And/or
Based on interprocess communication mode, receive described real object for the readjustment request of described browser process, and according to browser process described in described readjustment request call, by described browser, carry out described readjustment and ask.
According to a further aspect in the invention, provide a kind of plug-in component operation device based on browser, described device comprises:
The first interception module, for intercepting the request to create of ActiveX plug-in unit in browser process;
The first creation module, for create the agent object of the corresponding true ActiveX plug-in unit of described request to create in browser process, and returns to browser; Described agent object is for realizing the total interface of true ActiveX plug-in unit;
The second creation module for create packing process at sandbox, and creates the real object of described true ActiveX plug-in unit in described packing process;
The second interception module, for intercepting browser for the call request of described agent object;
Call processing module, for described call request being transferred to described real object based on interprocess communication mode, by described real object, carry out described call request; And/or
Readjustment processing module, for receiving described real object based on interprocess communication mode for the readjustment request of described browser process, and according to browser process described in described readjustment request call, carries out described readjustment by described browser and asks.
A kind of plug-in component operation method and apparatus based on browser according to the present invention can create the agent object of true ActiveX plug-in unit in browser process, creates the real object of true ActiveX plug-in unit in the packing process in sandbox simultaneously; Like this, the real object that can guarantee true ActiveX plug-in unit moves in sandbox, its behavior can be controlled by sandbox, can not affect the security of browser itself, real object due to true ActiveX plug-in unit moves in an independent packing process simultaneously, even if this real object can not cause browser collapse because the problems such as leak cause the collapse of packing process yet, therefore can improve the stability of browser, thereby can improve user's viewing experience;
Simultaneously, agent object of the present invention can be realized the total interface of true ActiveX plug-in unit, and it can be applicable to all ActiveX plug-in units, and creates special agent object without the ActiveX plug-in unit for special, therefore, the present invention has advantages of that versatility is good.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention process flow diagram of the plug-in component operation method based on browser; And
Fig. 2 shows a kind of according to an embodiment of the invention structural drawing of the plug-in component operation device based on browser.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
Inventor finds in realizing process of the present invention, and under traditional implementation, ActiveX plug-in unit moves in browser process, and the average quality of ActiveX plug-in unit is poor, and for example some ActiveX plug-in unit has a lot of bug(leaks); Like this, when ActiveX plug-in unit collapses due to bug, will cause whole browser process collapse, and then cause browser unavailable; Leak in actual like this ActiveX plug-in unit, is the safety problem of browser In the view of user, has affected user's viewing experience.
In order to address the above problem, the embodiment of the present invention intercepts the request to create of ActiveX plug-in unit in browser process, creates agent object corresponding to described request to create, and this agent object is returned to browser; At one, independently in sandbox, create true ActiveX plug-in unit, can guarantee that like this ActiveX plug-in unit moves in sandbox, if ActiveX plug-in unit is in operation, go wrong, browser can not be affected yet, therefore can improve the security of browser simultaneously.
With reference to Fig. 1, show a kind of according to an embodiment of the invention process flow diagram of the plug-in component operation method based on browser, specifically can comprise:
Step 101, in browser process, intercept the request to create of ActiveX plug-in unit;
In actual applications, when user browses to specific webpage, browser can point out user to download and install ActiveX plug-in unit to carry out corresponding pin function (as playing function, camera function etc.), and carry out in the process of the operation that ActiveX plug-in unit is installed user, can produce corresponding request to create.
In specific implementation, can be based on Hook(hook) technology intercepts described request to create.Windows system is based upon in event driven mechanism, and hook is very important system interface in Windows system, with it, can intercept and capture and process the message (as the request to create in the embodiment of the present invention) of giving other application programs.In a kind of application example of the present invention, described request to create is API(application programming interface, Application Programming Interface) function CoCreateInstance.
Step 102, in browser process, create the agent object of the corresponding true ActiveX plug-in unit of described request to create, and return to browser; Described agent object is for realizing the total interface of true ActiveX plug-in unit;
Because the essence of ActiveX plug-in unit is COM(the Component Object Model, Component Object Model) assembly, com component standard provides a kind of general calling convention, and by interface operation object, interface is a pointer that points to a call address table.Therefore, agent object, as long as realize the total interface of true ActiveX plug-in unit according to com component standard, just can be realized whole true ActiveX plug-in unit.
For example, in com component standard, each in the middle of call address table is all the address of an interface function, an object can be realized a plurality of interfaces, different interface on same target can obtain by first (being called QueryInterface) in call address table, and simultaneously com component standard has also stipulated that second and the 3rd item are for the reference count of object.Follow above-mentioned com component standard, can create agent object by calling CoCreateInstance api function, make this agent object realize a call address table, in this call address table, the function of each sensing is proxy function.
Because browser has been stipulated the data that a series of interface functions should return, therefore in actual applications, the data that need to return to browser can be determined according to the interface of realizing.
Step 103, in sandbox, create packing process, and in described packing process, create the real object of described true ActiveX plug-in unit;
In the embodiment of the present invention, sandbox (sandbox) for represent a kind of restricted, with the virtual execution environment of real system isolation, in this virtual execution environment, move any program, all can not be corrupted to user's real system, therefore the real object of the true ActiveX plug-in unit moving in sandbox can not have influence on real system for the operation of real system, can not have any impact to browser process yet, the security that therefore can improve browser.
In specific implementation, can in sandbox, create a packing (host) process, and create real object in this packing process, wherein the constructive process of real object and agent object is similar, all can create by Using API Function CoCreateInstance, all need to realize the total interface of true ActiveX plug-in unit.
For same true ActiveX plug-in unit, the interface of its agent object and real object should have one-to-one relationship.
Therefore,, in a preferred embodiment of the present invention, the described step that creates the real object of described true ActiveX plug-in unit in packing process, specifically can comprise:
Sub-step S100, in packing process, create described real object, described real object is used for realizing the first call address table, and wherein, described the first call address table specifically can comprise the interface of described true ActiveX plug-in unit;
The described step that creates the agent object of the corresponding true ActiveX plug-in unit of described request to create in browser process, specifically can comprise:
Sub-step S200, in browser process, create described agent object, described agent object is used for realizing the second call address table, and wherein, described the second call address table specifically can comprise the interface of described true ActiveX plug-in unit; In described the second call address table, in interface and described the first call address table, interface has one-to-one relationship.
Described one-to-one relationship specifically can show: in the second call address table, in positional information in the second call address table of the sign (ID) of interface and interface and the first call address table, sign (ID) and the positional information of interface in the first call address table of interface should be one to one.
Step 104, intercepting browser be for the call request of described agent object, and based on interprocess communication mode, described call request is transferred to described real object, by described real object, carries out described call request;
Suppose that above-mentioned request to create is for for playing the broadcasting ActiveX plug-in unit of film, user can play ActiveX plug-in unit for this and carry out corresponding operation in the process of playing film, this operation can trigger browser for the call request of described agent object, and the present invention can be based on call request described in HOOK technique intercepts.
In a preferred embodiment of the present invention, in described call request, can carry calling interface and Transfer Parameters; Here, Transfer Parameters is the parameter that browser passes to this calling interface;
, based on interprocess communication mode, described call request is transferred to the step of described real object, specifically can comprise:
Sub-step S300, based on interprocess communication mode, by the sign of described calling interface, positional information and the described Transfer Parameters of described calling interface in described the second call address table, be transferred to described real object, by described real object in described the first call address table the position identical with the positional information of described calling interface in described the second call address table, obtain the interface identical with the sign of the described calling interface receiving, and carry out according to the Transfer Parameters receiving the interface obtaining.
Step 105, based on interprocess communication mode, receive described real object for the readjustment request of described browser process, and according to browser process described in described readjustment request call, by described browser, carry out described readjustment and ask.
It should be noted that, above-mentioned steps 104 and step 105 are and/or relation specifically can carry out according to actual call request or readjustment request.
In the embodiment of the present invention, interprocess communication is used in transmission of information between browser process and packing process.In specific implementation, can adopt pipeline, system IPC (Inter-Process Communication, interprocess communication) (comprise message queue, signal, shares storage),, the communication mode such as socket (SOCKET).
In a kind of application example of the present invention, adopt pipeline communication mode can reach good communication performance, and can control well transmission security, correspondingly, the described step of described real object that described call request transferred to based on interprocess communication mode, specifically can comprise:
Sub-step S400, described call request is translated and encoded, and data after coding are transferred to described real object by pipeline, by the corresponding real interface of interface of calling described agent object after described real object decoding.
Wherein, described in, translate and can be used for call request to be translated into the data layout that can transmit on pipeline.For described real object, can after decoding, carry out corresponding call request (as interface function), and execution result is returned to browser by pipeline.
In a kind of application example of the present invention, adopt pipeline communication mode can reach good communication performance, and can control well transmission security, correspondingly, describedly based on interprocess communication mode, receive described real object for the step of the readjustment request of described browser process, specifically can comprise:
Sub-step S500, by pipeline, receive described real object and ask for the readjustment of described browser process, and according to browser process described in decoded readjustment request call.Wherein, the readjustment request of described reception can be translated and coding obtains by described real object, therefore also need decoding before execution.
At this, provide the application example of readjustment:
Example 1,
Suppose that ActiveX plug-in unit need to realize an interface and be called IOleObject, browser is after creating the agent object and real object of ActiveX plug-in unit, can call the SetClientSite method of this interface, the IOleClientSite interface of simultaneously browser self being realized arranges the agent object to ActiveX plug-in unit, and described IOleClientSite interface is passed to real object through pipeline.Like this, when the real object of ActiveX plug-in unit need to be preserved oneself state, can call the SaveObject method in IOleClientSite interface, calling of this SaveObject method is readjustment.
Example 2,
Suppose that ActiveX plug-in unit can provide camera function, when user's choice for use camera is also carried out the operation of opening camera, use the browser page of this ActiveX plug-in unit that the agent object of (callback) function to ActiveX plug-in unit can be provided, described (callback) function is passed to real object through pipeline; And when having made a video recording, real object can call described (callback) function to notify this browser page to be further processed.
Embodiment of the present invention tool has the following advantages:
The first, the present invention creates the agent object of true ActiveX plug-in unit in browser process, creates the real object of true ActiveX plug-in unit in the packing process in sandbox simultaneously; Like this, the real object that can guarantee true ActiveX plug-in unit moves in sandbox, its behavior can be controlled by sandbox, can not affect the security of browser itself, real object due to true ActiveX plug-in unit moves in an independent packing process simultaneously, even if this real object can not cause browser collapse because the problems such as leak cause the collapse of packing process yet, therefore can improve the stability of browser;
Second, agent object of the present invention can be realized the total interface of true ActiveX plug-in unit, and it can be applicable to all ActiveX plug-in units, and creates special agent object without the ActiveX plug-in unit for special, therefore, the present invention has advantages of that versatility is good.
In a preferred embodiment of the present invention, in described request to create, carry the class identifier of true ActiveX plug-in unit;
Before the step of the described agent object that creates the corresponding true ActiveX plug-in unit of described request to create in browser process, described method can also comprise: according to the class identifier of the true ActiveX plug-in unit carrying in described request to create, judge the true ActiveX plug-in unit whether correspondence has been installed in computer system, if not, carry out the described corresponding truly step of the agent object of ActiveX plug-in unit of described request to create that creates in browser process.
For each ActiveX plug-in unit, corresponding unique class identifiers (CLSID, Class ID) all, class identifier can be the random number of 128; Computing machine, in the process of an ActiveX plug-in unit is installed, can write the relevant registry information of ActiveX plug-in unit therewith to registration table, and one of them registry information is exactly class identifier.This preferred embodiment can be according to the class identifier of the true ActiveX plug-in unit carrying in described request to create, judge the true ActiveX plug-in unit whether correspondence has been installed in computer system, in the situation that true ActiveX plug-in unit is installed, browser can call corresponding real object, agent object cannot play a role, therefore no longer create corresponding agent object.
With reference to Fig. 2, show a kind of according to an embodiment of the invention structural drawing of the plug-in component operation device based on browser, the form that this device can plug-in unit runs in browser, specifically can comprise:
The first interception module 201, for intercepting the request to create of ActiveX plug-in unit in browser process;
The first creation module 202, for create the agent object of the corresponding true ActiveX plug-in unit of described request to create in browser process, and returns to browser; Described agent object is for realizing the total interface of true ActiveX plug-in unit;
The second creation module 203 for create packing process at sandbox, and creates the real object of described true ActiveX plug-in unit in described packing process;
The second interception module 204, for intercepting browser for the call request of described agent object;
Call processing module 205, for described call request being transferred to described real object based on interprocess communication mode, by described real object, carry out described call request; And/or
Readjustment processing module 206, for receiving described real object based on interprocess communication mode for the readjustment request of described browser process, and according to browser process described in described readjustment request call, carries out described readjustment by described browser and asks.
In a preferred embodiment of the present invention, described the second creation module 203, can be specifically for create described real object in packing process, described real object is used for realizing the first call address table, wherein, described the first call address table specifically can comprise the interface of described true ActiveX plug-in unit;
Described the first creation module 202, can be specifically for create described agent object in browser process, described agent object is used for realizing the second call address table, wherein, described the second call address table specifically can comprise the interface of described true ActiveX plug-in unit, and in described the second call address table, in interface and described the first call address table, interface has one-to-one relationship.
In another kind of preferred embodiment of the present invention, in described call request, carry calling interface and Transfer Parameters;
, call processing module 205, specifically can comprise:
First calls transmission submodule, be used for based on interprocess communication mode, by the sign of described calling interface, positional information and the described Transfer Parameters of described calling interface in described the second call address table, be transferred to described real object, by described real object in described the first call address table the position identical with the positional information of described calling interface in described the second call address table, obtain the interface identical with the sign of the described calling interface receiving, and carry out according to the Transfer Parameters receiving the interface obtaining.
In another preferred embodiment of the present invention, the described processing module 205 of calling, can be specifically for described call request be translated and is encoded, and data after coding are transferred to described real object by pipeline, by the corresponding real interface of interface of calling described agent object after described real object decoding.
In embodiments of the present invention, preferably, described readjustment processing module 206 specifically can comprise:
Pipeline transmission process submodule, asks for the readjustment of described browser process for receive described real object by pipeline, and according to browser process described in decoded readjustment request call.
In embodiments of the present invention, preferably, in described request to create, carry the class identifier of true ActiveX plug-in unit;
Described device can also comprise:
Judge module, before the operation at the described agent object that creates the corresponding true ActiveX plug-in unit of described request to create in browser process, class identifier according to the true ActiveX plug-in unit carrying in described request to create, judge the true ActiveX plug-in unit whether correspondence has been installed in computer system, if not, trigger described the first creation module and carry out the described corresponding truly operation of the agent object of ActiveX plug-in unit of described request to create that creates in browser process.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the instructions that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize the some or all functions according to the some or all parts in the equipment of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.

Claims (12)

1. the plug-in component operation method based on browser, comprising:
In browser process, intercept the request to create of ActiveX plug-in unit;
In browser process, create the agent object of the corresponding true ActiveX plug-in unit of described request to create, and return to browser; Described agent object is for realizing the total interface of true ActiveX plug-in unit;
In sandbox, create packing process, and in described packing process, create the real object of described true ActiveX plug-in unit;
Intercept browser for the call request of described agent object, and based on interprocess communication mode, described call request is transferred to described real object, by described real object, carry out described call request; And/or
Based on interprocess communication mode, receive described real object for the readjustment request of described browser process, and according to browser process described in described readjustment request call, by described browser, carry out described readjustment and ask.
2. the method for claim 1, it is characterized in that, the described step that creates the real object of described true ActiveX plug-in unit in packing process, comprise: in packing process, create described real object, described real object is used for realizing the first call address table, wherein, described the first call address table comprises the interface of described true ActiveX plug-in unit;
The described step that creates the agent object of the corresponding true ActiveX plug-in unit of described request to create in browser process, comprise: in browser process, create described agent object, described agent object is used for realizing the second call address table, wherein, described the second call address table comprises the interface of described true ActiveX plug-in unit, and in described the second call address table, in interface and described the first call address table, interface has one-to-one relationship.
3. method as claimed in claim 2, is characterized in that, carries calling interface and Transfer Parameters in described call request;
, based on interprocess communication mode, described call request is transferred to the step of described real object, comprising:
Based on interprocess communication mode, by the sign of described calling interface, positional information and the described Transfer Parameters of described calling interface in described the second call address table, be transferred to described real object, by described real object in described the first call address table the position identical with the positional information of described calling interface in described the second call address table, obtain the interface identical with the sign of the described calling interface receiving, and carry out according to the Transfer Parameters receiving the interface obtaining.
4. the method as described in claim 1 or 2 or 3, is characterized in that, the described step of described real object that described call request transferred to based on interprocess communication mode, comprising:
Described call request is translated and encoded, and data after coding are transferred to described real object by pipeline, by the corresponding real interface of interface of calling described agent object after described real object decoding.
5. the method as described in claim 1 or 2 or 3, is characterized in that, describedly based on interprocess communication mode, receives described real object for the step of the readjustment request of described browser process, comprising:
By pipeline, receive described real object and ask for the readjustment of described browser process, and according to browser process described in decoded readjustment request call.
6. method as claimed in claim 1 or 2, is characterized in that, carries the class identifier of true ActiveX plug-in unit in described request to create;
, before the step of the described agent object that creates the corresponding true ActiveX plug-in unit of described request to create in browser process, described method also comprises:
Class identifier according to the true ActiveX plug-in unit carrying in described request to create, judge the true ActiveX plug-in unit whether correspondence has been installed in computer system, if not, carry out the described corresponding truly step of the agent object of ActiveX plug-in unit of described request to create that creates in browser process.
7. the plug-in component operation device based on browser, comprising:
The first interception module, for intercepting the request to create of ActiveX plug-in unit in browser process;
The first creation module, for create the agent object of the corresponding true ActiveX plug-in unit of described request to create in browser process, and returns to browser; Described agent object is for realizing the total interface of true ActiveX plug-in unit;
The second creation module for create packing process at sandbox, and creates the real object of described true ActiveX plug-in unit in described packing process;
The second interception module, for intercepting browser for the call request of described agent object;
Call processing module, for described call request being transferred to described real object based on interprocess communication mode, by described real object, carry out described call request; And/or
Readjustment processing module, for receiving described real object based on interprocess communication mode for the readjustment request of described browser process, and according to browser process described in described readjustment request call, carries out described readjustment by described browser and asks.
8. device as claimed in claim 7, is characterized in that, described the second creation module, specifically for create described real object in packing process, described real object is used for realizing the first call address table, and wherein, described the first call address table comprises the interface of described true ActiveX plug-in unit;
Described the first creation module, specifically for create described agent object in browser process, described agent object is used for realizing the second call address table, wherein, described the second call address table comprises the interface of described true ActiveX plug-in unit, and in described the second call address table, in interface and described the first call address table, interface has one-to-one relationship.
9. device as claimed in claim 8, is characterized in that, carries calling interface and Transfer Parameters in described call request;
, call processing module, comprising:
First calls transmission submodule, be used for based on interprocess communication mode, by the sign of described calling interface, positional information and the described Transfer Parameters of described calling interface in described the second call address table, be transferred to described real object, by described real object in described the first call address table the position identical with the positional information of described calling interface in described the second call address table, obtain the interface identical with the sign of the described calling interface receiving, and carry out according to the Transfer Parameters receiving the interface obtaining.
10. the device as described in claim 7 or 8 or 9, it is characterized in that, the described processing module of calling, specifically for described call request is translated and is encoded, and data after coding are transferred to described real object by pipeline, by the corresponding real interface of interface of calling described agent object after described real object decoding.
11. devices as described in claim 7 or 8 or 9, is characterized in that, described readjustment processing module comprises:
Pipeline transmission process submodule, asks for the readjustment of described browser process for receive described real object by pipeline, and according to browser process described in decoded readjustment request call.
12. install as claimed in claim 7 or 8, it is characterized in that, carry the class identifier of true ActiveX plug-in unit in described request to create;
Described device also comprises:
Judge module, before the operation at the described agent object that creates the corresponding true ActiveX plug-in unit of described request to create in browser process, class identifier according to the true ActiveX plug-in unit carrying in described request to create, judge the true ActiveX plug-in unit whether correspondence has been installed in computer system, if not, trigger described the first creation module and carry out the described corresponding truly operation of the agent object of ActiveX plug-in unit of described request to create that creates in browser process.
CN201310594915.5A 2013-11-21 2013-11-21 Browser based plug-in running method and device Pending CN103617092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310594915.5A CN103617092A (en) 2013-11-21 2013-11-21 Browser based plug-in running method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310594915.5A CN103617092A (en) 2013-11-21 2013-11-21 Browser based plug-in running method and device

Publications (1)

Publication Number Publication Date
CN103617092A true CN103617092A (en) 2014-03-05

Family

ID=50167795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310594915.5A Pending CN103617092A (en) 2013-11-21 2013-11-21 Browser based plug-in running method and device

Country Status (1)

Country Link
CN (1) CN103617092A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216741A (en) * 2014-08-25 2014-12-17 华中科技大学 Android plug-in implementation method and device based on APK (Android Package) dynamic loading and interaction method
CN104539584A (en) * 2014-12-05 2015-04-22 北京奇虎科技有限公司 Anti-injection method for browser, browser client and device
CN104536776A (en) * 2014-11-28 2015-04-22 百度在线网络技术(北京)有限公司 Method and device for running plug-in application in plug-in running environment at host end
CN104951394A (en) * 2014-03-26 2015-09-30 上海宝信软件股份有限公司 System and method for capturing ActiveX control abnormities during configuration running
CN105760755A (en) * 2016-02-24 2016-07-13 浪潮通用软件有限公司 Isolation method of Visual Studio extension packet
CN108830077A (en) * 2018-06-14 2018-11-16 腾讯科技(深圳)有限公司 A kind of script detection method, device and terminal
CN111638975A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Data transmission method and system based on pipeline
CN114721745A (en) * 2022-05-24 2022-07-08 统信软件技术有限公司 Method and device for loading and using local plug-in by browser and computing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100138639A1 (en) * 2008-12-02 2010-06-03 Microsoft Corporation Sandboxed execution of plug-ins
CN102314510A (en) * 2011-09-15 2012-01-11 奇智软件(北京)有限公司 Method and system for executing browser control
CN102436507A (en) * 2011-12-28 2012-05-02 奇智软件(北京)有限公司 Method and device for browsing web pages
CN103019734A (en) * 2012-12-25 2013-04-03 北京奇虎科技有限公司 Activity object implementation method, system and browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100138639A1 (en) * 2008-12-02 2010-06-03 Microsoft Corporation Sandboxed execution of plug-ins
CN102232217A (en) * 2008-12-02 2011-11-02 微软公司 Sandboxed execution of plug-ins
CN102314510A (en) * 2011-09-15 2012-01-11 奇智软件(北京)有限公司 Method and system for executing browser control
CN102436507A (en) * 2011-12-28 2012-05-02 奇智软件(北京)有限公司 Method and device for browsing web pages
CN103019734A (en) * 2012-12-25 2013-04-03 北京奇虎科技有限公司 Activity object implementation method, system and browser

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951394A (en) * 2014-03-26 2015-09-30 上海宝信软件股份有限公司 System and method for capturing ActiveX control abnormities during configuration running
CN104951394B (en) * 2014-03-26 2017-09-08 上海宝信软件股份有限公司 The abnormal system and method for ActiveX control are captured when configuration is run
CN104216741A (en) * 2014-08-25 2014-12-17 华中科技大学 Android plug-in implementation method and device based on APK (Android Package) dynamic loading and interaction method
CN104536776A (en) * 2014-11-28 2015-04-22 百度在线网络技术(北京)有限公司 Method and device for running plug-in application in plug-in running environment at host end
CN104536776B (en) * 2014-11-28 2018-11-23 百度在线网络技术(北京)有限公司 A kind of method and apparatus running plug-in application in the plug-in component operation environment of host end
CN104539584A (en) * 2014-12-05 2015-04-22 北京奇虎科技有限公司 Anti-injection method for browser, browser client and device
CN104539584B (en) * 2014-12-05 2018-01-19 北京奇虎科技有限公司 The anti-method for implanting of browser, browser client and device
CN105760755A (en) * 2016-02-24 2016-07-13 浪潮通用软件有限公司 Isolation method of Visual Studio extension packet
CN105760755B (en) * 2016-02-24 2018-06-19 浪潮通用软件有限公司 Isolation method of Visual Studio extension packet
CN108830077A (en) * 2018-06-14 2018-11-16 腾讯科技(深圳)有限公司 A kind of script detection method, device and terminal
CN111638975A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Data transmission method and system based on pipeline
CN114721745A (en) * 2022-05-24 2022-07-08 统信软件技术有限公司 Method and device for loading and using local plug-in by browser and computing equipment

Similar Documents

Publication Publication Date Title
CN103617092A (en) Browser based plug-in running method and device
CN102929656B (en) Use method and the client of ActiveX plug-in in browser
US9015672B2 (en) Interface simulator for test rig in data distribution service
CN102810040B (en) A kind of display processing method, device and computer system
US20130097298A1 (en) Standardized adapter interface for multiple browser-based devices
WO2016155388A1 (en) Method and device for installing and running application
US20120174075A1 (en) Automatically Testing a Web Application
CN102207903A (en) Automatically redirecting method calls for unit testing
CN103631664A (en) Inter-process communication method and device
US9489182B1 (en) Transparent process interception
US9824000B1 (en) Testing calling code dynamically with random error injection based on user-specified configuration
CN103577227A (en) Method for loading plug-ins, browser and server
CN103226474A (en) Method, device and system for interaction between webpage script and browser program
CN103019817A (en) Method and device for page interaction
CN103064750A (en) Interrupt restoring method and device for browser control
US8443292B2 (en) Scripting application with privacy mode coordination
CN103034503B (en) A kind of script execution, system and browser
US20040024856A1 (en) Method and system for a services environment management engine
CN103019818A (en) Page interaction method and device
CN102446253A (en) Webpage trojan detection method and system
CN112988175A (en) Cross-platform application installation package generation method, device, medium and electronic equipment
CN108733602A (en) Data processing
EP3435229B1 (en) System integration using virtualization
CN103077092A (en) Browser control recovering method and system
KR102054980B1 (en) Computing system and method for automatically generating embedded software on virtualized system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140305