Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Feature request] Support data URIs #1681

Closed
emilio opened this issue Apr 17, 2019 · 12 comments
Closed

[Feature request] Support data URIs #1681

emilio opened this issue Apr 17, 2019 · 12 comments
Labels
Feature:OpenInApp intents feature request 🌟 New functionality and improvements Feature:SendTab P3 Some future sprint S3 Blocks non-critical functionality and a work around exists

Comments

@emilio
Copy link
Contributor

emilio commented Apr 17, 2019

Steps to reproduce

  • Tap on the URL bar.
  • Write data:text/html,<input type=file>

Expected behavior

  • See a file input (probably).

Actual behavior

  • Searches for my data URL.

Device information

  • Android device: OnePlus 6
  • Fenix version: 1.0.1916

┆Issue is synchronized with this Jira Task

@emilio emilio added the 🐞 bug Crashes, Something isn't working, .. label Apr 17, 2019
@emilio
Copy link
Contributor Author

emilio commented Apr 17, 2019

Not sure how important this is to fix, fwiw. I don't expect many people to rely on this. It comes handy to test issues though, I was trying to see if the upload issue was GitHub-specific. But I suspect now it's not, per #1467

@vesta0 vesta0 added the P3 Some future sprint label Apr 24, 2019
@vesta0 vesta0 modified the milestones: Post-MVP Backlog, Bugs Apr 24, 2019
@kbrosnan kbrosnan added the Feature:Toolbar Address bar, see also Feature:Search label Apr 27, 2019
@boek boek removed this from the Bugs and Polish milestone Jul 17, 2019
@vesta0 vesta0 removed this from the Bugs and Polish milestone Jul 24, 2019
@makotokato
Copy link

Related to https://bugzilla.mozilla.org/show_bug.cgi?id=1582606. GV API uses content principal, so data: url won't be allowed.

@karlcow
Copy link

karlcow commented Oct 2, 2019

on nasa Website webcompat/web-bugs#39953
The app is crashing because of a navigation to a long data-url

@lnicola
Copy link

lnicola commented Feb 23, 2020

This is also useful to quickly send text between devices using the Send Tab feature.

@lnicola
Copy link

lnicola commented Mar 28, 2020

data:text/plain,foo now works, but not the original test case with data:text/html.

@eliserichards eliserichards added feature request 🌟 New functionality and improvements Feature:OpenInApp intents Feature:SendTab S3 Blocks non-critical functionality and a work around exists and removed Feature:Toolbar Address bar, see also Feature:Search 🐞 bug Crashes, Something isn't working, .. labels May 5, 2020
@eliserichards eliserichards changed the title [Bug] Cannot browse to data URIs [Feature request] Support data URIs May 5, 2020
@eliserichards eliserichards added this to Triage in Feature Discovery May 5, 2020
@data-sync-user data-sync-user changed the title [Feature request] Support data URIs FNX3-15735 ⁃ [Feature request] Support data URIs Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX3-15735 ⁃ [Feature request] Support data URIs FNX-470 ⁃ [Feature request] Support data URIs Aug 11, 2020
@cartr
Copy link

cartr commented Aug 13, 2020

In Nightly 200812 06:01 (Build #2015757491), attempting to type data:text/html,Hello into the address bar yields the following error message:

Cannot complete request

Additional information about this problem or error is currently unavailable.

@kbrosnan kbrosnan changed the title FNX-470 ⁃ [Feature request] Support data URIs [Feature request] Support data URIs Aug 25, 2020
@kellda
Copy link

kellda commented Jun 1, 2021

This works now (along with view-source, moz://a, some about URLs like about:mozilla). This is great.

However the MIME type can't be omitted: data:text/html,test works, but data:,test doesn't (as of stable 88.1.4).

@masayuki-nakano
Copy link

It seems that still does not support data URI if it contains JS (<script> and event handler attribute).

@kellda
Copy link

kellda commented Jul 9, 2022

I just tested on latest stable, and both <script> and event handler worked. However, you have to replace spaces with %20. That's maybe why it didn't worked for you. (Or it wasn't implemented and now is)

@plwt
Copy link

plwt commented Oct 8, 2022

@dyura
Copy link

dyura commented Oct 11, 2022

I would like to add more details on the usage of my data urls. I use them a lot for three main purposes.

  • On desktop, I use it all the time as scratchpad data: text/html, <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. These javascripsts are embedded in data: text/html,......
  • I use data urls to bookmark many important notes, various numbers, names. Everything that goes beyond logins.
    Thus, these utilities and the information are available through the Firefox account on my devices, including Android.

Today on Android the data url still works via bookmarks. Previously, we could type "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.

@csadilek
Copy link
Contributor

csadilek commented Jan 9, 2023

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1809255

Change performed by the Move to Bugzilla add-on.

@csadilek csadilek closed this as completed Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature:OpenInApp intents feature request 🌟 New functionality and improvements Feature:SendTab P3 Some future sprint S3 Blocks non-critical functionality and a work around exists
Projects
No open projects
Development

No branches or pull requests

15 participants