Closed Bug 1539393 Opened 6 years ago Closed 6 years ago

TransactionDatabaseOperationBase::ActorDestroy doesn't check if we are waiting for the Continue message

Categories

(Core :: Storage: IndexedDB, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox-esr60 --- wontfix
firefox66 --- wontfix
firefox67 + fixed
firefox68 + fixed

People

(Reporter: janv, Assigned: janv)

References

Details

(Keywords: crash, sec-moderate, testcase-wanted, Whiteboard: [adv-main67+])

Crash Data

Attachments

(1 file)

Like bug 1538619, this can help to reduce number of intermittent failures, crashes, hangs.
However, WASM in IDB is not used much and is actually being removed (it's not possible to store WASM in IDB anymore, but old databases can still trigger sending of the Preprocess message).
We should rather fix this using a similar approach as in bug 1533789.

Group: core-security → dom-core-security
Type: enhancement → defect
Assignee: nobody → jvarga
Status: NEW → ASSIGNED
Priority: -- → P2
Blocks: 1541370

Yes, this can cause a rare shutdown hang too.
If it happens, the crash annotation is "gLiveDatabaseHashtable: N"
See bug 1542478 comment 2.

I have a patch for this.

Crash Signature: [@ mozilla::dom::indexedDB::`anonymous namespace'::QuotaClient::ShutdownTimedOut] [@ mozilla::dom::indexedDB::(anonymous namespace)::QuotaClient::ShutdownTimedOut]

Is this something we should consider for Beta uplift?

Flags: needinfo?(jvarga)

Yes, will request approval.

Jan, want to request uplift to beta for 67?

Jan, I am not seeing crashes with 67 beta but note that our last beta is this week if you think it needs to be uplifted to 67 before we ship.

Comment on attachment 9058083 [details]
Bug 1539393 - TransactionDatabaseOperationBase::ActorDestroy doesn't check if we are waiting for the Continue message; r=asuth

Beta/Release Uplift Approval Request

  • User impact if declined: Users can experience crashes if IndexedDB was used to stored WASM.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Simple patch, verified on Nightly (landed 17 days ago).
  • String changes made/needed: None
Flags: needinfo?(jvarga)
Attachment #9058083 - Flags: approval-mozilla-beta?

Sorry for the delay, it would be good to have this patch in 67 for correctness.

Comment on attachment 9058083 [details]
Bug 1539393 - TransactionDatabaseOperationBase::ActorDestroy doesn't check if we are waiting for the Continue message; r=asuth

Uplift approved for the beta branch.

Attachment #9058083 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Whiteboard: [adv-main67+]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: