[Webkit-unassigned] [Bug 105330] REGRESSION(r137607): resource load client callbacks are not called for the main resource when loading HTML string
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 19 11:32:39 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=105330
--- Comment #8 from Nate Chapin <japhet at chromium.org> 2012-12-19 11:34:54 PST ---
(In reply to comment #7)
> (In reply to comment #6)
> > (From update of attachment 180188 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=180188&action=review
> >
> > > Source/WebCore/loader/MainResourceLoader.cpp:697
> > > unsigned long MainResourceLoader::identifier() const
> > > {
> > > + if (m_identifier)
> > > + return m_identifier;
> > > if (ResourceLoader* resourceLoader = loader())
> > > return resourceLoader->identifier();
> >
> > This breaks the "setIdentifier" API on ResourceLoader that WebKit2 relies on.
>
> Now that we've made MainResourceLoader no longer be a ResourceLoader, we're going to start getting in to trouble as we diverge the two. Having two copies of the identifier seems like a great first step towards breaking things.
MainResourceLoader::m_identifier should only be used when it is a SubstituteData load. In that case, there should not be a ResourceLoader. So there should still only be one identifier per load.
Should I consider an assert to that effect here?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list