Vivaldi handles bookmarklets with code "data:text/html" incorrectly
-
Bug report: VB-99070
In Chromium, it is possible to create a bookmark with the following code:
data:text/html,<script>alert('hi')</script>
And such bookmarks work as expected there (Chromium version 115.0.5790.110). But in Vivaldi it is broken.
Expected behaviour:
A new tab opens, with alert dialog saying "hi".Actual behaviour:
Clicking on such bookmark opens a page with strange url "blob:chrome-extension://mpog...." instead of the bookmark code, and strange encoded page. -
@Ashark Can not reproduce this on Windows 11 and Debian 11.
I added a bookmark in Bookmakr Manager, copied the data-URL, pastes in Name and URL field, same in Bookmark Panel.
Works both to open the bookamarklet. -
@Ashark Welcome in our Vivaldi Community
Some useful links for you:
- Vivaldi Features
- How To
- Vivaldi Tips
- Tutorials
- Vivaldi Help
- Using the Forum Search
- Local Forums in your language
- Troubleshooting issues
- Common Security-Related Questions
- Help on Feature Requests
- Modding Vivaldi
- Snapshot vs Stable browser
- Vivaldi's Business Model
- Help us grow
- Vivaldi Social
Do not hesitate to ask, we are a community to help users.
Enjoy browsing with Vivaldi.
-
@Ashark Try without extensions.
Start Vivaldi in shell as
vivaldi --disable-extensions
and test the bookmarklet -
--disable-extensions
option did not worked. But I disabled all extensions manually.
Fully reproducible. Arch Linux. Also checked in Windows 11.Works both to open the bookamarklet.
What do you mean "opens"? The new tab opens, yes, but the result is unexpected.
-
@Ashark said in Vivaldi handles bookmarklets with code "data:text/html" incorrectly:
VB-99070
Bug was closed as Not Reproducible.
-
@Ashark For me the tabs opens and the JS alert appears.
-
@Ashark said in Vivaldi handles bookmarklets with code "data:text/html" incorrectly:
--disable-extensions
vivaldi --disable-extensions
Works for me in shell on Debian.You should check:
Start Vivaldi on your Linux in shell with a test profile
vivaldi --user-data-dir="/tmp/VIVTEST/"
Add this code as a bookmark in Bookmark Manager:
data:text/html,<script>alert('hi')</script>
Click on bookmark
Watch the JS alert opens -
I needed to close all remaining windows of Vivaldi, so launching from terminal with
vivaldi-stable --disable-extensions
worked.I created a clean profile, and bokmarklet worked there (alerts hi) from bookmarks panel.
But in my main profile, from bookmarks panel it does NOT work. Moving it to express bookmarks folder and clicking there - works. Moving back to bookmarks panel - does not work.
How can I debug this?
-
@Ashark said in Vivaldi handles bookmarklets with code "data:text/html" incorrectly:
I needed to close all remaining windows of Vivaldi, so launching from terminal with vivaldi-stable --disable-extensions worked.
Yes, you always need to close Vivaldi for this.
I created a clean profile, and bokmarklet worked there (alerts hi) from bookmarks panel.
Then something in your old profile acts strange.
But in my main profile, from bookmarks panel it does NOT work. Moving it to express bookmarks folder and clicking there - works. Moving back to bookmarks panel - does not work.
In Speed Dial it works? Fine. That what i expected.
Moving back to bookmarks panel
You mean the panel which appears with F4 at left?
How do you do this "move"? -
You mean the panel which appears with F4 at left?
No. I mean the bookmarks panel, which is toggled with
Ctrl+Shift+B
.How do you do this "move"?
I open a bookmarks manager with
Ctrl+B
, then I drag the needed bookmark from Speed Dial folder to the upper folder, so that it appears in a bookmarks panel. I called this "move".But it does not matter if I remove the bookmark, and create a new one on a panel with the same code in url. The result is the same.