Issue metadata
Sign in to add a comment
|
cannot load javascript when redirect to extension page
Reported by
lunastar...@gmail.com,
Feb 29 2016
|
||||||||||||||||||||||
Issue description
Chrome Version : 48.0.2564.116
URLs (if applicable) : anywhere
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari: PASS/FAIL (Version)
Firefox: PASS/FAIL (Version)
IE: PASS/FAIL (Version)
What steps will reproduce the problem?
1. Make a extension which includes redirection. (i found it using "onBeforeRequest")
2. Set redirect to extension's page.
3. Open a new tab by clicking mouse wheel or left clicking with ctrl key.
(Maybe need to open other domain's page.)
What is the expected result?
I expect open the extension's page and load resources correctly.
What happens instead?
JS file is not loaded.
In consle, the message "Failed to load resource: net::ERR_ADDRESS_UNREACHABLE" was printed.
This problem is not occured when i open new tab by right-click menu.
Also, it often occurs when i open other domain's page.
In the page which this problem occurred, even if i reload the page, it often moves invalid page.
There are cases when that does not occur and when that occurs, too.
Please provide any additional information below. Attach a screenshot if
possible.
,
Mar 1 2016
I attach the extension. I confirmed this problem by clicking mouse wheel on left top chromium icon in this page. About extenson: Extension's page is opened instead of originally page when you open a new tab. If js file is loaded, the message "js is running" is shown in opened extension's page. If not loaded, the page is blank. Additiional info: 1) I tried to use this extension on old chrome (chromodo45.9.12.392), then same problem occurred. 2) I tried to use it on other PC (chrome version is same), then i could not find this problem.
,
Mar 1 2016
The condition which problem occurs was found. It is whether standard click open a new tab, or not. (target="_blank") Probably, whether same domain or not is not related.
,
Mar 31 2016
This doesn't seem like a bug to me, the extension redirects if a request to main_frame is made and the new tab is the active tab. This means opening a new tab in background (that's what you get using middle click) would result in a redirect. In your original issue description: do you mean you see test.html loading but test.js not loading? Again I can't reproduce that, please clarify.
,
Apr 1 2016
Thank you for providing more feedback. Adding requester "kavvaru@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://sites.google.com/a/chromium.org/dev/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 5 2016
Redirection always succeeds. The problem is that test.js is not loaded. In devtools' console of test.html shows "Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://malhjicgjkelgbjpdffjkgihdfahkcmd/test.js". Case 1 'a tag' has 'target="_blank"' && use middle click -> test.js is not loaded!! Case 2 'a tag' has 'target="_blank"' && open new tab from context menu -> test.js is loaded. (no problem) Case 3 'a tag' do not have target attribute && use middle click -> test.js is loaded. (no problem) Case 4 'a tag' do not have target attribute && open new tab from context menu -> test.js is loaded. (no problem)
,
Apr 11 2016
Unable to reproduce the issue on windows 7 using chrome version 49.0.2623.112.Not observed any error in console of test.html page. Please find the attached screen cast and confirm anything missed here. Request you please try the issue by upgrading chrome to latest stable and update the thread if the issue still persists. Thanks,
,
Apr 11 2016
,
Apr 12 2016
My chrome and os version is same. I also attach screen shot. (I do not have a tool which save screen to video.) In latest version, there is no error after reloading page. Only occur when a new tab is opened.
,
Apr 12 2016
Thank you for providing more feedback. Adding requester "kavvaru@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://sites.google.com/a/chromium.org/dev/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 20 2016
Thanks for the update. Tested the issue again as per the steps provide in comment #9 still unable to reproduce the issue.Not observed any error in console when middle click on link to open in new tab. Please find the attached screen cast for the same. Request you please check the issue on latest stable 50.0.2661.75 and update your observations. Thanks,
,
Apr 20 2016
Please middle click left top icon in this page. The link which is in video and below of "image.jpg" don't have `target="_blank"`. The error is shown when a link which has `target="_blank"`. ---- Supplements of "image.jpg" in Comment #9 it shows two cases. 1) Upper one Middle click a link which has `target="_blank"` attribute. An error is occurred. 2) Below one Middle click a link which don't have `target="_blank"` attribute. No error is occurred. ---- Please check again.
,
Apr 21 2016
Thank you for providing more feedback. Adding requester "kavvaru@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 22 2016
lazyboy@, it looks like you were looking into this at one point.
,
Apr 28 2016
Removing from triaging queue,already assigned to an owner.
,
May 23 2016
I got a chance to look at this, it seems opening links that has target="_blank" with middle click makes the new tab end up in the same process as the opener. In this case, it will be the originating site's process, not the extension's process. http://crbug.com/23815 seems to be the same bug. One workaround suggested was to put rel="noreferrer" in that bug [1]. @lunastarlit the root cause of this issue is same as http://crbug.com/23815 , whatever solution we get to there would apply here. Marking as duplicate. [1] https://bugs.chromium.org/p/chromium/issues/detail?id=23815#c24 http://blog.chromium.org/2009/12/links-that-open-in-new-processes.html
,
May 25 2016
Thank you for investigation. It is difficult to do your suggestion because extension will run on any site. Also, it may cause other new problems if my extension sets "noreferrer" attribute to all a tags forcibly by injecting a code when a page is loaded. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by kavvaru@chromium.org
, Mar 1 2016Components: Platform>Extensions
Labels: Needs-Feedback