Bug 146352 - [Mac] Disable QTKit by default.
Summary: [Mac] Disable QTKit by default.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-06-26 11:02 PDT by Said Abou-Hallawa
Modified: 2015-06-29 10:19 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.24 KB, patch)
2015-06-26 11:10 PDT, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff
Patch (1.57 KB, patch)
2015-06-26 11:39 PDT, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (697.67 KB, application/zip)
2015-06-26 12:19 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews101 for mac-mavericks (580.37 KB, application/zip)
2015-06-26 12:32 PDT, Build Bot
no flags Details
Patch (3.42 KB, patch)
2015-06-26 15:53 PDT, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff
Patch (3.44 KB, patch)
2015-06-29 08:43 PDT, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2015-06-26 11:02:14 PDT
From now on, QTKit has be to disabled by default on Mac.
Comment 1 Said Abou-Hallawa 2015-06-26 11:10:10 PDT
Created attachment 255649 [details]
Patch
Comment 2 Said Abou-Hallawa 2015-06-26 11:17:08 PDT
rdar://problem/21444515
Comment 3 Eric Carlson 2015-06-26 11:22:05 PDT
Comment on attachment 255649 [details]
Patch

This is wrong, it disables AVFoundation on all versions of OS X and does not change QTKit. Instead we should always set Settings::gQTKitEnabled to false and Settings::gAVFoundationEnabled to true.
Comment 4 Said Abou-Hallawa 2015-06-26 11:39:33 PDT
Created attachment 255653 [details]
Patch
Comment 5 Said Abou-Hallawa 2015-06-26 11:40:36 PDT
(In reply to comment #3)
> Comment on attachment 255649 [details]
> Patch
> 
> This is wrong, it disables AVFoundation on all versions of OS X and does not
> change QTKit. Instead we should always set Settings::gQTKitEnabled to false
> and Settings::gAVFoundationEnabled to true.

Sorry. Done.
Comment 6 Build Bot 2015-06-26 12:19:30 PDT
Comment on attachment 255653 [details]
Patch

Attachment 255653 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6021608846131200

New failing tests:
http/tests/media/remove-while-loading.html
http/tests/security/contentSecurityPolicy/media-src-allowed.html
http/tests/media/video-served-as-text.html
http/tests/media/video-accept-encoding.html
http/tests/media/video-throttled-load-metadata.html
http/tests/media/video-cancel-load.html
Comment 7 Build Bot 2015-06-26 12:19:33 PDT
Created attachment 255657 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 8 Build Bot 2015-06-26 12:32:49 PDT
Comment on attachment 255653 [details]
Patch

Attachment 255653 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6492062383865856

New failing tests:
http/tests/media/remove-while-loading.html
http/tests/security/contentSecurityPolicy/media-src-allowed.html
http/tests/media/video-served-as-text.html
http/tests/media/video-accept-encoding.html
http/tests/media/video-throttled-load-metadata.html
http/tests/media/video-cancel-load.html
Comment 9 Build Bot 2015-06-26 12:32:52 PDT
Created attachment 255659 [details]
Archive of layout-test-results from ews101 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 10 Said Abou-Hallawa 2015-06-26 15:53:30 PDT
Created attachment 255672 [details]
Patch
Comment 11 Darin Adler 2015-06-27 14:54:07 PDT
Comment on attachment 255672 [details]
Patch

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

> Source/WebCore/ChangeLog:13
> +        * page/Settings.cpp:
> +        (WebCore::invalidateAfterGenericFamilyChange): Remove the requirement for
> +        enabling QTKit and AVFoundation. QTKit should be disabled always. And
> +        AVFoundation should be enabled always.

Should gAVFoundationEnabled exist at all any more, then?
Comment 12 Said Abou-Hallawa 2015-06-29 08:43:36 PDT
Created attachment 255749 [details]
Patch
Comment 13 Said Abou-Hallawa 2015-06-29 08:51:37 PDT
(In reply to comment #11)
> Comment on attachment 255672 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=255672&action=review
> 
> > Source/WebCore/ChangeLog:13
> > +        * page/Settings.cpp:
> > +        (WebCore::invalidateAfterGenericFamilyChange): Remove the requirement for
> > +        enabling QTKit and AVFoundation. QTKit should be disabled always. And
> > +        AVFoundation should be enabled always.
> 
> Should gAVFoundationEnabled exist at all any more, then?

My comment was unclear. It is now fixed. This patch is fixing the initial state of enabling AVFoundation and QTKit. Both flags can exist in the same build: if USE(AVFOUNDATION) and PLATFORM(COCOA) are both true. They can register different media engines at the same time; see buildMediaEnginesVector(). And their values can be changed later separately through Settings::setAVFoundationEnabled() and Settings::setQTKitEnabled(). So I think merging them in one flag is incorrect or at least will affect the clarity of the code.
Comment 14 WebKit Commit Bot 2015-06-29 10:19:15 PDT
Comment on attachment 255749 [details]
Patch

Clearing flags on attachment: 255749

Committed r186071: <http://trac.webkit.org/changeset/186071>
Comment 15 WebKit Commit Bot 2015-06-29 10:19:19 PDT
All reviewed patches have been landed.  Closing bug.