OLD | NEW |
1 <h2 id="manifest">Manifest</h2> | 1 <h2 id="manifest">Manifest</h2> |
2 <p> | 2 <p> |
3 All <code>chrome.webNavigation</code> methods and events require you to declare | 3 All <code>chrome.webNavigation</code> methods and events require you to declare |
4 the "webNavigation" permission in the <a href="manifest">extension | 4 the "webNavigation" permission in the <a href="manifest">extension |
5 manifest</a>. | 5 manifest</a>. |
6 For example: | 6 For example: |
7 </p> | 7 </p> |
8 | 8 |
9 <pre data-filename="manifest.json"> | 9 <pre data-filename="manifest.json"> |
10 { | 10 { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 time after <code>onDOMContentLoaded</code>, even after | 53 time after <code>onDOMContentLoaded</code>, even after |
54 <code>onCompleted</code>. | 54 <code>onCompleted</code>. |
55 </p> | 55 </p> |
56 <p> | 56 <p> |
57 If the history API is used to modify the state of a frame (e.g. using | 57 If the history API is used to modify the state of a frame (e.g. using |
58 <code>history.pushState()</code>, a <code>onHistoryStateUpdated</code> event is | 58 <code>history.pushState()</code>, a <code>onHistoryStateUpdated</code> event is |
59 fired. This event can fire any time after <code>onDOMContentLoaded</code>. | 59 fired. This event can fire any time after <code>onDOMContentLoaded</code>. |
60 </p> | 60 </p> |
61 <p> | 61 <p> |
62 If a navigation was triggered via <a | 62 If a navigation was triggered via <a |
63 href="https://support.google.com/chrome/bin/answer.py?answer=177873">Chrome | 63 href="https://support.google.com/chrome/answer/177873">Chrome |
64 Instant</a> or <a | 64 Instant</a> or <a |
65 href="https://support.google.com/chrome/bin/answer.py?answer=1385029">Instant | 65 href="https://support.google.com/chrome/answer/1385029">Instant |
66 Pages</a>, a completely loaded page is swapped into the current tab. In that | 66 Pages</a>, a completely loaded page is swapped into the current tab. In that |
67 case, an <code>onTabReplaced</code> event is fired. | 67 case, an <code>onTabReplaced</code> event is fired. |
68 </p> | 68 </p> |
69 | 69 |
70 <h2 id="relation_to_webRequest">Relation to webRequest events</h2> | 70 <h2 id="relation_to_webRequest">Relation to webRequest events</h2> |
71 <p> | 71 <p> |
72 There is no defined ordering between events of the <a | 72 There is no defined ordering between events of the <a |
73 href="webRequest">webRequest API</a> and the events of the | 73 href="webRequest">webRequest API</a> and the events of the |
74 webNavigation API. It is possible that webRequest events are still received for | 74 webNavigation API. It is possible that webRequest events are still received for |
75 frames that already started a new navigation, or that a navigation only | 75 frames that already started a new navigation, or that a navigation only |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 The user used the Forward or Back button to initiate the navigation. | 163 The user used the Forward or Back button to initiate the navigation. |
164 </td> | 164 </td> |
165 </tr> | 165 </tr> |
166 <tr> | 166 <tr> |
167 <td>"from_address_bar"</td> | 167 <td>"from_address_bar"</td> |
168 <td> | 168 <td> |
169 The user initiated the navigation from the address bar (aka Omnibox). | 169 The user initiated the navigation from the address bar (aka Omnibox). |
170 </td> | 170 </td> |
171 </tr> | 171 </tr> |
172 </table> | 172 </table> |
OLD | NEW |