Closed
Bug 309529
Opened 21 years ago
Closed 21 years ago
Move logic from nsObjectFrame::Instantiate(const char*, nsIURI*) into nsObjectLoadingContent
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: Biesinger, Assigned: Biesinger)
References
Details
Attachments
(2 files, 2 obsolete files)
|
921 bytes,
text/html
|
Details | |
|
22.42 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
nsObjectFrame::InstantiatePlugin doesn't have much code anymore; most of it can
probably be moved to nsObjectLoadingContent. it would allow to remove some
redundancy (multiple conversions from classid to MIME type, etc)
| Assignee | ||
Comment 1•21 years ago
|
||
this probably includes figuring out what this odd base URI business in that
function is doing (the base URI is passed to pluginhost->Instantiate for the
case where a class ID was present and supported)
| Assignee | ||
Updated•21 years ago
|
Summary: Move logic from nsObjectFrame::InstantiatePlugin into nsObjectLoadingContent → Move logic from nsObjectFrame::Instantiate(const char*, nsIURI*) into nsObjectLoadingContent
| Assignee | ||
Comment 2•21 years ago
|
||
ok, as best as I can tell the activex code does not care at all what data it gets:
http://lxr.mozilla.org/seamonkey/source/embedding/browser/activex/src/plugin/LegacyPlugin.cpp#1131
| Assignee | ||
Comment 3•21 years ago
|
||
hm, the plugin host really does want a non-null URI...
| Assignee | ||
Comment 4•21 years ago
|
||
| Assignee | ||
Comment 5•21 years ago
|
||
Attachment #200974 -
Flags: superreview?(bzbarsky)
Attachment #200974 -
Flags: review?(bzbarsky)
| Assignee | ||
Comment 6•21 years ago
|
||
oh, I switched back from nsIURL for the extension to the look-for-last-dot code, because I was thinking that some real cases here might not implement nsIURL.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.9alpha
Comment 7•21 years ago
|
||
Comment on attachment 200974 [details] [diff] [review]
patch
>Index: layout/generic/nsObjectFrame.cpp
>@@ -1771,67 +1771,15 @@ nsObjectFrame::Instantiate(const char* a
If this method now expects a non-null nsIURI and a nonempty type, please assert those here? And document on nsIObjectFrame?
>Index: content/base/src/nsObjectLoadingContent.cpp
>+nsObjectLoadingContent::Instantiate(const nsACString& aMIMEType, nsIURI* aURI)
>+ aURI->GetSpec(spec);
>+
>+ PRInt32 offset = spec.RFindChar('.');
http://something?foo=bar.baz
Do we really want to come out with "baz"?
That is, I think we should try for nsIURL and getting the extension. Only if that fails should we consider hand-parsing this....
r+sr=bzbarsky with those fixed...
Attachment #200974 -
Flags: superreview?(bzbarsky)
Attachment #200974 -
Flags: superreview+
Attachment #200974 -
Flags: review?(bzbarsky)
Attachment #200974 -
Flags: review+
| Assignee | ||
Comment 8•21 years ago
|
||
what it expects is an (internally-handleable) URI or a nonempty type... i.e. only one of them needs to be nonnull. will document.
| Assignee | ||
Comment 9•21 years ago
|
||
Comments addressed, plus:
- Removes the now unused MakeAbsoluteURI
- reorders the type initialization (if empty) and null URI handling, so that we don't try to get an extension off the base URI
rerequesting review since this isn't just addressing the requested changes. should be straightforward though :)
Attachment #200974 -
Attachment is obsolete: true
Attachment #201193 -
Flags: superreview?(bzbarsky)
Attachment #201193 -
Flags: review?(bzbarsky)
| Assignee | ||
Comment 10•21 years ago
|
||
merged to trunk (after sicking's changes to GetAttr)
Attachment #201193 -
Attachment is obsolete: true
Attachment #201199 -
Flags: superreview?(bzbarsky)
Attachment #201199 -
Flags: review?(bzbarsky)
Attachment #201193 -
Flags: superreview?(bzbarsky)
Attachment #201193 -
Flags: review?(bzbarsky)
Comment 11•21 years ago
|
||
Comment on attachment 201199 [details] [diff] [review]
patch v2.1
r+sr=bzbarsky. I checked that this compiles too.
Attachment #201199 -
Flags: superreview?(bzbarsky)
Attachment #201199 -
Flags: superreview+
Attachment #201199 -
Flags: review?(bzbarsky)
Attachment #201199 -
Flags: review+
| Assignee | ||
Comment 12•21 years ago
|
||
Checking in content/base/public/nsIObjectLoadingContent.idl;
/cvsroot/mozilla/content/base/public/nsIObjectLoadingContent.idl,v <-- nsIObjectLoadingContent.idl
new revision: 3.2; previous revision: 3.1
done
Checking in content/base/src/nsObjectLoadingContent.cpp;
/cvsroot/mozilla/content/base/src/nsObjectLoadingContent.cpp,v <-- nsObjectLoadingContent.cpp
new revision: 1.10; previous revision: 1.9
done
Checking in content/base/src/nsObjectLoadingContent.h;
/cvsroot/mozilla/content/base/src/nsObjectLoadingContent.h,v <-- nsObjectLoadingContent.h
new revision: 1.3; previous revision: 1.2
done
Checking in layout/generic/nsIObjectFrame.h;
/cvsroot/mozilla/layout/generic/nsIObjectFrame.h,v <-- nsIObjectFrame.h
new revision: 1.8; previous revision: 1.7
done
Checking in layout/generic/nsObjectFrame.cpp;
/cvsroot/mozilla/layout/generic/nsObjectFrame.cpp,v <-- nsObjectFrame.cpp
new revision: 1.527; previous revision: 1.526
done
Checking in layout/generic/nsObjectFrame.h;
/cvsroot/mozilla/layout/generic/nsObjectFrame.h,v <-- nsObjectFrame.h
new revision: 1.48; previous revision: 1.47
done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•