Opening URI that launches an app leaves a blank tab

NEW
Unassigned

Status

()

Firefox for Android
General
5 years ago
2 years ago

People

(Reporter: Franklin Tse, Unassigned)

Tracking

({reproducible, testcase})

22 Branch
All
Android
reproducible, testcase
Points:
---

Firefox Tracking Flags

(firefox22 affected, firefox23 affected, firefox24 affected)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 751321 [details]
Test page

User Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

Steps to reproduce:

Click on a link having target=_blank with href=a custom URI that launches an app


Actual results:

A blank window (about:blank) remains after the app is launched


Expected results:

No blank window (about:blank) remains after the app is launched
(Reporter)

Updated

5 years ago
OS: Windows 7 → Android
Hardware: x86_64 → All
See also bug 826325
Status: UNCONFIRMED → NEW
status-firefox23: --- → affected
status-firefox24: --- → affected
Ever confirmed: true
Flags: needinfo?(wjohnston)
Keywords: reproducible, testcase

Updated

5 years ago
status-firefox22: --- → affected
Attachment #751321 - Attachment mime type: text/plain → text/html
This is unrelated to 826325. I can think of some hacky ways to fix this, but I wonder if the platform has something better. Gavin, can you point me at anything?
Flags: needinfo?(wjohnston) → needinfo?(gavin.sharp)
Reminds me of bug 241972. The mShouldCloseWindow logic in nsExternalHelperAppService.cpp should be calling close() on the tab's window in this case. Does that not close the tab in Fennec, for some reason? Or is that code not being hit here?
Flags: needinfo?(gavin.sharp)
You need to log in before you can comment on or make changes to this bug.