크롬 프로젝트 - The Chromium Projects
https://www.chromium.org/
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web. This site contains design documents, architecture overviews, testing information, and more to help you learn to build and work with the Chromium source code.
Tab to Search
Chromium provides two heuristics that automatically add a site to the list of searchable sites. The following describes these heuristics:
1. On your site's homepage provide a link to an OpenSearch description document. The link to the OSDD is placed in the head of the html file. For example:
<head> <link type="application/opensearchdescription+xml" rel="search" href="url_of_osdd_file"/> </head>The important part of this document is the URL used to search your site. The following is an example that contains the bare minimum needed, see the OpenSearch description document specification for the list of values you can specify.
<?xml version="1.0"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>Search My Site</ShortName> <Description>Search My Site</Description> <Url type="text/html" method="get" template="http://my_site/{searchTerms}"/> </OpenSearchDescription>When the user presses enter in the Omnibox the string {searchTerms} in the url is replaced with the string the user typed.
2. If the site does not provide a link to an OpenSearch description document but the user submits a form, then Chrome automatically adds the site to the list of searchable sites. There are a number of restrictions with this approach though. In particular the form must generate a GET, must result in a HTTP url, and the form must not have OnSubmit script. Additionally there must be only one input element of type text, no passwords, files or text areas and all other input elements must be in their default state.
For 1 and 2 Chromium only adds sites that the user navigated to without a path. For example http://mysite.com, but not http://mysite.com/foo.
'프로그래밍' 카테고리의 다른 글
위챗(WeChat) 페이 충전하기 (0) | 2017.08.21 |
---|---|
이제 HTTPS는 필수다. https://www.httpvshttps.com/ (0) | 2017.08.02 |
Mac Pro, iPhone, iPad 또는 iPod touch에서 AirDrop으로 콘텐츠 공유하기 (0) | 2017.07.28 |
구주이배 - ? (0) | 2017.07.03 |
지엽적, 지엽적이다. - 중요하지 않고, 핵심이 아닌. 부차적인것을 지칭, (0) | 2017.07.03 |