CN103034532B - A kind of IE browser realizes method and the browser of process multiplexing - Google Patents

A kind of IE browser realizes method and the browser of process multiplexing Download PDF

Info

Publication number
CN103034532B
CN103034532B CN201210530803.9A CN201210530803A CN103034532B CN 103034532 B CN103034532 B CN 103034532B CN 201210530803 A CN201210530803 A CN 201210530803A CN 103034532 B CN103034532 B CN 103034532B
Authority
CN
China
Prior art keywords
browser
authority
page
thread
webpage
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.)
Active
Application number
CN201210530803.9A
Other languages
Chinese (zh)
Other versions
CN103034532A (en
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
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 CN201210530803.9A priority Critical patent/CN103034532B/en
Publication of CN103034532A publication Critical patent/CN103034532A/en
Application granted granted Critical
Publication of CN103034532B publication Critical patent/CN103034532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses method and the browser realizing process multiplexing in a kind of IE browser.Described method and browser to solve the technical problem that and to be, is managed the security permission of browser process;Process is rendered according to the authority distribution of the process that renders existed;Prevent cross-domain attack, prevent the problem such as external interface that the page uses the random access browser of JavaScript to provide.Described method includes: preset the browser maximum process number of IE browser side;The browse request to new web page is initiated in IE browser side;Judge that the current browser process number that has has reached described browser maximum process number;Finding in described existing browser process uses IE browser kernel to carry out the process rendered;The authority of the process found described in examining whether with the permission match opened needed for described new web page;Page thread in the described process that use authority matches opens described webpage.

Description

A kind of IE browser realizes method and the browser of process multiplexing
Technical field
The present invention relates to field of computer technology, particularly relate to the process using method of a kind of browser and clear Look at device.
Background technology
Current browser can realize the mixed model of multi-process.Process model in browser can enter The in good time conversion of row and adaptation.
Microsoft IE8 Loosely-Coupled IE(is abbreviated as LCIE, and full name is: Loosely-Coupled Internet Explorer, loose coupling Internet probe device): at latest generation browser IE8(Internet Explorer8, Internet probe device the 8th generation) in, Microsoft with the addition of and is referred to as " Loosely-Coupled IE(LCIE) framework ";By Loosely-Coupled IE(LCIE) framework, IE8 is by main The process that browses is isolated with the process of rendering;Main process processes browser, user interface and framework (window Mouthful), for the Save option card.In IE8, multiple tab are to operate in identical process, But the tab of different level of securitys is separated.
The process model of a kind of browser is mixing process mode.Under this pattern, browser frames is according to beating The quantity intelligence opening the page creates process.Open the resource occupation after multiple page less, can preferably solve Certainly the problem of web page resources leakage, the most of good performance when webpage collapses.Process pipe under this kind of pattern Reason, every n page uses a process, had both saved resource occupation, and do not interfered with again other process The page, and when page Close All in certain process when, this process exits, and now process accounts for Resource will be discharged thoroughly.
The process model of a kind of browser is multi-process pattern: each webpage runs in single process. Open the resource occupation after multiple page more, but can thoroughly solve the problem of web page resources leakage, at net Page does not interfere with each other the when of ging wrong.User's use that suggestion machine configuration is higher, in order to preferably play Machine performance.
Above-mentioned browser employs and browses multiple page at same loading IE (Trident) kernel (Trident, is also called MSHTML, is the title of the typesetting engine of Internet Explorer software) Process is assigned with different threads for different page browsings.When newly opening the page, whether search has wash with watercolours Dye process still has and idle renders thread, if had, uses the idle process that renders of this process to carry out page Face resolves and renders.But, in above-mentioned browser process model when process multiplexing, for being switched Process to process multiplexing to be carried out the most does not provides the Managed Solution on security permission.
Summary of the invention
The technical problem to be solved is to provide a kind of method or browser, and it can solve the problem that IE Security permission problem of management in the process of browser process to be carried out multiplexing;
For solving above-mentioned technical problem, an aspect of of the present present invention provides in a kind of IE browser and realizes process again Method, preset IE browser side browser maximum process number;Initiate newly in IE browser side The browse request of webpage;Judge that the current browser process number that has has reached described browser maximum process number; Finding in described existing browser process uses IE browser kernel to carry out the process rendered;Examine described The authority of the process found whether with the permission match opened needed for described new web page;Use authority phase Page thread in the described process joined opens described webpage.
According to embodiments of the invention, this method can also include:
During if it is determined that the most browser process number is not up to described browser maximum process number, newly-built One uses the process that IE browser kernel carries out rendering, opens the webpage of described request.
According to embodiments of the invention, described in this method, preset the browser maximum process number of IE browser side Step can also include: sets according to the hardware resource situation of the local computing device running described IE browser Determine the browser maximum process number of IE browser side;Described hardware resource situation includes, cpu performance or Video card capabilities or internal memory performance or any aforementioned both or the combination of three or by any aforementioned both Or the synthetic performance examination that three obtains with pre-defined rule.
According to embodiments of the invention, described in this method, use the page in the described process that authority matches Thread opens described webpage step, it is also possible to including: select the idle page thread in described process Open described webpage;If there is not the page thread of free time in described process, and the page in described process Thread Count is less than the maximum allowable Thread Count of described process, then in described process, newly-built page thread opens institute State webpage;If there is not the page thread of free time in described process, and the page line number of passes in described process Reach the maximum allowable Thread Count of described process, then notice host process searches other existing processes, determines another In individual authority with open the existing process that described webpage requested permissions matches and open described webpage.
According to embodiments of the invention, described in this method, use the page in the described process that authority matches Thread opens described webpage step, it is also possible to including: if there is not the page thread of free time in described process, Then notice host process searches other existing processes, determines and weighs with needed for opening described webpage in another authority The existing process that limit matches opens described webpage.
According to embodiments of the invention, examine described in this method described in the authority of process that finds whether with Open the permission match step needed for described new web page, it is also possible to if include to following arbitrary or any wherein The combination of dry authority is examined: running background authority;Access bookmarks authority;Access collection authority; Access context menu authority;Access cookie authority;Access geolocation interface authority;Access is gone through Records of the Historian record authority;Access Shipping Options Page authority;Unlimited Web storage capacity authority.
According to embodiments of the invention, examine described in described in this method described in the authority of process that finds be No with open the permission match step needed for described new web page, it is also possible to include that find described in enumerating enters The authority of journey, and one by one compared with the authority opened needed for described webpage.
An aspect of of the present present invention provides the browser realizing process multiplexing in a kind of IE browser, including: pre- If maximum process digital-to-analogue block, for presetting the browser maximum process number of IE browser side;Modulus is asked in initiation Block, for initiating the browse request to new web page in IE browser side;Judgement process digital-to-analogue block, is used for sentencing The disconnected current browser process number that has has reached described browser maximum process number;Search IE scheduler module, IE browser kernel is used to carry out the process rendered for finding in described existing browser process;Examine Process authority module, the authority of the process found described in examine whether with open described new web page institute The permission match needed;Open Web page module, be used for the page line in the described process using authority to match Journey opens described webpage.
According to embodiments of the invention, this browser can also include: newly-built scheduler module, if for When judging that currently having browser process number is not up to described browser maximum process number, a newly-built use IE browser kernel carries out the process rendered, and opens the webpage of described request.
According to embodiments of the invention, preset maximum process digital-to-analogue block described in this browser, it is also possible to be used for, IE browser side is set according to the hardware resource situation of the local computing device running described IE browser Browser maximum process number;Described hardware resource situation includes, cpu performance or video card capabilities or interior Sustainability energy or any aforementioned both or the combination of three or by any aforementioned both or three with pre-set pattern The synthetic performance examination then obtained.
According to embodiments of the invention, open Web page module described in this browser, it is also possible to be used for: select Idle page thread in described process opens described webpage;If described process does not exist the free time Page line number of passes in page thread, and described process is less than the maximum allowable Thread Count of described process, then exist In described process, newly-built page thread opens described webpage;If described process does not exist the page line of free time Page line number of passes in journey, and described process reaches the maximum allowable Thread Count of described process, then notice master enters Journey searches other existing processes, determine in another authority with open what described webpage requested permissions matched Existing process opens described webpage.
According to embodiments of the invention, open Web page module described in this browser, it is also possible to be used for: if institute State the page thread that there is not the free time in process, then notice host process searches other existing processes, determines another In one authority with open the existing process that described webpage requested permissions matches and open described webpage.
According to embodiments of the invention, verification process authority module described in this browser, it is also possible to be used for, Combination to the most some following arbitrary or any authorities is examined: running background authority;Access bookmarks Authority;Access collection authority;Access context menu authority;Access cookie authority;Access Geolocation interface authority;Access historical record authority;Access Shipping Options Page authority;Unlimited Web storage Ability authority.
According to embodiments of the invention, verification process authority module described in this browser, it is also possible to be used for, The authority of the process found described in enumerating, and one by one compared with the authority opened needed for described webpage.
The solution of the present invention can solve the problem that the security permission in the process of IE browser process to be carried out multiplexing Problem of management, it is possible to ensure required for the webpage carrying out being opened during process multiplexing in IE browser After the authority of authority and process is mated, the page thread in the process that use authority matches opens institute State webpage, so ensure the legal power safety in multiplexing process, it is achieved render process according to existed Authority distribution render process to open webpage.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention Art means, and can being practiced according to the content of description, and in order to allow, the present invention's is above and other Objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit for this Field those of ordinary skill will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical parts.In the accompanying drawings:
Fig. 1 shows and realizes process multiplexing according in a kind of IE browser described in one embodiment of the invention Method flow diagram;
Fig. 2 shows the IE kernel browser system according to process multiplexing a kind of described in one embodiment of the invention The system block diagram of system block diagram;
Fig. 3 shows in the method realizing process multiplexing in a kind of IE browser according to embodiments of the present invention Process and thread structure figure;
Fig. 4 shows that the IE that the thread of process 310 in Fig. 3 is constituted renders thread pool 310C structure chart;
Fig. 5 shows the side realizing process multiplexing in a kind of IE browser described according to embodiments of the present invention One embodiment flow chart of method.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
As it is shown in figure 1, for realizing process multiplexing according in a kind of IE browser described in the embodiment of the present invention Method flow diagram, comprise the following steps:
Step 101, presets the browser maximum process number of IE browser side;
Such as, the maximum process number presetting IE browser survey that selects according to user is 10;
Preferably, the browser maximum process number step of described default IE browser side includes: according to running The hardware resource situation of the local computing device of described IE browser sets the browser of IE browser side Big process number;Described hardware resource situation includes, cpu performance or video card capabilities or internal memory performance, Or any aforementioned both or the combination of three or obtained with pre-defined rule by any aforementioned both or three Synthetic performance examination.
Such as, the computing power situation detecting operation browser is CPU:Intel Core i7, dominant frequency 2.8GHz video card capabilities: in NVIDIA GeForce GTX 680M SLI core frequency 720MHz Deposit: 4GB, according to the performance of this computer, determine that browser maximum process number is 10.
Step 102, initiates the browse request to new web page in IE browser side.
Such as, when user is in the page opened by IE browser, click on an address link Http:// hao.360.cn/, we normal direction described in IE browser initiate for this address webpage browse please Ask.
Step 103, it is judged that the current browser process number that has has reached described browser maximum process number;Excellent Choosing, also include: if it is determined that currently have browser process number to be not up to described browser maximum process During number, a newly-built process using IE browser kernel to carry out rendering, open the webpage of described request.
Such as: browser maximum process number is 10, if the existing process of current browser is 10, then carry out Step 104 and 104 later steps;If the existing process of current browser is 6, less than browser Big process number 10, the most newly-built process using IE browser kernel to carry out rendering, open http://hao.360.cn/。
Step 104, finds and uses IE browser kernel to carry out rendering in described existing browser process Process;
Such as: browser maximum process number is 10, existing 10 processes of current browser, this method is searched IE browser kernel is used to render to wherein 7 processes.
Step 105, examine described in the authority of process that finds whether with the power opened needed for described new web page Limit coupling;Preferably, including the authority of the process found described in enumerating, and one by one with open described net Authority needed for Ye compares.Preferably, including the combination to the most some following arbitrary or any authorities Examine: running background authority;Access bookmarks authority;Access collection authority;Access context dish Single authority;Access cookie authority;Access geolocation interface authority;Access historical record authority; Access Shipping Options Page authority;Unlimited Web storage capacity authority.
Such as: opening described http://hao.360.cn/ needs running background authority, accesses historical record authority, The process entering 7 the use IE browser kernels found is enumerated one by one, wherein A process, B Process has running background authority, accesses historical record authority.
Step 106, the page thread in the described process that use authority matches opens described webpage.
Preferably, including: select the idle page thread in described process to open described webpage;If Described process does not exist free time page thread, and the page line number of passes in described process be less than described in enter The maximum allowable Thread Count of journey, then in described process, newly-built page thread opens described webpage;Enter described in if Journey does not exist the page thread of free time, and the page line number of passes in described process reaches described process maximum Allowed line number of passes, then notice host process searches other existing processes, determines in another authority and opens institute State the existing process that webpage requested permissions matches and open described webpage.
Such as: according to upper example, A process in 7 processes using IE browser kernel to enter is used to open institute State webpage.
If existing 5 page threads of described A process, wherein 1 page thread is in idle condition, then Described http://hao.360.cn/ webpage is opened with described page thread.
If existing 5 page threads of described A process, it is not located in idle condition, then compares the page The maximum thread that Thread Count and A process allow, the maximum thread that A process allows is 7, existing Page line number of passes 5 is less than the maximum process number 7 allowed, and the most newly-built page thread is opened described Http:// hao.360.cn/ webpage.
If existing 7 page threads of described A process, it is not located in idle condition, then compares the page The maximum thread that Thread Count and A process allow, the maximum thread that A process allows is 7, existing Page line number of passes 7 reaches the maximum process number 7 allowed, then notice host process searches other existing processes, Determine in another authority with open the existing process (such as, process B) that described webpage requested permissions matches Open described http://hao.360.cn/ webpage.
Another kind of preferred version is: if there is not the page thread of free time in described process, then notice master enters Journey searches other existing processes, determine in another authority with open what described webpage requested permissions matched Existing process opens described webpage.
Such as: if existing 5 page threads of described A process, be not located in idle condition, do not compare The maximum thread 7 that existing page line number of passes 5 and A process allows, the most then notice host process searches it He has process, determine in another authority with open the existing process that described webpage requested permissions matches (such as, process B) opens described http://hao.360.cn/ webpage.
As in figure 2 it is shown, for the IE kernel browser according to a kind of process multiplexing described in the embodiment of the present invention System block diagram, including with lower module:
Preset maximum process digital-to-analogue block 201: for presetting the browser maximum process number of IE browser side; Preferably, maximum process digital-to-analogue block 201 is preset for setting according to the local computing running described IE browser Standby hardware resource situation sets the browser maximum process number of IE browser side;Described hardware resource situation Including, cpu performance or video card capabilities or internal memory performance or any aforementioned both or the combination of three, Or the synthetic performance examination obtained with pre-defined rule by any aforementioned both or three.
Initiate request module 202: for initiating the browse request to new web page in IE browser side;
Judgement process digital-to-analogue block 203: be used for judging that currently having browser process number has reached described browser Maximum process number;
Search IE scheduler module 204: be used for finding use IE browser in described existing browser process Kernel carries out the process rendered;
Verification process authority module 205: the authority of the process found described in examine whether with open institute State the permission match needed for new web page;Preferably, verification process authority module 205 includes for enumerating State the authority of the process found, and one by one compared with the authority opened needed for described webpage.Preferably, Verification process authority module 205 includes for carrying out the combination of the most some following arbitrary or any authorities Examine: running background authority;Access bookmarks authority;Access collection authority;Access context menu is weighed Limit;Access cookie authority;Access geolocation interface authority;Access historical record authority;Visit Ask Shipping Options Page authority;Unlimited Web storage capacity authority.
Open Web page module 206: the page thread in the described process using authority to match is opened Described webpage.
Preferably, open Web page module 206 for: select the idle page thread in described process Open described webpage;If there is not the page thread of free time in described process, and the page in described process Thread Count is less than the maximum allowable Thread Count of described process, then in described process, newly-built page thread opens institute State webpage;If there is not the page thread of free time in described process, and the page line number of passes in described process Reach the maximum allowable Thread Count of described process, then notice host process searches other existing processes, determines another In individual authority with open the existing process that described webpage requested permissions matches and open described webpage.
Preferably, open Web page module 206 can be additionally used in: if described process does not exist the page of free time Thread, then notice host process searches other existing processes, determines in another authority and opens described webpage The existing process that requested permissions matches opens described webpage.
Preferably, described browser also includes:
Newly-built scheduler module 207: for if it is determined that currently have browser process number be not up to described in browse During device maximum process number, a newly-built process using IE browser kernel to carry out rendering, open described asking The webpage asked.
Such as Fig. 3, for according in the method realizing process multiplexing in a kind of IE browser of the embodiment of the present invention Process and thread structure figure.As it can be seen, host process 300 includes process 310, process 320, process 330, process 340 is until process n350, is total to n process;Process 310 includes thread 311, thread 312, thread 313;Process 320 includes thread 321, thread 322, thread 323.
As Fig. 4, the IE constituted for such as the thread of process 310 in Fig. 3 render thread pool 310C structure chart. IE renders thread pool 310C and includes thread 311, thread 312, thread 313 as shown in the figure, and follow-up Newly-built thread 314, thread 315 in application the inventive method.
According to the inventive method, the browser maximum process number presetting IE browser side is n;Browse at IE The browse request to new web page http://hao.360.cn/ is initiated in device side;Judge current browser process number N has reached described browser maximum process number n;Finding in described existing browser process uses IE clear The process that device kernel of looking at carries out rendering is process 310, process 320;The 310 of the process found described in examining Authority and the permission match opened needed for described new web page http://hao.360.cn/;Authority is used to match Page thread in described process 310 opens specifically comprising the following steps that of described webpage
Select the idle page thread in described process to open described webpage, enumerate IE and render thread pool In thread, circulate rendering task queue, select one idle meet security permission render thread.
Such as, if the thread 311 in process 310 is in idle condition, then institute is opened with thread 311 State webpage.
If there is not the page thread of free time in described process, and the page line number of passes in described process is less than The maximum allowable Thread Count of described process, then in described process, newly-built page thread opens described webpage;
Such as: if 3 threads in process 310 are not located in idle condition, and page line number of passes 3 Less than the maximum allowable Thread Count of process 310 5, then in process 310, newly-built page thread 314 is opened described Webpage.
If there is not the page thread of free time in described process, and the page line number of passes in described process reaches The maximum allowable Thread Count of described process, then notice host process searches other existing processes, determines that another is weighed In limit with open the existing process that described webpage requested permissions matches and open described webpage;
Such as: if 3 threads 311 in process 310, thread 312, thread 313 are not located in sky Not busy state, and the most newly-built two threads i.e. thread 314, the thread 315 be also not located in idle condition, Now page line number of passes 5 is equal to the maximum allowable Thread Count of process 310 5, then notice host process 300 searches it He has process, determine in another authority with open the existing process that described webpage requested permissions matches Open described webpage;
Another kind of preferred version is: if there is not the page thread of free time in described process, then notice master enters Journey searches other existing processes, determine in another authority with open what described webpage requested permissions matched Existing process opens described webpage.
Such as: if 3 threads in process 310 are not located in idle condition, do not judge process 310 Existing Thread Count and the size of the maximum allowable Thread Count of process 310, directly notify that host process 300 searches it He has process, determine in another authority with open the existing process that described webpage requested permissions matches Open described webpage.
Such as Fig. 5: for according to the side realizing process multiplexing in a kind of IE browser as described in the embodiment of the present invention One embodiment flow chart of method, comprises the following steps:
Step 501: browser starts sets up host process and page process (rendering process);This step is one In the case of as, the state of browser work, is also the state before following steps multiplexing page process and basis;
Step 502: preset the browser maximum process number of IE browser side;Typically, browse according to operation The hardware case of the computer of device presets described maximum process number;
Step 503: judge that the current browser process number that has has reached described browser maximum process the most Number;If described existing process number has reached described maximum process number, perform step 504;If it is not, perform Step 510;
Step 504: enumerate use Trident(IE) kernel render process;What is called is enumerated, the most one by one Search, when finding a process that renders using Trident kernel, perform subsequent step 505;
Step 505: judge whether to have enumerated all use Trident kernels renders process;If enumerated Complete all use Trident kernels render process, then perform step 510;If it is not, then perform step 506;
Step 506: examine the authority of this process;I.e. examine the use Trident kernel that finds render into The authority of journey;
Step 507: examine the authority of this process whether with the permission match opened needed for described new web page;If Do not mate, then go to step 504 enumerate another use Trident kernel render process;If coupling, then Perform step 508;
Step 508: whether the Thread Count examining this process has been maxed out allowed line number of passes;If;Then Go to step 504 enumerate another use Trident kernel render process;If it is not, perform step 509;
Step 509: the process that notice finds, initiates new page browsing process;I.e. with through abovementioned steps The 508 satisfactory processes found open the page;
Step 510: a newly-built process that renders using Trident kernel initiation browse webpage process. According to abovementioned steps, execution step 510 in both cases, one, judging current browser process number still Not up to during browser maximum process number, perform step 510;Two, at all use Trident kernels The process of rendering is enumerated complete, but when not finding available process, performs step 510.
The scheme of embodiments of the invention can solve the problem that in the process of IE browser process to be carried out multiplexing Security permission problem of management, it is possible to ensure the webpage carrying out being opened during process multiplexing in IE browser Page line after required authority and the authority of process are mated, in the process that use authority matches Journey opens described webpage, so ensures the legal power safety in multiplexing process, it is achieved according to existed The authority distribution rendering process renders process to open webpage.
Algorithm and display be not solid with any certain computer, virtual system or miscellaneous equipment provided herein Have relevant.Various general-purpose systems can also be used together with based on teaching in this.As described above, Construct the structure required by this kind of system to be apparent from.Additionally, the present invention is also not for any specific Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, And the description done language-specific above is the preferred forms in order to disclose the present invention.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this Bright embodiment can be put into practice in the case of not having these details.In some instances, the most in detail Known method, structure and technology are carefully shown, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure help to understand in each inventive aspect one or Multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention sometimes by It is grouped into together in single embodiment, figure or descriptions thereof.But, should be by the disclosure Method is construed to reflect an intention that i.e. the present invention for required protection requires that ratio is in each claim The more feature of feature being expressly recited.More precisely, as the following claims reflect Like that, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Claims of body embodiment are thus expressly incorporated in this detailed description of the invention, and the most each right is wanted Ask itself all as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit excludes each other, can use any combination that (this specification is included companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other Some feature included in embodiment rather than further feature, but the combination of the feature of different embodiment Mean to be within the scope of the present invention and formed different embodiments.Such as, in following right In claim, one of arbitrarily can mode using in any combination of embodiment required for protection.
The all parts embodiment of the present invention can realize with hardware, or with at one or more processor The software module of upper operation realizes, or realizes with combinations thereof.Those skilled in the art should manage Solve, microprocessor or digital signal processor (DSP) can be used in practice to realize according to this The some or all functions of the some or all parts in Fig. 2 equipment of inventive embodiments.The present invention It is also implemented as part or all the equipment for performing method as described herein or device Program (such as, computer program and computer program).Such program realizing the present invention can To store on a computer-readable medium, or can be to have the form of one or more signal.So Signal can download from internet website and obtain, or provide on carrier signal, or with any Other forms provide.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and And those skilled in the art can design replacement enforcement without departing from the scope of the appended claims Example.In the claims, any reference marks that should not will be located between bracket is configured to claim Restriction.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.It is positioned at unit Word "a" or "an" before part does not excludes the presence of multiple such element.The present invention can borrow Help include the hardware of some different elements and realize by means of properly programmed computer.At row If having lifted in the unit claim of equipment for drying, several in these devices can be by same firmly Part item specifically embodies.Word first, second and third use do not indicate that any order.Can It is title by these word explanations.

Claims (14)

1. the method realizing process multiplexing in IE browser, including:
Preset the browser maximum process number of IE browser side;
The browse request to new web page is initiated in IE browser side;
Judge that the current browser process number that has has reached described browser maximum process number;
Finding in described existing browser process uses IE browser kernel to carry out the process rendered;
The authority of the process found described in examining whether with the permission match opened needed for described new web page;
Page thread in the described process that use authority matches opens described webpage;
Page thread in the described process that use authority matches opens described webpage, farther includes: Enumerate the thread that IE renders in thread pool, circulate rendering task queue, select one idle to meet safety Authority render thread.
2. method as claimed in claim 1, it is characterised in that also include:
During if it is determined that the most browser process number is not up to described browser maximum process number, newly-built One uses the process that IE browser kernel carries out rendering, opens the webpage of described request.
3. method as claimed in claim 1, it is characterised in that browsing of described default IE browser side Device maximum process number step includes: according to the hardware money of the local computing device running described IE browser Source situation sets the browser maximum process number of IE browser side;
Described hardware resource situation includes, cpu performance or video card capabilities or internal memory performance or appoint What the most aforementioned both or combination of three or by any aforementioned both or three with pre-defined rule obtain comprehensive Performance index.
4. method as claimed in claim 1, it is characterised in that it is described that described use authority matches Page thread in process opens described webpage step, including:
The idle page thread in described process is selected to open described webpage;
If there is not the page thread of free time in described process, and the page line number of passes in described process is less than The maximum allowable Thread Count of described process, then in described process, newly-built page thread opens described webpage;
If there is not the page thread of free time in described process, and the page line number of passes in described process reaches The maximum allowable Thread Count of described process, then notice host process searches other existing processes, determines that another is weighed In limit with open the existing process that described webpage requested permissions matches and open described webpage.
5. method as claimed in claim 1, it is characterised in that it is described that described use authority matches Page thread in process opens described webpage step, including: if described process does not exist the page of free time Upper thread journey, then notice host process searches other existing processes, determines in another authority and opens described net The existing process that page requested permissions matches opens described webpage.
6. as claimed in claim 1 method, it is characterised in that described in examine described in the process that finds Authority whether with the permission match step opened needed for described new web page, including to following arbitrary or any The combination of the most some authorities is examined:
Running background authority;
Access bookmarks authority;
Access collection authority;
Access context menu authority;
Access cookie authority;
Access geolocation interface authority;
Access historical record authority;
Access Shipping Options Page authority;
Unlimited Web storage capacity authority.
7. as claimed in claim 1 method, it is characterised in that described in examine described in the process that finds Authority whether with the permission match step opened needed for described new web page, including find described in enumerating The authority of process, and one by one compared with the authority opened needed for described webpage.
8. an IE kernel browser for process multiplexing, including:
Preset maximum process digital-to-analogue block, for presetting the browser maximum process number of IE browser side;
Initiate request module, for initiating the browse request to new web page in IE browser side;
Judgement process digital-to-analogue block, is used for judging currently having browser process number and has reached described browser Big process number;
Search IE scheduler module, in being used for finding described existing browser process using IE browser Core carries out the process rendered;
Verification process authority module, the authority of the process found described in examine whether with open described Permission match needed for new web page;
Opening Web page module, the page thread being used in the described process using authority to match is opened described Webpage;
Page thread in the described process that use authority matches opens described webpage, farther includes: Enumerate the thread that IE renders in thread pool, circulate rendering task queue, select one idle to meet safety Authority render thread.
9. browser as claimed in claim 8, it is characterised in that also include:
Newly-built scheduler module, for if it is determined that currently have browser process number to be not up to described browser During maximum process number, a newly-built process using IE browser kernel to carry out rendering, open described asking The webpage asked.
10. browser as claimed in claim 8, it is characterised in that described default maximum process digital-to-analogue block For, set IE according to the hardware resource situation of the local computing device running described IE browser and browse The browser maximum process number of device side;
Described hardware resource situation includes, cpu performance or video card capabilities or internal memory performance or appoint What the most aforementioned both or combination of three or by any aforementioned both or three with pre-defined rule obtain comprehensive Performance index.
11. browsers as claimed in claim 8, it is characterised in that described in open Web page module for:
The idle page thread in described process is selected to open described webpage;
If there is not the page thread of free time in described process, and the page line number of passes in described process is less than The maximum allowable Thread Count of described process, then in described process, newly-built page thread opens described webpage;
If there is not the page thread of free time in described process, and the page line number of passes in described process reaches The maximum allowable Thread Count of described process, then notice host process searches other existing processes, determines that another is weighed In limit with open the existing process that described webpage requested permissions matches and open described webpage.
12. browsers as claimed in claim 8, it is characterised in that described in open Web page module for,
If described process does not exist the page thread of free time, then notify that host process is searched other and entered Journey, determine in another authority with open the existing process that described webpage requested permissions matches and open described Webpage.
13. browsers as claimed in claim 8, it is characterised in that described verification process authority module is used In,
Combination to the most some following arbitrary or any authorities is examined:
Running background authority;
Access bookmarks authority;
Access collection authority;
Access context menu authority;
Access cookie authority;
Access geolocation interface authority;
Access historical record authority;
Access Shipping Options Page authority;
Unlimited Web storage capacity authority.
14. browsers as claimed in claim 8, it is characterised in that described verification process authority module is used In,
The authority of the process found described in enumerating, and one by one compared with the authority opened needed for described webpage Relatively.
CN201210530803.9A 2012-12-10 2012-12-10 A kind of IE browser realizes method and the browser of process multiplexing Active CN103034532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210530803.9A CN103034532B (en) 2012-12-10 2012-12-10 A kind of IE browser realizes method and the browser of process multiplexing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210530803.9A CN103034532B (en) 2012-12-10 2012-12-10 A kind of IE browser realizes method and the browser of process multiplexing

Publications (2)

Publication Number Publication Date
CN103034532A CN103034532A (en) 2013-04-10
CN103034532B true CN103034532B (en) 2016-09-28

Family

ID=48021455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210530803.9A Active CN103034532B (en) 2012-12-10 2012-12-10 A kind of IE browser realizes method and the browser of process multiplexing

Country Status (1)

Country Link
CN (1) CN103034532B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034535B (en) * 2012-12-10 2016-09-28 北京奇虎科技有限公司 Process multiplexing method and IE browser for IE browser
CN110704782A (en) * 2019-09-30 2020-01-17 北京字节跳动网络技术有限公司 Page response method and device, electronic equipment and storage medium
CN113568720A (en) * 2020-04-29 2021-10-29 阿里巴巴集团控股有限公司 Process management, development and configuration method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467565A (en) * 2010-11-19 2012-05-23 奇智软件(北京)有限公司 Browser kernel switching method
CN102467628A (en) * 2010-11-12 2012-05-23 深圳市虹安信息技术有限公司 Method for protecting data based on browser kernel intercept technology
CN102662837A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Testing method and system of browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663318B (en) * 2012-03-22 2015-04-08 百度在线网络技术(北京)有限公司 Browser Process Privilege control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467628A (en) * 2010-11-12 2012-05-23 深圳市虹安信息技术有限公司 Method for protecting data based on browser kernel intercept technology
CN102467565A (en) * 2010-11-19 2012-05-23 奇智软件(北京)有限公司 Browser kernel switching method
CN102662837A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Testing method and system of browser

Also Published As

Publication number Publication date
CN103034532A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
US10410003B2 (en) Multiple containers assigned to an application
CN107111579B (en) System on chip including reconfigurable resources for multiple compute subsystems
US7685376B2 (en) Method to support heterogeneous memories
CN106528210B (en) A kind of operation method and device of application program
CN109213697A (en) The storage of intelligence memory data or loading method and device
CN107622211A (en) A kind of large data sets monarchial power limit access control method and device
CN107704568B (en) Method and device for adding test data
CN103034532B (en) A kind of IE browser realizes method and the browser of process multiplexing
US20230177141A1 (en) Credential manager integration
CN102981903B (en) A kind of method that in multi-core browser, process is multiplexing and multi-core browser thereof
US8560782B2 (en) Method and apparatus for determining access permissions in a partitioned data processing system
CN109586982A (en) A kind of function backup method and device
CN103034535B (en) Process multiplexing method and IE browser for IE browser
CN106502759B (en) A kind of data access method, code call method and virtual machine monitor
CN109558241A (en) A kind of method and device obtaining spin lock
CN109992526A (en) A kind of read-write management method and relevant apparatus
US9038075B2 (en) Batch execution of system calls in an operating system
US20200272582A1 (en) Data cache segregation for spectre mitigation
CN102148754A (en) Loading method and device for FPGA (field programmable gate array) logic editions
CN105243134B (en) A kind of method and apparatus handling browser of being held as a hostage
CN106095577A (en) The optimized treatment method of shared drives based on many path processors and device
CN108345791A (en) Processor security detection method, system and detection device
CN118200054B (en) Security detection method and device, storage medium and electronic equipment
CN107944297B (en) Control method and device for accessing file
CN104539614B (en) A kind of method and apparatus of website detection number of concurrent control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220714

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right