Security regression: cannot access through DOM external stylesheets
Categories
(Core :: Security, defect)
Tracking
()
People
(Reporter: elvanor2007, Unassigned)
References
()
Details
Attachments
(1 file)
1.05 KB,
text/html
|
Details |
Comment 1•17 years ago
|
||
Reporter | ||
Comment 2•17 years ago
|
||
Reporter | ||
Comment 3•17 years ago
|
||
Reporter | ||
Comment 4•17 years ago
|
||
Comment 5•17 years ago
|
||
Updated•17 years ago
|
Comment 6•9 years ago
|
||
Updated•5 years ago
|
Hi daniel, im sorry to bother you with this old bug, Im trying to reproduce it but the steps are not very clear and the original reporter has a deactivated account. I was wondering if you know if this issue is still valid or if we can close it.
tanks
Comment 8•3 years ago
|
||
STR:
- Open Web Console.
- Navigate the attachment in comment #3.
Actual result:
1
OK
Uncaught DOMException: CSSStyleSheet.deleteRule: Not allowed to access cross-origin stylesheet
will be written to Web Console.
Expected result:
1
OK
Done
should be written to Web Console.
When comment #5 was written, the attached test case "worked" because Bugzilla attachments were hosted on the same domain as the stylesheet (bugzilla.mozilla.org
). But currently attachments are hosted on a different domain (bmoattachments.org
). So the test case will fail as "expected".
That said, I don't think we should "fix" this "regression".
- Obviously this change is introduced intentionally to fix cross-domain information leak.
- Chrome also fails with the test case.
Comment 9•3 years ago
|
||
(In reply to dhausknecht from comment #6)
So, I think the error message "SecurityError: The operation is insecure" can
be improved to say why it actually fails.
Now the message is improved (Uncaught DOMException: CSSStyleSheet.deleteRule: Not allowed to access cross-origin stylesheet
).
Comment 10•2 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Comment 11•1 year ago
|
||
The severity field is not set for this bug.
:dveditz, could you have a look please?
For more information, please visit BugBot documentation.
Comment 12•1 year ago
|
||
I think we can close this as invalid.
Comment 6 indicates that the "new" (Firefox 3) behavior was intentional/per-spec, though the error message wasn't great at the time. And since then, the error message has been improved (per comment 9), so that followup concern is also no longer an issue.
Description
•