WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
120037
Name getters on a document can get polluted by elements in shadow DOM
https://bugs.webkit.org/show_bug.cgi?id=120037
Summary
Name getters on a document can get polluted by elements in shadow DOM
Ryosuke Niwa
Reported
2013-08-19 17:16:05 PDT
We need to partially merge
https://codereview.chromium.org/22508006
so that we don't register ids and names of elements inside author shadow DOMs.
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2022-08-19 14:35:15 PDT
Element.h: ADDED ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.h#L61
ADDED ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.h#L701
ADDED ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.h#L707
Element.cpp ADDED ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.cpp#L4407
Missing Asserts: ASSERT(document()->isHTMLDocument()); For: updateNamedItemRegistration updateExtraNamedItemRegistration ADDED Partially or with changes ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.cpp#L4153
ADDED with changes ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.cpp#L4142
ADDED ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.cpp#L4125
ADDED with changes ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/Element.cpp#L4074
TreeScope.h: ADDED with changes ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/TreeScope.h#L63
ADDED with changes ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/TreeScope.h#L135
ADDED with changes ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/TreeScope.h#L155
TreeScope.cpp: ADDED with change ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/TreeScope.cpp#L56
ADDED with changes ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/TreeScope.cpp#L132
ADDED ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/dom/TreeScope.cpp#L159
ReplaceNodeWithSpanCommand.cpp: ADDED ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp#L50
ADDED with no ASSERT ->
https://github.com/WebKit/WebKit/blob/a3bf99245a91d13466e4cf801e0e76e4bdce2f31/Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp#L56
_____ I think this was merge more or less. So I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Please reopen, if needed. Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug