• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<div id="pageData-name" class="pageData">WebRequest API</div>
2
3<!-- BEGIN AUTHORED CONTENT -->
4<p id="classSummary">
5Use the <code>chrome.experimental.webRequest</code> module to intercept, block,
6or modify requests in-flight. This module is still very much experimental. For
7information on how to use experimental APIs, see the
8<a href="experimental.html">chrome.experimental.* APIs</a> page.
9</p>
10
11<h2>A note about timestamps</h2>
12<p>
13It's important to note that some technical oddities in the OS's handling
14of distinct Chrome processes can cause the clock to be skewed between the
15browser itself and extension processes. That means that WebRequest's events'
16<code>timeStamp</code> property is only guaranteed to be <i>internally</i>
17consistent. Comparing one event to another event will give you the correct
18offset between them, but comparing them to the current time inside the
19extension (via <code>(new Date()).getTime()</code>, for instance) might give
20unexpected results.
21</p>
22<!-- END AUTHORED CONTENT -->
23