⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 185781 in webkit


Ignore:
Timestamp:
Jun 19, 2015, 4:51:49 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Crash under WebCore::PageConsoleClient::addMessage attempting to log insecure content message in ImageDocument
https://bugs.webkit.org/show_bug.cgi?id=146096

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-06-19
Reviewed by Timothy Hatcher.

Was able to reproduce this using a user stylesheet with an http css font
on a pdf (ImageDocument) main document loaded over https. Was unable to
create a reliable test for this scenario.

  • page/PageConsoleClient.cpp:

(WebCore::getParserLocationForConsoleMessage):
The scriptableDocumentParser could be null, such as in an ImageDocument.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r185779 r185781  
     12015-06-19  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Crash under WebCore::PageConsoleClient::addMessage attempting to log insecure content message in ImageDocument
     4        https://bugs.webkit.org/show_bug.cgi?id=146096
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Was able to reproduce this using a user stylesheet with an http css font
     9        on a pdf (ImageDocument) main document loaded over https. Was unable to
     10        create a reliable test for this scenario.
     11
     12        * page/PageConsoleClient.cpp:
     13        (WebCore::getParserLocationForConsoleMessage):
     14        The scriptableDocumentParser could be null, such as in an ImageDocument.
     15
    1162015-06-19  Dean Jackson  <dino@apple.com>
    217
  • trunk/Source/WebCore/page/PageConsoleClient.cpp

    r184436 r185781  
    9494
    9595    ScriptableDocumentParser* parser = document->scriptableDocumentParser();
     96    if (!parser)
     97        return;
    9698
    9799    // When the parser waits for scripts, any messages must be coming from some other source, and are not related to the location of the script element that made the parser wait.
Note: See TracChangeset for help on using the changeset viewer.