Closed Bug 668690 Opened 13 years ago Closed 13 years ago

scripts blocked by CAPS are still fetched, starting with Fx 4

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: al_9x, Assigned: bzbarsky)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

test page: <script src="script.js"></script>
policy: user_pref("capability.policy.default.javascript.enabled", "noAccess");

The above policy prevents script fetching in Fx 3.6 but not in 4 & 5
Last good nightly: 2010-05-03
First bad nightly: 2010-05-04

Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=83c887dff0da&tochange=d6bb0f9e9519
Sounds like the HTML5 parser prefetch at work.  The script is not executed, of course.  I suppose we can condition it for scripts on whether script is enabled for the document...

In particular, nsScriptLoader::ProcessScriptElement does an enabled check, but nsScriptLoader::PreloadURI does not.

Jonas, any objections to adding it?
Status: UNCONFIRMED → NEW
Component: Security: CAPS → DOM
Ever confirmed: true
QA Contact: caps → general
Assignee: nobody → bzbarsky
Priority: -- → P2
Whiteboard: [needs review]
Whiteboard: [needs review] → [needs landing]
http://hg.mozilla.org/integration/mozilla-inbound/rev/78406c193536
Flags: in-testsuite?
Whiteboard: [needs landing]
Target Milestone: --- → mozilla8
Merged:
http://hg.mozilla.org/mozilla-central/rev/78406c193536
Status: NEW → RESOLVED
Closed: 13 years ago
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
Version: unspecified → Trunk
This bug fix is listed on Firefox 8 for developers.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: