Re: [crx] wbeRequest.onCompleted not firing after using BlockingRequest object to redirect url in onBeforeRequest

161 views
Skip to first unread message

Dominic Battre

unread,
Nov 8, 2012, 10:43:25 AM11/8/12
to ap, Chromium-extensions
Hi,

webRequest.onCompleted should fire if you redirected a request using webRequest.onBeforeRequest unless you redirect to a data:// URL. I could also imagine that it does not fire if you don't have host permission on the target URL.

Best regards,
Dominic


On Wed, Nov 7, 2012 at 4:43 PM, ap <bli...@gmail.com> wrote:
is this normal behaviour?

onCompleted does fire when using { cancel: false }, but not { redirectUrl: ... }

chrome.tabs.onUpdated(change.status = "complete") fires properly as does chrome.webNavigation.onCompleted

Thanks in advance,

ap

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/ynzMHz5zFA8J.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.

ap

unread,
Nov 9, 2012, 11:08:59 AM11/9/12
to chromium-...@chromium.org
I'm only redirecting HTTP requests.

What do you mean by host permission?


On Thursday, November 8, 2012 10:44:00 AM UTC-5, Dominic Battré wrote:
Hi,

webRequest.onCompleted should fire if you redirected a request using webRequest.onBeforeRequest unless you redirect to a data:// URL. I could also imagine that it does not fire if you don't have host permission on the target URL.

Best regards,
Dominic
On Wed, Nov 7, 2012 at 4:43 PM, ap <bli...@gmail.com> wrote:
is this normal behaviour?

onCompleted does fire when using { cancel: false }, but not { redirectUrl: ... }

chrome.tabs.onUpdated(change.status = "complete") fires properly as does chrome.webNavigation.onCompleted

Thanks in advance,

ap

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/ynzMHz5zFA8J.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extensions+unsub...@chromium.org.
To unsubscribe from this group, send email to chromium-extensions+unsub...@chromium.org.

ap

unread,
Nov 9, 2012, 11:13:12 AM11/9/12
to chromium-...@chromium.org
In the manifest I have requested "http://*/*" access. It might not be triggering because I did not request "https://*/*" and this is what the redirect always uses as the protocol.

Thanks!

ap

unread,
Nov 9, 2012, 11:54:24 AM11/9/12
to chromium-...@chromium.org, ap
Confirmed, host permission was the issue. Thanks again.


On Thursday, November 8, 2012 10:44:00 AM UTC-5, Dominic Battré wrote:
Hi,

webRequest.onCompleted should fire if you redirected a request using webRequest.onBeforeRequest unless you redirect to a data:// URL. I could also imagine that it does not fire if you don't have host permission on the target URL.

Best regards,
Dominic
On Wed, Nov 7, 2012 at 4:43 PM, ap <bli...@gmail.com> wrote:
is this normal behaviour?

onCompleted does fire when using { cancel: false }, but not { redirectUrl: ... }

chrome.tabs.onUpdated(change.status = "complete") fires properly as does chrome.webNavigation.onCompleted

Thanks in advance,

ap

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/ynzMHz5zFA8J.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extensions+unsub...@chromium.org.

Dominic Battre

unread,
Nov 13, 2012, 10:55:30 AM11/13/12
to ap, Chromium-extensions
Hi.

Host permissions are the lists of hosts of which your extension may see events, see http://developer.chrome.com/trunk/extensions/webRequest.html -> manifest ("*://*.google.com" in the example or "<all_urls>").

Best regards,
Dominic



To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
Reply all
Reply to author
Forward
0 new messages