Skip to content

Commit

Permalink
Bug 1652265. Add a more helpful comment to nsPrintJob::Observe. r=bob…
Browse files Browse the repository at this point in the history
  • Loading branch information
jwatt committed Jul 11, 2020
1 parent 49aeea4 commit 74d01ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layout/printing/nsPrintJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,11 @@ nsresult nsPrintJob::StartPagePrintTimer(const UniquePtr<nsPrintObject>& aPO) {
/*=============== nsIObserver Interface ======================*/
MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHODIMP nsPrintJob::Observe(
nsISupports* aSubject, const char* aTopic, const char16_t* aData) {
// Only process a null topic which means the progress dialog is open.
// We expect to be called by nsIPrintingPromptService after we were passed to
// it by via the nsIPrintingPromptService::ShowPrintProgressDialog call in
// ShowPrintProgress. Once it has opened the progress dialog it calls this
// method, passing null as the topic.

if (aTopic) {
return NS_OK;
}
Expand Down

0 comments on commit 74d01ec

Please sign in to comment.