Closed Bug 775476 Opened 12 years ago Closed 8 years ago

Make synchronous XHR on the main thread unavailable to Marketplace apps

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hsivonen, Unassigned)

Details

We've already prevented the use of synchronous XHR together with new features on the main thread in order to curb the problems that arise from synchronous XHR (UI unresponsiveness and nested event loops tickling Gecko bugs). The only reason synchronous and XHR is still supported with old XHR features is that legacy content on the Web uses it.

The Mozilla Marketplace doesn't offer random legacy Web pages for installation, so there's an opportunity to withdraw the availability of some of the worst Web features from apps installed through the Marketplace, so that bad app with bad practices don't get into the Marketplace in the first place. If we want apps to have some quality attributes such as UI responsiveness, chances are that technically preventing access to responsiveness-hostile legacy APIs will be more effective than technically granting access and then trying to catch usage as part of review.

Considering the above, I suggest making synchronous XHR from the main thread unavailable when the caller is an application installed through the Marketplace.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.