Open Bug 1902635 Opened 2 years ago Updated 2 months ago

Drop support for top-level data: through match_about_blank

Categories

(WebExtensions :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: robwu, Unassigned)

References

Details

(Whiteboard: [addons-jira])

In bug 1451463, as part of migrating the Quitter extension to a WebExtension, top-level data:-URLs were supported by allowing them to match when match_about_blank:true. was specified This was never documented and is not supported by Chrome. Moreover, the web cannot perform top-level navigations to data:-URLs (unless security.data_uri.block_toplevel_data_uri_navigation is changed to false), so there is no way for web content to see this kind of document. Typical sources of data:-URLs are when the user manually opens a data:-URL.

Now that we have "first-class" support for matching data:-URLs through match_origin_as_fallback (bug 1475831), we should drop the hack for match_about_blank matching data:-URLs, and update Quitter to use match_origin_as_fallback instead.

To resolve this bug:

Pull request to update Quitter is at https://github.com/mozilla-extensions/quitter/pull/6
The updated quitter will become part of the tree in bug 1795750.

Depends on: 1795750
No longer depends on: 1795750
Severity: -- → N/A
Priority: -- → P3

The last remaining reliance on the Quitter extension from data:-URLs is dropped by https://phabricator.services.mozilla.com/D274022 as part of bug 1895528. There build/pgo/profileserver.py replaced data:text/html,<script>Quitter.quit()</script> with a localhost page that calls Quitter.quit().

We don't need to depend on that dependency to be removed, since the in-tree Quitter extension was already updated a while ago.

What bug 1895528 aims to do (and is not completed yet) is to drop support for the security.data_uri.block_toplevel_data_uri_navigation preference. After the removal of the preference, the only data:-URLs in top level documents are when the user manually navigates there (with the system principal).

See Also: → 1895528
You need to log in before you can comment on or make changes to this bug.