Open
Bug 1836210
Opened 2 years ago
Updated 2 years ago
Warn when setting document.domain
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: zcorpan, Unassigned)
References
(Blocks 1 open bug)
Details
We'd like to make document.domain setter do nothing by default, see https://bugzilla.mozilla.org/show_bug.cgi?id=1817844
That end, it would be good if devtools console issued a warning when document.domain is set. It can link to https://developer.mozilla.org/en-US/docs/Web/API/Document/domain
Comment 1•2 years ago
|
||
I think this can be done setting the proper Decprecated tag in the webidl, see https://searchfox.org/mozilla-central/rev/8dd0d2bebe4c897152da6c86d937e4be80bbaa54/dom/docs/webIdlBindings/index.md#1796-1808
Comment 2•2 years ago
|
||
Yeah, I think this just requires some DOM side changes. There's some documentation about it here.
Component: Console → DOM: Core & HTML
Product: DevTools → Core
Comment 3•2 years ago
|
||
Well, maybe Deprecated won't work because we only want it for the setter, but I think that would still require DOM side changes.
You need to log in
before you can comment on or make changes to this bug.
Description
•