| Index: Source/core/html/HTMLObjectElement.cpp
|
| diff --git a/Source/core/html/HTMLObjectElement.cpp b/Source/core/html/HTMLObjectElement.cpp
|
| index cad947b6161d3e528dcbf4a06e13c680fca31395..c9732d4bdbd6eef0651abd62b6715425553396c0 100644
|
| --- a/Source/core/html/HTMLObjectElement.cpp
|
| +++ b/Source/core/html/HTMLObjectElement.cpp
|
| @@ -183,7 +183,8 @@ void HTMLObjectElement::parametersForPlugin(Vector<String>& paramNames, Vector<S
|
|
|
| // Turn the attributes of the <object> element into arrays, but don't override <param> values.
|
| if (hasAttributes()) {
|
| - for (unsigned i = 0; i < attributeCount(); ++i) {
|
| + unsigned attributeCount = this->attributeCount();
|
| + for (unsigned i = 0; i < attributeCount; ++i) {
|
| const Attribute* attribute = attributeItem(i);
|
| const AtomicString& name = attribute->name().localName();
|
| if (!uniqueParamNames.contains(name.impl())) {
|
|
|