Skip to content

Scamper New Url Request

konstantinjdobler edited this page Jul 25, 2018 · 1 revision

Scamper

Submitting a new url calls Scampers jumpToAbsoluteUrlAsync: urlText, for requesting a new web document. First of all it downloads the content by calling downloadFromUrlAsync: aUrl and then calls displayDocument: mimeDocument to display the downloaded document on the WebPageMorph.

WebPageMorph

Internally displayDocument: mimeDocument calls WebPageMorphs show method. show processes the downloaded document and loads missing elements, like images, if necessary by calling startDownloadingMorphState: morphs.

ScamperWorker

To Load the missing elements, startDownloadingMorphState: morphs creates a bunch of ScamperWorkers with task: morphs from: aScamper, giving them an initial task and a recipient. After creating a new ScamperWorker, start gets called for each of them to start working on the task.