1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "webViewRequest",
8 "description": "Use the <code>chrome.webViewRequest</code> API to intercept,
block, or modify requests in-flight. It is potentially faster than the <a href=
'webRequest.html'><code>chrome.webRequest</code> API</a> because you can registe
r rules that are evaluated in the browser rather than the JavaScript engine with
reduces roundtrip latencies and allows higher efficiency."
Jeffrey Yasskin
2013/11/09 02:47:22
Does webRequest exist on <webview> objects? It see
Does webRequest exist on <webview> objects? It seems like the difference between
webRequest and webViewRequest is subtle. Why not have "declarative" on
webViewRequest?
Fady Samuel
2013/11/10 03:39:56
This description is slightly incorrect. The condit
On 2013/11/09 02:47:22, Jeffrey Yasskin wrote:
> Does webRequest exist on <webview> objects? It seems like the difference
between
> webRequest and webViewRequest is subtle. Why not have "declarative" on
> webViewRequest?
This description is slightly incorrect. The condition/action objects exist on
chrome.webViewRequest because they're independent of any particular webview, but
the rules based events are on <webview>.request.*. I'm not sure how to describe
this well here. This API probably needs to go through API review.
Jeffrey Yasskin
2013/11/11 05:37:36
Mhmm. Let's do that before this API launches, but
On 2013/11/10 03:39:56, Fady Samuel wrote:
> On 2013/11/09 02:47:22, Jeffrey Yasskin wrote:
> > Does webRequest exist on <webview> objects? It seems like the difference
> between
> > webRequest and webViewRequest is subtle. Why not have "declarative" on
> > webViewRequest?
>
> This description is slightly incorrect. The condition/action objects exist on
> chrome.webViewRequest because they're independent of any particular webview,
but
> the rules based events are on <webview>.request.*. I'm not sure how to
describe
> this well here. This API probably needs to go through API review.
Mhmm. Let's do that before this API launches, but after this CL goes in (unless
this CL would launch the new APIs, which I don't think it will). We can try to
help word the docs better at that point.
Issue 28273006: <webview>: Implement declarativeWebRequest API
(Closed)
Created 7 years, 2 months ago by Fady Samuel
Modified 7 years, 1 month ago
Reviewers: Ken Rockot(use gerrit already), Matt Perry, battre, vabr (Chromium), lazyboy, Jeffrey Yasskin, James Hawkins
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 124