METHOD AND DEVICE FOR CONTROLLING WEB PAGE TO INVOKE SYSTEM FUNCTION, AND STORAGE MEDIUM THEREOF
First Claim
1. A method in an intelligent device for controlling a web page to invoke a system function, the method comprising:
- parsing, by a browser in the intelligent device, a web page for an authorization code in the web page, and a privilege code of a system function requested to be invoked;
obtaining, by the browser, a system function invoking privilege corresponding to the web page according to the authorization code, wherein the system function invoking privilege comprises a list of privilege codes of system functions allowed to be used by the web page; and
If the browser determines that the privilege code of the system function requested to be invoked belongs to the list of privilege codes in the system function invoking privilege, then invoking the system function requested to be invoked through an interface function of the corresponding system function to support running of the web page;
if the browser determines that the privilege code of the system function requested to be invoked does not belong to the list of privilege codes in the system function invoking privilege, prohibiting invoking of the interface function of the system function requested to be invoked.
2 Assignments
0 Petitions
Accused Products
Abstract
The disclosure discloses a method and device for controlling a web page to invoke a system function, and storage medium thereof. the method includes: parsing, by a browser in the intelligent device, a web page for an authorization code in the web page, and a privilege code of a system function requested to be invoked; obtaining, by the browser, a system function invoking privilege corresponding to the web page according to the authorization code, wherein the system function invoking privilege includes a list of privilege codes of system functions allowed to be used by the web page; and If the browser determines that the privilege code of the system function requested to be invoked belongs to the list of privilege codes in the system function invoking privilege, then invoking the system function requested to be invoked through an interface function of the corresponding system function to support running of the web page; otherwise, prohibiting invoking of the interface function of the system function requested to be invoked.
-
Citations
15 Claims
-
1. A method in an intelligent device for controlling a web page to invoke a system function, the method comprising:
-
parsing, by a browser in the intelligent device, a web page for an authorization code in the web page, and a privilege code of a system function requested to be invoked; obtaining, by the browser, a system function invoking privilege corresponding to the web page according to the authorization code, wherein the system function invoking privilege comprises a list of privilege codes of system functions allowed to be used by the web page; and If the browser determines that the privilege code of the system function requested to be invoked belongs to the list of privilege codes in the system function invoking privilege, then invoking the system function requested to be invoked through an interface function of the corresponding system function to support running of the web page;
if the browser determines that the privilege code of the system function requested to be invoked does not belong to the list of privilege codes in the system function invoking privilege, prohibiting invoking of the interface function of the system function requested to be invoked. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A device in an intelligent device for controlling a web page to invoke a system function, the device comprising a memory and one or more processors, wherein the memory stores one or more computer readable program codes, and the one or more processors is or are configured to perform the one or more computer readable program codes:
-
to parse a web page for an authorization code in the web page, and a privilege code of a system function requested to be invoked; to obtain a system function invoking privilege corresponding to the web page according to the authorization code, wherein the system function invoking privilege comprises a list of privilege codes of system functions allowed to be used by the web page; and if it is determined that the privilege code of the system function requested to be invoked belongs to the list of privilege codes in the system function invoking privilege, to invoke the system function requested to be invoked through an interface function of the corresponding system function to support running of the web page;
if it is determined that the privilege code of the system function requested to be invoked does not belong to the list of privilege codes in the system function invoking privilege, to prohibit invoking of the interface function of the system function requested to be invoked. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A computer readable storage medium, storing thereon instruction codes which, upon being executed, may perform the operations of:
-
parsing, by a browser in an intelligent device, a web page for an authorization code in the web page, and a privilege code of a system function requested to be invoked; obtaining, by the browser, a system function invoking privilege corresponding to the web page according to the authorization code, wherein the system function invoking privilege comprises a list of privilege codes of system functions allowed to be used by the web page; and If the browser determines that the privilege code of the system function requested to be invoked belongs to the list of privilege codes in the system function invoking privilege, then invoking the system function requested to be invoked through an interface function of the corresponding system function to support running of the web page;
if the browser determines that the privilege code of the system function requested to be invoked does not belong to the list of privilege codes in the system function invoking privilege, prohibiting invoking of the interface function of the system function requested to be invoked. - View Dependent Claims (12, 13, 14, 15)
-
Specification