WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 197428
XMLHttpRequest should propagate user gestures for media playback
https://bugs.webkit.org/show_bug.cgi?id=197428
Summary
XMLHttpRequest should propagate user gestures for media playback
Eric Carlson
Reported
2019-04-30 12:50:41 PDT
XMLHttpRequest should propagate user gestures for media playback.
Attachments
Patch
(24.88 KB, patch)
2019-04-30 13:12 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews104 for mac-highsierra-wk2
(2.78 MB, application/zip)
2019-04-30 14:27 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews100 for mac-highsierra
(3.33 MB, application/zip)
2019-04-30 14:32 PDT
,
EWS Watchlist
no flags
Details
Patch
(28.51 KB, patch)
2019-04-30 14:33 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2019-04-30 12:50:58 PDT
<
rdar://problem/46677392
>
Eric Carlson
Comment 2
2019-04-30 13:12:36 PDT
Created
attachment 368599
[details]
Patch
EWS Watchlist
Comment 3
2019-04-30 14:27:46 PDT
Comment on
attachment 368599
[details]
Patch
Attachment 368599
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/12044080
New failing tests: fast/events/popup-blocking-timers5.html
EWS Watchlist
Comment 4
2019-04-30 14:27:48 PDT
Created
attachment 368612
[details]
Archive of layout-test-results from ews104 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 5
2019-04-30 14:32:56 PDT
Comment on
attachment 368599
[details]
Patch
Attachment 368599
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/12044204
New failing tests: fast/events/popup-blocking-timers5.html
EWS Watchlist
Comment 6
2019-04-30 14:32:58 PDT
Created
attachment 368613
[details]
Archive of layout-test-results from ews100 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-highsierra Platform: Mac OS X 10.13.6
Eric Carlson
Comment 7
2019-04-30 14:33:07 PDT
Created
attachment 368614
[details]
Patch
Jer Noble
Comment 8
2019-05-01 07:38:51 PDT
Comment on
attachment 368614
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=368614&action=review
> Source/WebCore/xml/XMLHttpRequest.cpp:69 > +static const Seconds maximumIntervalForUserGestureForwarding { 10_s };
Nit: I think it's really weird that there's both `maxIntervalForUserGestureForwarding` in DOMTimer and `maximumIntervalForUserGestureForwarding` in XMLHttpRequest, and that they're different values. (1s vs. 10s.) Doesn't this mean that a xhr -> timer -> xhr of less that 10s will break if the first xhr takes > 1s?
Eric Carlson
Comment 9
2019-05-01 08:29:52 PDT
Comment on
attachment 368614
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=368614&action=review
Thanks for the review!
>> Source/WebCore/xml/XMLHttpRequest.cpp:69 >> +static const Seconds maximumIntervalForUserGestureForwarding { 10_s }; > > Nit: I think it's really weird that there's both `maxIntervalForUserGestureForwarding` in DOMTimer and `maximumIntervalForUserGestureForwarding` in XMLHttpRequest, and that they're different values. (1s vs. 10s.) > > Doesn't this mean that a xhr -> timer -> xhr of less that 10s will break if the first xhr takes > 1s?
No, because XMLHttpRequest and DOMTimer both set a RefPtr<UserGestureIndicator> instance variable to null when their local timeout expires.
WebKit Commit Bot
Comment 10
2019-05-01 08:56:40 PDT
Comment on
attachment 368614
[details]
Patch Clearing flags on attachment: 368614 Committed
r244823
: <
https://trac.webkit.org/changeset/244823
>
WebKit Commit Bot
Comment 11
2019-05-01 08:56:41 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug