Closed Bug 1582606 Opened 5 years ago Closed 3 years ago

Allow data: url on GeckoView Example

Categories

(GeckoView :: GeckoViewExample, enhancement, P3)

Unspecified
All
enhancement

Tracking

(firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

Actually, GVE doesn't support data: url. When debugging Gecko for DOM or editor, I sometimes use data: url to show simple Web content example.

loadUri uses content principal, so to use data: url, it needs LOAD_FLAGS_FORCE_ALLOW_DATA_URI.

James says we have this load flag. We just need to expose it to GVE.

Keywords: good-first-bug
Priority: -- → P3
Component: General → GeckoViewExample

I'd quite like to be able to do this for Browsertime-related stuff. I can't inject anything into about:blank with enough control. I actually want this more generally; does GV respect the underlying security.data_uri.block_toplevel_data_uri_navigations pref if it's set in the profile?

(In reply to Nick Alexander :nalexander [he/him] from comment #2)

I'd quite like to be able to do this for Browsertime-related stuff. I can't inject anything into about:blank with enough control. I actually want this more generally; does GV respect the underlying security.data_uri.block_toplevel_data_uri_navigations pref if it's set in the profile?

Maybe yes, but when url has space, GVE tries to browse google.com since this detects as search word.

If data: url has space, it doesn't be recognized as data: url on GVE.

Assignee: nobody → m_kato
Status: NEW → ASSIGNED
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/9790289bfed7
Allow data: url on GVE. r=geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: