Closed
Bug 292114
Opened 20 years ago
Closed 20 years ago
InstantiateFullPagePlugin should take nsIURI*, not nsString&
Categories
(Core Graveyard :: Plug-ins, enhancement, P4)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: Biesinger, Assigned: Biesinger)
Details
Attachments
(1 file, 1 obsolete file)
10.38 KB,
patch
|
asa
:
approval1.8b2+
|
Details | Diff | Splinter Review |
InstantiateFullPagePlugin has exactly one caller. That caller would have an
easier time passing an nsIURI than an nsString&. Additionally, the first thing
that this function does with the string is to construct an nsIURI* from it. This
also means that the originCharset is lost.
So, it should just take an nsIURI* (like the other two functions taking an URI
on this interface)
Assignee | ||
Comment 1•20 years ago
|
||
Attachment #181981 -
Flags: superreview?(bzbarsky)
Attachment #181981 -
Flags: review?(jst)
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P4
Target Milestone: --- → mozilla1.9alpha
Comment 2•20 years ago
|
||
Comment on attachment 181981 [details] [diff] [review]
patch
>Index: modules/plugin/base/src/nsPluginHostImpl.cpp
>+#ifdef PLUGIN_LOGGING
#if, not #ifdef, to be consistent with header...
>+ mType.AssignASCII(aPluginTag->mMimeTypeArray[aMimeTypeIndex]); // MIME Types better be ASCII
This comes from the plugin, so I'm not sure we should trust it, particularly...
it could send all sorts of garbage data. If this is safe enough to do on
non-ASCII data, then ok.
sr=bzbarsky, with those addressed.
Attachment #181981 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 3•20 years ago
|
||
> #if, not #ifdef, to be consistent with header...
but #ifdef to be consistent with the rest of the .cpp file...
> If this is safe enough to do on non-ASCII data, then ok.
hm, no, AssignASCII sorta fails for nonascii data (sign-extends it); I'll remove
that change
Comment 4•20 years ago
|
||
Comment on attachment 181981 [details] [diff] [review]
patch
r=jst
Attachment #181981 -
Flags: review?(jst) → review+
Comment 5•20 years ago
|
||
> but #ifdef to be consistent with the rest of the .cpp file...
Yay.. Want to just fix the header to follow the same convention? That would
make more sense anyway.
Assignee | ||
Comment 6•20 years ago
|
||
- use ifdef PLUGIN_LOGGING everywhere
- removed AssignASCII block
Assignee | ||
Updated•20 years ago
|
Attachment #181981 -
Attachment is obsolete: true
Assignee | ||
Comment 7•20 years ago
|
||
Comment on attachment 182003 [details] [diff] [review]
patch v2
low risk code cleanup patch
Attachment #182003 -
Flags: approval1.8b2?
Comment 8•20 years ago
|
||
Comment on attachment 182003 [details] [diff] [review]
patch v2
a=asa
Attachment #182003 -
Flags: approval1.8b2? → approval1.8b2+
Assignee | ||
Comment 9•20 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 10•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050429
Firefox/1.0+
plugins won't install anymore since today
Comment 11•20 years ago
|
||
Won't install? Or won't run if you load a relevant URL in the browser? This
patch could only have affected the latter..
Comment 12•20 years ago
|
||
For me
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050429
Firefox/1.0+ (10:07 PDT)
Existing plugins in my /plugins dir aren't recognised. Going to a page that
requires Flash results in the plugin placeholders inviting me to install flash.
Upon clicking on a plugin placeholder to install it, the motions are gone
through, the plugin downloaded, the installation "apparently" complete, but when
the page refreshes the plugin placeholders are still present and inviting me to
install the plugin I have just installed.
Comment 13•20 years ago
|
||
Steve, Peter, do plugins using <object> or <embed> elements work?
Comment 14•20 years ago
|
||
The point is, upon loading FF no plugins are found. Existing plugins are
ignored and new plugins - while in the \plugins directory - are not recognized.
This seems to be a major issue.
Comment 15•20 years ago
|
||
about:plugins returns "No plug-ins are installed" even tho
1) My /plugins dir has many plugins listed in it
2) I try and install plugins when requested and it doesn't work (in that, after
installation, the about:config msg is still "No plug-ins are installed" and the
page I was trying to install plugins for still informs me that the plugins
aren't installed)
Comment 16•20 years ago
|
||
If no plugins are found at all (check about:plugins, say) then it's not caused
by this bug. So how about answering the question in comment 13, which would
help us sort out what's actually going on, eh?
Comment 17•20 years ago
|
||
Neither <object> or <embed> objects work. In both cases I'm prompted to install
a plugin.
Comment 18•20 years ago
|
||
1. Create a new profile and start firefox with it.
2. Go to http://www.macromedia.com/shockwave/welcome/
3. Note that additional plugins are required to display all the media on this page.
4. Choose to install Flash.
5. Next > I Agree > Next. Download of plugin starts. Progress bar rises.
6. Download completes. Click Finish.
7. Page reloads itself. Note that flash is not installed, and the animation
playing that should show that Flash has installed is still the plugin
placeholder inviting you to install Flash.
I can only find pages that use Flash that use <EMBED>. I can not comment upon
whether this also happens for <OBJECT>.
Want one of us to file a new bug bz?
Comment 19•20 years ago
|
||
Comment 16 was in response to comment 14.
Assuming Steve meant about:plugins, not about:config, in comment 15, it sounds
like there is a general issue with plugin registration. All this bug did was
change plugin _instantiation_, and only for full-page plugins...
Now this bug _did_ change the pluginhost IID. So if code was relying
specifically on the old IID (say depend builds with broken dependencies, or
people hardcoding IIDs or something) that could cause issues. There really
shouldn't be any code like that in the tree, though...
Note also that there were some changes to plugin installation for toolkit
recently. Could those be causing the problem here?
Comment 20•20 years ago
|
||
Steve, please do file a new bug. Mark it smoketest blocker, and if you can get
a one-day or better regression range, that would rock. Please cc me on that bug.
Assignee | ||
Comment 21•20 years ago
|
||
I want to note that I did of course test my patch, and flash was not broken.
that was in seamonkey.
Assignee | ||
Comment 22•20 years ago
|
||
hm, but then, it was on linux...
Comment 23•20 years ago
|
||
(In reply to comment #20)
> Steve, please do file a new bug. Mark it smoketest blocker, and if you can get
> a one-day or better regression range, that would rock. Please cc me on that bug.
He filed Bug 292373
Comment 24•20 years ago
|
||
Apologies for the wild and inaccurate accusations Christian Biesinger :)
Plugin installation works fine in the official nightly, which includes this
patch - so you are not to blame.
I assume too much stuff - plugins stop working, I see a patch that was for
plugins, and put 2 and 2 together and get 5.
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•