CN103106196B - A kind of method and apparatus recovering browsing device net page - Google Patents

A kind of method and apparatus recovering browsing device net page Download PDF

Info

Publication number
CN103106196B
CN103106196B CN201110351971.7A CN201110351971A CN103106196B CN 103106196 B CN103106196 B CN 103106196B CN 201110351971 A CN201110351971 A CN 201110351971A CN 103106196 B CN103106196 B CN 103106196B
Authority
CN
China
Prior art keywords
page
data
window
browser
browse state
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
CN201110351971.7A
Other languages
Chinese (zh)
Other versions
CN103106196A (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.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110351971.7A priority Critical patent/CN103106196B/en
Publication of CN103106196A publication Critical patent/CN103106196A/en
Application granted granted Critical
Publication of CN103106196B publication Critical patent/CN103106196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method and apparatus recovering browsing device net page, belong to browser field. Described method includes: when exiting browser, preserves the chained list node data of the window of described browser, page data and browse state data; When being again started up described browser, recover the respective page of the window of described browser according to the chained list node data preserved, page data and browse state data. Described device includes: preserve module, for when exiting browser, preserving the chained list node data of the window of described browser, page data and browse state data; Recover module, for when being again started up described browser, recovering the respective page of the window of described browser according to the chained list node data preserved, page data and browse state data. The present invention passes through such scheme, again searches this webpage without user and again pulls this webpage from network, dramatically saves on network traffics, decreases webpage recovery time, thus improving Consumer's Experience.

Description

A kind of method and apparatus recovering browsing device net page
Technical field
The present invention relates to browser field, particularly to a kind of method and apparatus recovering browsing device net page.
Background technology
On the non-intelligent mobile terminal of some low sides, operating in the browser under single task environment can not run with other application program simultaneously, so to start other application program, it is necessary to first exit browser.
At present, after user exits browser, when being again introduced into browser, can only see the start page of browser, it is impossible to see the webpage opened when last time exits. If user wants see the webpage opened when last time exits and continue to browse, it is necessary to re-enter term and find this webpage, and click its link, again the corresponding page is pulled from network, so can waste network traffics, increase webpage recovery time, affect Consumer's Experience to a great extent.
Summary of the invention
For saving network flow, reduce webpage recovery time, embodiments provide a kind of method and apparatus recovering browsing device net page. Described technical scheme is as follows:
A kind of method recovering browsing device net page, described method includes:
When exiting browser, preserve the chained list node data of the window of described browser, page data and browse state data;
When being again started up described browser, recover the respective page of the window of described browser according to the chained list node data preserved, page data and browse state data.
A kind of device recovering browsing device net page, described device includes:
Preserve module, for when exiting browser, preserving the chained list node data of the window of described browser, page data and browse state data;
Recover module, for when being again started up described browser, recovering the respective page of the window of described browser according to the chained list node data preserved, page data and browse state data.
The technical scheme that the embodiment of the present invention provides has the benefit that by preserving the chained list node data of window of browser, page data and browse state data when exiting browser, and when being again started up browser, the respective page of the window of browser is recovered according to the chained list node data preserved, page data and browse state data, again search this webpage without user and again pull this webpage from network, dramatically saves on network traffics, decrease webpage recovery time, thus improving Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram recovering browsing device net page provided in the embodiment of the present invention 1;
Fig. 2 is the method flow diagram preserving this browsing device net page related data provided in the embodiment of the present invention 1;
Fig. 3 is the method flow diagram recovering this browsing device net page related data provided in the embodiment of the present invention 1;
Fig. 4 is the apparatus structure schematic diagram recovering browsing device net page provided in the embodiment of the present invention 2.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
Referring to Fig. 1, present embodiments providing a kind of method recovering browsing device net page, the method includes:
S11: when exiting browser, preserves the chained list node data of the window of this browser, page data and browse state data;
S12: when being again started up this browser, recovers the respective page of the window of this browser according to the chained list node data preserved, page data and browse state data.
Concrete, referring to Fig. 2, step S11 may comprise steps of:
101: flow process is exited in browser startup;
102: whether the backup file once preserved before judgement exists;
1021) if it does, the backup file once preserved before deleting, step 103 is then performed.
1022) if it does not, directly perform step 103.
This step may insure that this backup file will not retain original information.
103: create backup file;
104: the current window for browser creates corresponding chained list node, is used for preserving chained list node data;
Whether chained list node data include: webpage URL length, webpage URL, page title length, page title, be focus window, the cryptographic Hash of cache file, next window etc.
The storage organization of chained list node is as shown in table 1:
Table 1
Attribute Describe
nUrlSize Webpage URL (Uniform Resource Locator, URL) length
pUrl Webpage URL
nTitleSize Page title length
pTitle Page title
nActive Whether it is focus window
nHashID The cryptographic Hash of cache file, is done Hash operation by webpage URL and obtains, can as the filename of cache file
nNext Whether next window, namely also have next node in chained list
105: judge whether the cache file opening the page in current window exists, if it does not, perform step 106, if it does, directly perform step 107;
Preserving the information such as page data in cache file, this cache file opening the page preserves the information such as this page data opening the page. It addition, the filename of cache file could be arranged to nHashID (cryptographic Hash of cache file), webpage URL doing Hash operation and obtain, the suffix of cache file is by name could be arranged to wml.
106: find this previous page opening the page by browsing history, and obtain the cache file of this previous page;
Preserving the information such as page data in cache file, the cache file of this previous page preserves the information such as the page data of this previous page.
It should be noted that, owing to opening a website links to receiving page data and to generate cache file be interval for some time, if during this period of time user exits the operation of browser, then when the cache file of the front opening page is non-existent, it is again started up browser also to cannot be carried out recovering, if so cache file is absent from, it is necessary for returning back in the browsing history of this window and finds previous page.
107: obtain chained list node data, and be saved in backup file;
Wherein, whether chained list node data include: webpage URL length, webpage URL, page title length, page title, be focus window, the cryptographic Hash of cache file, next window etc.
108: obtain the browse state data opening the page or its previous page, and be saved in page status file;
Wherein, browse state data include page browsing focal position and the content etc. of page input frame input.
Wherein, the filename of page status file could be arranged to nHashID (cryptographic Hash of cache file), webpage URL do Hash operation and obtain, and the suffix of page status file is by name could be arranged to dat.
109: judge whether also have the window not preserved, 1091) if it has, then switch to next window, and step 104 continuation preservation is jumped to, 1092) without the window not preserved, namely all windows all preserve, then exit browser.
Concrete, referring to Fig. 3, step S12 may comprise steps of:
201: start browser;
202: judge whether backup file exists;
If it does, illustrate to need to carry out recovery operation, perform step 203. If it does not exist, then jump to step 208.
203: if backup file exists, from backup file, it is successively read each chained list node data preserved when exiting last time, and in internal memory, recovers window list structure;
204: create new window, according to the page title length attribute in chained list node data and page title attribute, recover the page title of window;
Concrete, the page title of window is recovered according to the value of the nTitleSize attribute of chained list node and pTitle attribute.
205: according to whether chained list node data be focus window attribute, it is judged that whether this window is focus window, if focus window, performs step 206, if not focus window, performs step 207;
Concrete, according to whether nActive property value is 1, it is judged that whether this window is focus window, if being 1, then it represents that this window is focus window, continues executing with step 6; If being 0, then it represents that this window is non-focus window, perform step 7.
206: load and resolve cache file and obtain page data, show in window respective page and resolve the page data obtained, load and resolve page status file and obtain browse state data, in window respective page, show that parsing obtains browse state data;
Concrete, loading resolution file are called nHashID, the cache file preserving page data of suffix wml by name, and show the page data that parsing obtains in window respective page; Load the page status file preserving browse state data of also resolution file nHashID, suffix name dat by name, and in window respective page, show the page browsing state that parsing obtains.
207: according to next window attribute in chained list node data, it may be judged whether also there is a need to the window recovered, the window recovered if necessary, perform step 204, without the window needing recovery, perform step 209;
Concrete, according to whether nNext property value is 1, judge whether the window that also there is a need to recover, if being 1, representing and also having window to need to recover, switch next window (i.e. the next node of window chained list node), and jump to step 4 and continue executing with, if being 0, represent the window not needing to recover, namely all of window is all recovered, and jumps to step 8.
208: load at current window and show start page page data;
209: complete browser Booting sequence.
The present embodiment by preserving the chained list node data of window of browser, page data and browse state data when exiting browser, and when being again started up browser, the respective page of the window of browser is recovered according to the chained list node data preserved, page data and browse state data, again search this webpage without user and again pull this webpage from network, dramatically saves on network traffics, decrease webpage recovery time, thus improving Consumer's Experience.
Embodiment 2
Referring to Fig. 4, present embodiments providing a kind of device recovering browsing device net page, this device includes:
Preserve module 401, for when exiting browser, preserving the chained list node data of window of browser, page data and browse state data;
Recover module 402, for when being again started up browser, recovering the respective page of the window of browser according to the chained list node data preserved, page data and browse state data.
Preserve module 401 when preserving the page data of window of browser, specifically for judging whether the buffer culture opening the page in window exists, if there is no, the previous page opening the page is found by browsing history, and obtain the cache file of previous page, wherein, cache file includes page data.
Recover module 402 to specifically include: title recovery unit, focus determine unit and data recovery unit;
Title recovery unit, for according to the page title length attribute in the chained list node data preserved and page title attribute, recovering the page title of window;
Focus determines unit, and whether be focus window attribute, it is determined that whether window is focus window if being used in the chained list node data according to preservation;
Data recovery unit, for when window is focus window, according to the page data preserved and browse state data, showing page data and browse state data in window respective page.
Data recovery unit, obtains page data specifically for loading and resolving cache file, shows page data, load and resolve page status file and obtain browse state data, show browse state data in window respective page in window respective page.
Wherein, browse state data include: the content of page browsing focal position and the input of page input frame. Wherein, whether chained list node data include: webpage URL length, webpage URL, page title length, page title, be focus window, the cryptographic Hash of cache file and next window.
The apparatus and method embodiment recovering browsing device net page that the present embodiment provides belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
The present embodiment by preserving the chained list node data of window of browser, page data and browse state data when exiting browser, and when being again started up browser, the respective page of the window of browser is recovered according to the chained list node data preserved, page data and browse state data, again search this webpage without user and again pull this webpage from network, dramatically saves on network traffics, decrease webpage recovery time, thus improving Consumer's Experience.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be completed by hardware, can also be completed by the hardware that program carrys out instruction relevant, described program can be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.

Claims (6)

1. the method recovering browsing device net page, it is characterised in that described method includes:
When exiting browser, preserve the chained list node data of the window of described browser, page data and browse state data;
When being again started up described browser, recover the respective page of the window of described browser according to the chained list node data preserved, page data and browse state data;
Wherein, described browse state data include: the content of page browsing focal position and the input of page input frame;
Whether described chained list node data include: webpage uniform resource position mark URL length, webpage URL, page title length, page title, be focus window, the cryptographic Hash of cache file and next window;
The respective page of the described window recovering described browser according to the chained list node data preserved, page data and browse state data, specifically includes:
According to the page title length attribute in the described chained list node data preserved and page title attribute, recover the page title of described window;
Whether in the described chained list node data according to preservation is focus window attribute, it is determined that whether described window is focus window;
When described window is focus window, according to the page data preserved and browse state data, described window respective page shows described page data and described browse state data.
2. method according to claim 1, it is characterised in that the page data of the window of the described browser of described preservation, specifically includes:
Judge whether the buffer culture opening the page in described window exists, if it does not, by browsing history find described in open the previous page of the page, and obtain the cache file of described previous page,
Wherein, described cache file includes page data.
3. method according to claim 1, it is characterised in that described according to the page data preserved and browse state data, shows described page data and described browse state data in described window respective page, specifically includes:
Load and resolve cache file and obtain page data, in described window respective page, show described page data, load and resolve page status file and obtain browse state data, described window respective page shows described browse state data.
4. the device recovering browsing device net page, it is characterised in that described device includes:
Preserve module, for when exiting browser, preserving the chained list node data of the window of described browser, page data and browse state data;
Recover module, for when being again started up described browser, recovering the respective page of the window of described browser according to the chained list node data preserved, page data and browse state data;
Wherein, described browse state data include: the content of page browsing focal position and the input of page input frame;
Whether described chained list node data include: webpage URL length, webpage URL, page title length, page title, be focus window, the cryptographic Hash of cache file and next window;
Described recovery module, specifically includes
Title recovery unit, for according to the page title length attribute in the described chained list node data preserved and page title attribute, recovering the page title of described window;
Focus determines unit, and whether be focus window attribute, it is determined that whether described window is focus window if being used in the described chained list node data according to preservation;
Data recovery unit, for when described window is focus window, according to the page data preserved and browse state data, showing described page data and described browse state data in described window respective page.
5. device according to claim 4, it is characterised in that described preservation module when preserving the page data of window of described browser, specifically for
Judge whether the buffer culture opening the page in described window exists, if it does not, by browsing history find described in open the previous page of the page, and obtain the cache file of described previous page,
Wherein, described cache file includes page data.
6. device according to claim 4, it is characterised in that described data recovery unit, specifically for
Load and resolve cache file and obtain page data, in described window respective page, show described page data, load and resolve page status file and obtain browse state data, described window respective page shows described browse state data.
CN201110351971.7A 2011-11-09 2011-11-09 A kind of method and apparatus recovering browsing device net page Active CN103106196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110351971.7A CN103106196B (en) 2011-11-09 2011-11-09 A kind of method and apparatus recovering browsing device net page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110351971.7A CN103106196B (en) 2011-11-09 2011-11-09 A kind of method and apparatus recovering browsing device net page

Publications (2)

Publication Number Publication Date
CN103106196A CN103106196A (en) 2013-05-15
CN103106196B true CN103106196B (en) 2016-06-01

Family

ID=48314061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110351971.7A Active CN103106196B (en) 2011-11-09 2011-11-09 A kind of method and apparatus recovering browsing device net page

Country Status (1)

Country Link
CN (1) CN103106196B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166652B (en) * 2013-05-16 2019-03-26 腾讯科技(深圳)有限公司 Browse information synchronization method and device
US20140359489A1 (en) * 2013-05-30 2014-12-04 Qualcomm Incorporated Web browser history
CN104702643A (en) * 2013-12-09 2015-06-10 腾讯科技(深圳)有限公司 A webpage access method, device and system
CN105426232B (en) * 2014-09-23 2019-03-22 宇龙计算机通信科技(深圳)有限公司 A kind of method and device of interface processing
CN105677660B (en) * 2014-11-19 2019-02-01 腾讯科技(深圳)有限公司 A kind of information processing method and client
CN107526737A (en) * 2016-06-21 2017-12-29 天脉聚源(北京)科技有限公司 A kind of method of wechat webpage view displaying
CN106202244B (en) * 2016-06-28 2020-01-21 深圳中兴网信科技有限公司 Webpage message returning method and webpage message returning system
CN106528627A (en) * 2016-10-01 2017-03-22 奇酷互联网络科技(深圳)有限公司 Method and apparatus for loading and locating webpage browsing position
CN106886570B (en) * 2017-01-16 2020-11-13 网宿科技股份有限公司 Page processing method and device
CN108833980B (en) * 2018-05-24 2021-04-27 烽火通信科技股份有限公司 IPTV page generation and reproduction method based on multi-window realization
CN111352909A (en) * 2019-05-07 2020-06-30 鸿合科技股份有限公司 File saving and loading method and device, electronic device and storage medium
CN110889064B (en) * 2019-12-05 2023-01-31 北京百度网讯科技有限公司 Page display method, device, equipment and storage medium
CN114003845B (en) * 2021-11-03 2022-07-08 厦门市美亚柏科信息股份有限公司 Method and system for recovering browser surfing trace fragments
CN115097992B (en) * 2022-06-28 2024-09-06 挂号网(杭州)科技有限公司 Page access method and device, electronic equipment and storage medium
CN116467037B (en) * 2023-06-09 2023-09-22 成都融见软件科技有限公司 Graphic user interface work state recovery method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089845A (en) * 2006-06-13 2007-12-19 北京凯诚高清电子技术有限公司 Micro browing apparatus
CN102202100A (en) * 2007-10-24 2011-09-28 优视科技有限公司 Method for processing network data by micro browser, micro browser and server thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089845A (en) * 2006-06-13 2007-12-19 北京凯诚高清电子技术有限公司 Micro browing apparatus
CN102202100A (en) * 2007-10-24 2011-09-28 优视科技有限公司 Method for processing network data by micro browser, micro browser and server thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Session Restore";mozillaZine;《https://web.archive.org/web/20111028110559/http://kb.mozillazine.org/Session_Restore》;20111028;第1段,Default behavior一栏的第2段,Always restore sessions on start一栏 *

Also Published As

Publication number Publication date
CN103106196A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
CN103106196B (en) A kind of method and apparatus recovering browsing device net page
US9298680B2 (en) Display of hypertext documents grouped according to their affinity
CN106886570B (en) Page processing method and device
CN102385594B (en) The kernel control method of multi-core browser and device
CN102917023B (en) A kind of method based on Quick Response Code accessed web page and mobile terminal
CN107291449B (en) Page rendering method, device and equipment
US9594845B2 (en) Automating web tasks based on web browsing histories and user actions
CN102148805B (en) Feature matching method and device
CN105027120B (en) multi-page management method and device
US20140222947A1 (en) Method and apparatus for browsings webpages, and storage medium
CN108932332A (en) The loading method and device of static resource
US8667409B2 (en) Systems and methods for handling focus of application user interface elements
CN103634337A (en) Page recovery method, device and mobile terminal
CN107402938A (en) page display method, device and client device
CN103023972B (en) A kind of method and apparatus that file is managed
EP2933731A1 (en) Method for configuring browser bookmarks, device and terminal thereof
CN106383752A (en) Browser page abnormity recovery processing method and device
CN105260424A (en) Processing method and apparatus for webpage browsing historical records and most common accesses of user
CN114036431A (en) Page cache skipping method and device, electronic equipment and storage medium
WO2014153991A1 (en) Browser collection method, system and terminal device, and computer-readable storage medium
KR101287371B1 (en) Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same
CN114491371B (en) Front-end multi-system jump method and system of web system
CN113986063A (en) Display control method, display control device, electronic equipment and storage medium
CN109343908A (en) A kind of method and apparatus of delay loading JS script
WO2018082119A1 (en) Method and apparatus for recovering page in browser

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
TR01 Transfer of patent right

Effective date of registration: 20221221

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2 East 403 room, SEG science and technology garden, Futian District, Guangdong, Shenzhen 518000, China

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.