Bug 1599971 - part 5: Mark TextControlState::UnbindFromFrame() as MOZ_CAN_RUN_SCRIPT r=m_kato,emilio
Note that `TextControlState::BindToFrame()` may also run script if it's called without script blocker. However, it shouldn't occur. Therefore, we don't need to mark it `MOZ_CAN_RUN_SCRIPT`, but we should check script blocker existence with `MOZ_ASSERT`. Differential Revision: https://phabricator.services.mozilla.com/D55776
This commit is contained in:
@@ -2260,6 +2260,7 @@ nsFrameSelection* HTMLInputElement::GetConstFrameSelection() {
|
||||
}
|
||||
|
||||
nsresult HTMLInputElement::BindToFrame(nsTextControlFrame* aFrame) {
|
||||
MOZ_ASSERT(!nsContentUtils::IsSafeToRunScript());
|
||||
TextControlState* state = GetEditorState();
|
||||
if (state) {
|
||||
return state->BindToFrame(aFrame);
|
||||
|
||||
Reference in New Issue
Block a user