WebExtension alerts should show the extension name as the origin
Categories
(Firefox :: General, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | verified |
People
(Reporter: yliu, Assigned: hectorz)
References
Details
(Keywords: helpwanted, Whiteboard: [proton-modals])
Attachments
(2 files)
Tested with Firefox 87b2 on Windows 10 x64.
STR:
- Install Firefox 87b2 (In early beta, prompts.contentPromptSubDialog = true).
- Install COBA addon to Firefox.
- Open http://www.icbc.com.cn/icbc/, click 'Open in Internet Explorer'.
- Check the alert dialog.
Actual results:
The alert dialog dosen't look good after showing origin.
Could we display the extension name instead of the origin text?
Comment 1•3 years ago
|
||
We need to update the title anyway after bug 1693008 lands (and remove the "says" bits, only showing the origin), so I guess we could tackle it there.
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Isn't this also reproducible prior to the proton changes? In particular, we already show the origin if the website is framed into a page with a different origin, so I'd expect that invoking it from
data:text/html,<iframe src="http://www.icbc.com.cn/icbc/" height=900 width=900>
would already have this issue in release.
Note that I cannot see where to click "Open in Internet Explorer" even if I add the add-on.
Reporter | ||
Comment 3•3 years ago
•
|
||
(In reply to :Gijs (he/him) from comment #2)
Isn't this also reproducible prior to the proton changes? In particular, we already show the origin if the website is framed into a page with a different origin, so I'd expect that invoking it from
data:text/html,<iframe src="http://www.icbc.com.cn/icbc/" height=900 width=900>
would already have this issue in release.
As I know, the extension doesn't handle the framed websites:
https://github.com/MozillaOnline/COBA/blob/develop/webextension/background.js#L447-L450
Note that I cannot see where to click "Open in Internet Explorer" even if I add the add-on.
Open http://www.icbc.com.cn/icbc/ directly in the URL bar, can you see "Open in Internet Explorer" in the page?
Comment 4•3 years ago
|
||
(In reply to Yanfang Liu from comment #3)
(In reply to :Gijs (he/him) from comment #2)
Isn't this also reproducible prior to the proton changes? In particular, we already show the origin if the website is framed into a page with a different origin, so I'd expect that invoking it from
data:text/html,<iframe src="http://www.icbc.com.cn/icbc/" height=900 width=900>
would already have this issue in release.
As I know, the extension doesn't handle the framed websites:
https://github.com/MozillaOnline/COBA/blob/develop/webextension/background.js#L447-L450
Sure, maybe the COBA extension doesn't, but the overall problem is not unique to that extension...
Note that I cannot see where to click "Open in Internet Explorer" even if I add the add-on.
Open http://www.icbc.com.cn/icbc/ directly in the URL bar, can you see "Open in Internet Explorer" in the page?
Nope. Maybe because I'm on macOS?
Assignee | ||
Comment 6•3 years ago
|
||
Updated•3 years ago
|
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/434d0ca77a5e WebExtension alerts should show the extension name as the origin. r=Gijs
Comment 8•3 years ago
|
||
bugherder |
Reporter | ||
Comment 9•3 years ago
|
||
Verified as fixed on the latest Firefox Nightly 88.0a1 (2021-03-07).
Description
•