Bug 87178 - Add a quirk for applications that depend on the relative ordering of progressCompleted/didFinishLoad
Summary: Add a quirk for applications that depend on the relative ordering of progress...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-05-22 16:07 PDT by Tim Horton
Modified: 2012-05-22 17:21 PDT (History)
6 users (show)

See Also:


Attachments
patch (7.85 KB, patch)
2012-05-22 16:50 PDT, Tim Horton
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2012-05-22 16:07:08 PDT
This order was changed in http://trac.webkit.org/changeset/94105.

<rdar://problem/11468434>
Comment 1 Tim Horton 2012-05-22 16:50:38 PDT
Created attachment 143398 [details]
patch
Comment 2 Maciej Stachowiak 2012-05-22 16:57:30 PDT
Comment on attachment 143398 [details]
patch

r=me
Comment 3 Andy Estes 2012-05-22 17:03:58 PDT
Comment on attachment 143398 [details]
patch

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

> Source/WebCore/page/Settings.h:568
> +        bool needsDidFinishLoadOrderQuirk() { return m_needsDidFinishLoadOrderQuirk; }

You should const-qualify this to be consistent with other getters.

> Source/WebKit/mac/WebView/WebView.mm:1361
> +- (BOOL)_needsDidFinishLoadOrderQuirk
> +{
> +    static BOOL needsQuirk = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_CORRECT_DID_FINISH_LOAD_ORDER) && applicationIsAppleMail();
> +    return needsQuirk;
> +}

No reason for this to be a method. I would make it a static free function.
Comment 4 Tim Horton 2012-05-22 17:21:12 PDT
Landed with Andy's changes in http://trac.webkit.org/changeset/118086