为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

What is wrong with the data URLs on Android and iOS?

  • 3 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 Paul

more options

On Android, we cannot enter data URLs in the address bar. (For example data:,String1 ) We are redirected to the Google search result. However, we can use data URLs from bookmarks. On iOS, Firefox rejects any data URL even from bookmarks. At the same time, Chrome on Android and Safari on iOS don't have any issue with data URL. Why does mobile Firefox handle data URLs differently than the desktop version? Is it a bug?

On Android, we cannot enter data URLs in the address bar. (For example data:,String1 ) We are redirected to the Google search result. However, we can use data URLs from bookmarks. On iOS, Firefox rejects any data URL even from bookmarks. At the same time, Chrome on Android and Safari on iOS don't have any issue with data URL. Why does mobile Firefox handle data URLs differently than the desktop version? Is it a bug?

所有回复 (3)

more options

Hi

This is something that our developers are aware of and are looking into. You can follow progress on this and add comments at:

https://github.com/mozilla-mobile/fenix/issues/1681

more options

I would like to add more details about the usage of my data urls. I have been using them a lot for three main purposes. On desktop I use it all the time as scratchpad:

data:text/html,<html contenteditable/><title>Edit</title> or even data:text/html,<textarea></textarea>.

I use a lot of small Javascript utilities to print dates in various formats, change text case, etc.

I use data urls to bookmark many important notes, various numbers, names. Everything that goes beyond logins. Thus, this information is available through the Firefox account on my devices, including Android devices.

Today on Android the data url still works via bookmarks. Previously, we could enter "data:...." directly into the address bar. I found one of my old phones running Firefox 67.0. In Firefox 67.0 there is no issue with data URLs.

Now when I type data:,str1 I am redirected to the Google search result. https://www.google.com/search?q=data%3A%2Cstr&ie=utf-8&oe=utf-8&client=firefox-b-m Unfortunately, currently the data url doesn't work at all on iOS.

由NoahSUMO于修改

more options

Hi

Please follow up on the link that I provided in my reply above.