Bug 89932

Summary: JavaScript resources have low priority when SVG is enabled
Product: WebKit Reporter: Pratik Solanki <psolanki>
Component: PlatformAssignee: Pratik Solanki <psolanki>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, ddkilzer, japhet, jochen, psolanki, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch adele: review+

Pratik Solanki
Reported 2012-06-25 18:19:53 PDT
The following change made it so that JavaScript resources have low priority. https://bugs.webkit.org/show_bug.cgi?id=12499 http://trac.webkit.org/changeset/108785 The problematic part is --- a/Source/WebCore/loader/cache/CachedResource.cpp +++ b/Source/WebCore/loader/cache/CachedResource.cpp @@ -61,6 +61,10 @@ static ResourceLoadPriority defaultPriorityForResourceType(CachedResource::Type #endif return ResourceLoadPriorityHigh; case CachedResource::Script: +#if ENABLE(SVG) + case CachedResource::SVGDocumentResource: + return ResourceLoadPriorityLow; +#endif case CachedResource::FontResource: case CachedResource::RawResource: return ResourceLoadPriorityMedium; CachedResource::Script now returns ResourceLoadPriorityLow instead of ResourceLoadPriorityMedium when SVG is enabled.
Attachments
Patch (2.25 KB, patch)
2012-06-25 22:30 PDT, Pratik Solanki
adele: review+
Pratik Solanki
Comment 1 2012-06-25 18:20:44 PDT
Pratik Solanki
Comment 2 2012-06-25 22:30:02 PDT
Pratik Solanki
Comment 3 2012-06-25 23:06:19 PDT
Darin Adler
Comment 4 2012-06-26 11:41:48 PDT
Comment on attachment 149456 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=149456&action=review > Source/WebCore/ChangeLog:9 > + r108785 inadvertently lowered the priority of JavaScript resources. Fix the code so we set It was not r108785. Looking to find out when this regressed.
Darin Adler
Comment 5 2012-06-26 11:43:14 PDT
Comment on attachment 149456 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=149456&action=review >> Source/WebCore/ChangeLog:9 >> + r108785 inadvertently lowered the priority of JavaScript resources. Fix the code so we set > > It was not r108785. Looking to find out when this regressed. Sorry, my bad, it was r108785 exactly as Pratik said. My apologies for the misleading comment.
Note You need to log in before you can comment on or make changes to this bug.