Skip to content

Commit

Permalink
Revert 02857c1. rdar://problem/97324281
Browse files Browse the repository at this point in the history
  • Loading branch information
alancoon committed Aug 15, 2022
1 parent b0bd0f1 commit 0504ebf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm
Expand Up @@ -1830,9 +1830,8 @@ static void jsPDFDocFinalize(JSObjectRef object)
if (!supportsForms())
return;

auto passwordField = PDFPluginPasswordField::create(m_pdfLayerController.get(), this);
m_passwordField = passwordField.ptr();
passwordField->attach(m_annotationContainer.get());
m_passwordField = PDFPluginPasswordField::create(m_pdfLayerController.get(), this);
m_passwordField->attach(m_annotationContainer.get());
}

void PDFPlugin::attemptToUnlockPDF(const String& password)
Expand Down Expand Up @@ -2503,9 +2502,8 @@ static bool getEventTypeFromWebEvent(const WebEvent& event, NSEventType& eventTy
}
ALLOW_DEPRECATED_DECLARATIONS_END

auto activeAnnotation = PDFPluginAnnotation::create(annotation, m_pdfLayerController.get(), this);
m_activeAnnotation = activeAnnotation.get();
activeAnnotation->attach(m_annotationContainer.get());
m_activeAnnotation = PDFPluginAnnotation::create(annotation, m_pdfLayerController.get(), this);
m_activeAnnotation->attach(m_annotationContainer.get());
} else
m_activeAnnotation = nullptr;
}
Expand Down

0 comments on commit 0504ebf

Please sign in to comment.