New issue
Advanced search Search tips

Issue 660447 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Aug 23
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Custom protocol URL is built incorrectly

Reported by natalie....@gmail.com, Oct 28 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36

Steps to reproduce the problem:
1. Go to http://example.com/ 
2. Open Console, register a protocol handler:

  navigator.registerProtocolHandler("web+grr", "http://example.com/%s?%s", "NB: two %s");

   and click "Allow".
3. Enter "web+grr:substitute" in the address bar.

What is the expected behavior?
Browser should load

  http://example.com/web%2Bgrr%3Asubstitute?%s

replacing only the first %s in the template with the encoded URL.

What went wrong?
Browser loads

  http://example.com/web%2Bgrr%3Asubstitute?web%2Bgrr%3Asubstitute

replacing all %s in the template.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 53.0.2785.143  Channel: stable
OS Version: 
Flash Version: 

"When the user agent uses this handler, it must replace the *first* occurrence of the exact literal string "%s" in the url argument..." 

https://html.spec.whatwg.org/multipage/webappapis.html#dom-navigator-registerprotocolhandler
 
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback
Thanks for the report.

Able to reproduce the issue on Win 7, Mac 10.12.2 and Ubuntu 14.04 with stable#55.0.2883.87 & latest canary version#57.0.2965.0.

This is non-regression issue which is existing from M40 builds onwards.

Feature not available from M30 to M39 builds.

Browser loaded as "http://example.com/web%2Bgrr%3Asubstitute?web%2Bgrr%3Asubstitute" after step #3.


Please find the attached screencast for reference.


660447.mp4
2.3 MB View Download
Cc: -jmukthavaram@chromium.org
Labels: -Needs-Feedback M-57 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
Components: Blink>HTML>CustomHandlers
Labels: -OS-Linux -OS-Windows -OS-Mac OS-All
Owner: dominicc@chromium.org
Status: Assigned (was: Untriaged)
Thanks for the report.
Cc: dominicc@chromium.org
Owner: ----
Status: Available (was: Assigned)
Bulk disowning per sshruthi's email about bug triage best practices.
Project Member

Comment 7 by sheriffbot@chromium.org, Aug 22

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: -dominicc@chromium.org
Owner: tkent@chromium.org
Status: WontFix (was: Untriaged)
It seems this works correctly with Chrome 69 Beta.

Sign in to add a comment