Bug 203089 - MediaKeySession / WebKitMediaKeySession should not prevent entering the back/forward cache
Summary: MediaKeySession / WebKitMediaKeySession should not prevent entering the back/...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 202293
  Show dependency treegraph
 
Reported: 2019-10-17 09:42 PDT by Chris Dumez
Modified: 2019-11-04 19:03 PST (History)
14 users (show)

See Also:


Attachments
WIP Patch (11.96 KB, patch)
2019-10-30 16:53 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (17.75 KB, patch)
2019-10-30 17:02 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (23.53 KB, patch)
2019-10-31 07:49 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (26.32 KB, patch)
2019-11-04 16:31 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (26.32 KB, patch)
2019-11-04 18:41 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2019-10-17 09:42:14 PDT
MediaKeySession should not prevent entering the back/forward cache.
Comment 1 Chris Dumez 2019-10-30 16:53:18 PDT
Created attachment 382392 [details]
WIP Patch
Comment 2 Chris Dumez 2019-10-30 17:02:27 PDT
Created attachment 382395 [details]
WIP Patch
Comment 3 Radar WebKit Bug Importer 2019-10-31 07:45:09 PDT
<rdar://problem/56780551>
Comment 4 Chris Dumez 2019-10-31 07:49:29 PDT
Created attachment 382457 [details]
Patch
Comment 5 Chris Dumez 2019-11-04 08:18:52 PST
ping review?
Comment 6 youenn fablet 2019-11-04 08:24:23 PST
Comment on attachment 382457 [details]
Patch

How do we make sure we have not missed to enqueue one event or a task?
We probably do not have a lot of coverage there.
Comment 7 Chris Dumez 2019-11-04 08:26:36 PST
(In reply to youenn fablet from comment #6)
> Comment on attachment 382457 [details]
> Patch
> 
> How do we make sure we have not missed to enqueue one event or a task?
> We probably do not have a lot of coverage there.

If you try to dispatch events while in the cache, then we would hit assertions.
Comment 8 WebKit Commit Bot 2019-11-04 08:51:30 PST
Comment on attachment 382457 [details]
Patch

Clearing flags on attachment: 382457

Committed r251993: <https://trac.webkit.org/changeset/251993>
Comment 9 WebKit Commit Bot 2019-11-04 08:51:32 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 Truitt Savell 2019-11-04 12:57:46 PST
The changes in https://trac.webkit.org/changeset/251993/webkit

broke platform/mac/media/encrypted-media/fps-generateRequest.html

History:
https://results.webkit.org/?suite=layout-tests&test=platform%2Fmac%2Fmedia%2Fencrypted-media%2Ffps-generateRequest.html

Diff:
--- /Volumes/Data/slave/catalina-release-tests-wk1/build/layout-test-results/platform/mac/media/encrypted-media/fps-generateRequest-expected.txt
+++ /Volumes/Data/slave/catalina-release-tests-wk1/build/layout-test-results/platform/mac/media/encrypted-media/fps-generateRequest-actual.txt
@@ -6,6 +6,6 @@
 RUN(session = keys.createSession())
 EXPECTED (session != 'null') OK
 RUN(promise = session.generateRequest("sinf", initData))
-Promise resolved OK
+Promise rejected FAIL
 END OF TEST
Comment 11 Truitt Savell 2019-11-04 12:58:57 PST
Reverted r251993 for reason:

Broke platform/mac/media/encrypted-media/fps-generateRequest.html on Mojave+

Committed r252008: <https://trac.webkit.org/changeset/252008>
Comment 12 Chris Dumez 2019-11-04 16:31:13 PST
Created attachment 382787 [details]
Patch
Comment 13 WebKit Commit Bot 2019-11-04 18:20:00 PST
Comment on attachment 382787 [details]
Patch

Rejecting attachment 382787 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 382787, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

ChangeLog entry in LayoutTests/ChangeLog contains OOPS!.

Full output: https://webkit-queues.webkit.org/results/13212916
Comment 14 Chris Dumez 2019-11-04 18:41:27 PST
Created attachment 382795 [details]
Patch
Comment 15 WebKit Commit Bot 2019-11-04 19:03:44 PST
Comment on attachment 382795 [details]
Patch

Clearing flags on attachment: 382795

Committed r252033: <https://trac.webkit.org/changeset/252033>
Comment 16 WebKit Commit Bot 2019-11-04 19:03:46 PST
All reviewed patches have been landed.  Closing bug.