pre-rendering , chrome.tabs.onReplaced behavior

527 views
Skip to first unread message

Rajendra Sharma

unread,
Oct 27, 2015, 10:53:34 PM10/27/15
to chromium-...@chromium.org
Hi Experts,

To handle pre-render and instant navigation I have chrome.tabs.onReplaced.addListener in my extension. 
I am observing two behavior.

case 1 : If I search some text from google chrome address bar for which chrome performs pre-rendering , in that case OnReplaced listener method is called with URL https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8 in new replacing tab . After that chrome also calls chrome.tabs.onUpdated.addListener listener method with correct URL not https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8.

case 2. If I click some URL on google search result page for which chrome seems to be doing pre-rendering , In that case OnReplaced gets called with correct URL in new replacing tab but OnUpdated method doesn't gets called.

In OnReplaced I am calling chrome.tabs.update to handle certian situation but this cases blank search result page in case #1.

When and where I should handle in my extension that pre-render has completely repaced existing tab with right URL ?

What is the right way of handing pre-rendering for top URL ( case #1 ) and clicking pre-rendered link on google search page ( case #2 ) ?


-- 
Regards,
Rajendra

Shea Writer

unread,
Oct 27, 2015, 11:22:37 PM10/27/15
to Chromium-extensions
I am also looking to do something similar -- hope someone has some insight into this.


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CACbGDwduvBCVb-Oyf_K5qwmQ8BA45aXXoq%3DHJO2YeOTQiYjqzg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Rajendra Sharma

unread,
Oct 30, 2015, 11:20:46 AM10/30/15
to chromium-...@chromium.org
Can someone please help me clarifying my doubts ?

Thanks,
Rajendra
--
Regards,
Rajendra

Rajendra Sharma

unread,
Nov 3, 2015, 9:13:19 PM11/3/15
to chromium-...@chromium.org
Looks like this is a defect I will file a bug.
--
Regards,
Rajendra
Reply all
Reply to author
Forward
0 new messages