Changeset 58163 in webkit


Ignore:
Timestamp:
Apr 23, 2010 6:05:03 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-23 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: Audits (Image Dimensions): full image URLs are prefixed with the hosting page name
https://bugs.webkit.org/show_bug.cgi?id=37988

  • inspector/front-end/AuditRules.js: (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58162 r58163  
     12010-04-23  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: Audits (Image Dimensions): full image URLs are prefixed with the hosting page name
     6        https://bugs.webkit.org/show_bug.cgi?id=37988
     7
     8        * inspector/front-end/AuditRules.js:
     9        (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
     10
    1112010-04-23  Ilya Tikhonovsky  <loislo@chromium.org>
    212
  • trunk/WebCore/inspector/front-end/AuditRules.js

    r56909 r58163  
    648648            const node = WebInspector.domAgent.nodeForId(imageId);
    649649            var src = node.getAttribute("src");
    650             for (var frameOwnerCandidate = node; frameOwnerCandidate; frameOwnerCandidate = frameOwnerCandidate.parentNode) {
    651                 if (frameOwnerCandidate.documentURL) {
    652                     var completeSrc = WebInspector.completeURL(frameOwnerCandidate.documentURL, src);
    653                     break;
     650            if (!WebInspector.URLRegExp.test(src)) {
     651                for (var frameOwnerCandidate = node; frameOwnerCandidate; frameOwnerCandidate = frameOwnerCandidate.parentNode) {
     652                    if (frameOwnerCandidate.documentURL) {
     653                        var completeSrc = WebInspector.completeURL(frameOwnerCandidate.documentURL, src);
     654                        break;
     655                    }
    654656                }
    655657            }
Note: See TracChangeset for help on using the changeset viewer.