Can't load bookmarklets at all

Bug #1263153 reported by Stuart Langridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webbrowser-app
Confirmed
Medium
Unassigned
webbrowser-app (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The Ubuntu browser will not allow me to load javascript: URLs at all, either from the address bar or from a bookmark. AddressBar.qml disallows javascript: URLs but is easily patched to allow them; however, with that patch in place, or when loading a javascript: URL from a bookmark (manually poked into bookmarks.sqlite), the browser shows a screen saying:

Network Error
It appars you are having trouble viewing: javascript:location.href=%22http://www.yahoo.com/%22
Ubuntu suggests you check your network settings and try refreshing the page.

This makes it impossible to use bookmarklets in the Ubuntu browser, which is quite annoying: for example, the Readability bookmarklet makes it much easier to read pages on a phone-sized screen, and isn't available to me as an Ubuntu Touch user. It also generally cuts off the ability of people to deliver little enhancements to the browser before they get rolled into the browser as a built-in feature.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Confirmed. Tested with manually inserting the following bookmarklet in the bookmarks database:

    javascript:(function(){alert("test");})();

Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
Changed in webbrowser-app:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.