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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: al_9x, Assigned: bzbarsky)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
1.14 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 2•13 years ago
|
||
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 | ||
Comment 3•13 years ago
|
||
Attachment #543332 -
Flags: review?(jonas)
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → bzbarsky
Priority: -- → P2
Whiteboard: [needs review]
Attachment #543332 -
Flags: review?(jonas) → review+
Assignee | ||
Updated•13 years ago
|
Whiteboard: [needs review] → [needs landing]
Assignee | ||
Comment 4•13 years ago
|
||
Flags: in-testsuite?
Whiteboard: [needs landing]
Target Milestone: --- → mozilla8
Comment 5•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
Version: unspecified → Trunk
Updated•13 years ago
|
Keywords: dev-doc-needed
Comment 6•13 years ago
|
||
This bug fix is listed on Firefox 8 for developers.
Keywords: dev-doc-needed → dev-doc-complete
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•