搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

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

  • 3 回覆
  • 0 有這個問題
  • 18 次檢視
  • 最近回覆由 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.