Bug 147506 - Crashes under HTMLMediaElement::updateActiveTextTrackCues() when destroying CachedPage.
Summary: Crashes under HTMLMediaElement::updateActiveTextTrackCues() when destroying C...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: InRadar
: 147505 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-31 14:17 PDT by Andreas Kling
Modified: 2015-07-31 15:44 PDT (History)
1 user (show)

See Also:


Attachments
Patch (1.67 KB, patch)
2015-07-31 14:18 PDT, Andreas Kling
cdumez: review+
Details | Formatted Diff | Diff
Patch for landing (1.59 KB, patch)
2015-07-31 14:50 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2015-07-31 14:17:24 PDT
<rdar://problem/21939014>
Comment 1 Andreas Kling 2015-07-31 14:18:06 PDT
Created attachment 257959 [details]
Patch
Comment 2 Pratik Solanki 2015-07-31 14:21:27 PDT
*** Bug 147505 has been marked as a duplicate of this bug. ***
Comment 3 Chris Dumez 2015-07-31 14:24:46 PDT
Comment on attachment 257959 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=257959&action=review

> Source/WebCore/html/HTMLMediaElement.cpp:5542
> +    if (!ActiveDOMObject::scriptExecutionContext() || ActiveDOMObject::scriptExecutionContext()->activeDOMObjectsAreStopped())

nit: Do we really need the "ActiveDOMObject::"?

> Source/WebCore/html/HTMLMediaElement.cpp:5543
> +        return;

But now we're not doing the updateSleepDisabling() call anymore in this case, why is this OK?
Comment 4 Chris Dumez 2015-07-31 14:38:57 PDT
Comment on attachment 257959 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=257959&action=review

r=me

>> Source/WebCore/html/HTMLMediaElement.cpp:5542
>> +    if (!ActiveDOMObject::scriptExecutionContext() || ActiveDOMObject::scriptExecutionContext()->activeDOMObjectsAreStopped())
> 
> nit: Do we really need the "ActiveDOMObject::"?

let's use document().

>> Source/WebCore/html/HTMLMediaElement.cpp:5543
>> +        return;
> 
> But now we're not doing the updateSleepDisabling() call anymore in this case, why is this OK?

Sorry, I thought you were in clearMediaPlayer(), never mind my comment.
Comment 5 Andreas Kling 2015-07-31 14:50:55 PDT
Created attachment 257962 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2015-07-31 15:44:03 PDT
Comment on attachment 257962 [details]
Patch for landing

Clearing flags on attachment: 257962

Committed r187687: <http://trac.webkit.org/changeset/187687>
Comment 7 WebKit Commit Bot 2015-07-31 15:44:07 PDT
All reviewed patches have been landed.  Closing bug.