Open Bug 212455 Opened 21 years ago Updated 2 years ago

Stopping a document can cause DocShell::Stop() to be called repeatedly for the same document

Categories

(Core :: DOM: Navigation, defect)

x86
All
defect

Tracking

()

People

(Reporter: rbs, Unassigned)

Details

Attachments

(1 file)

Spin off from bug 70030 comment 81:

"As for DocumentViewerImpl::Stop, it is being called a few times. ..."
BTW akkana, since this kicks the crawling code, I wonder about doing:
  if (mEnableRendering && (mLoaded || mStopped) && mPresContext) {
    PRUint16 mode;
    mPresContext->GetImageAnimationMode(&mode);
    if (mode != imgIContainer::kDontAnimMode)
      mPresContext->SetImageAnimationMode(imgIContainer::kDontAnimMode);
  }

or just adding an early check in nsPresContext::SetImageAnimationMode() so that
all call sites don't have to repeat the check? What do you think?
Assignee: adamlock → nobody
QA Contact: adamlock → docshell
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: