Closed
Bug 59749
Opened 24 years ago
Closed 23 years ago
window title not updated for full-page plugins
Categories
(Core Graveyard :: Plug-ins, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: barrowma, Assigned: peterlubczynski-bugs)
References
()
Details
(Whiteboard: [seeking reviews], crtitical for 0.9.2)
Attachments
(3 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/4.7 [en] (Win95; U)
BuildID: 2000110604
When I load a PDF document and view it with the Acrobat plugin inside Mozilla,
the Mozilla window title is not updated, so it continues to display the title of
the previous page viewed.
Reproducible: Always
Steps to Reproduce:
0. Make sure you have the Acrobat plugin installed.
1. Go to an arbitrary web page - say http://home.netscape.com
Note the window title (e.g., "Netscape.com") in the blue title bar at the top of
thw browser window.
2. Now go directly to a PDF document in the same window -
http://web.mit.edu/norstadt/Public/election.pdf is a good example. The PDF
document will appear in the browser window (inside the Acrobat plugin
interface), and note the Mozilla title bar. It remains unchanged, showing the
title of the previous document.
3.
Actual Results: The title bar continues to display the title of the previous
document.
Expected Results: The title bar should display the title of the current
document (What should it be? In NS 4.7x it is empty; I think it should be the
URL of the document.)
Not sure if this impacts the document.title property or is just manifested in
the browser window title bar.
Comment 1•24 years ago
|
||
Same problem build 2000110904 Win98
Comment 2•24 years ago
|
||
not sure if this belongs to plugins or apps. over to plugins first.
Assignee: asa → av
Status: UNCONFIRMED → NEW
Component: Browser-General → Plug-ins
Ever confirmed: true
QA Contact: doronr → shrir
Comment 3•24 years ago
|
||
updating summary - affects all plugins.
Happening on NT. Will check Mac later.
Summary: window title not updated if content is PDF doc (or any plugin content?) → window title not updated for full-page plugins
Comment 4•24 years ago
|
||
Moving to m1.0 and reassigning to peterl.
Assignee: av → peterl
Target Milestone: --- → mozilla1.0
Assignee | ||
Comment 5•24 years ago
|
||
Confirming 2k. I can't believe we do not update the title bar for full-page
plugins.
Should be easy task to fix.
Severity: normal → minor
Status: NEW → ASSIGNED
OS: Windows 95 → Windows 2000
Assignee | ||
Comment 6•24 years ago
|
||
This needs to be done with embedding in mind.
Jud, do you know how to do this?
Comment 7•24 years ago
|
||
As long as we're consistent about how we update the page title between regular
content, and plugin content (sounds like we're not), embedding will be fine.
Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla1.0 → mozilla0.9.1
Assignee | ||
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
r=valeski
Comment 10•24 years ago
|
||
sr=waterson
Assignee | ||
Updated•24 years ago
|
Whiteboard: [mozilla 0.9]
Comment 11•24 years ago
|
||
chofmann approved on behalf of drivers@mozilla.org for inclusion in 0.9.
/be
Target Milestone: mozilla0.9.1 → mozilla0.9
Assignee | ||
Comment 12•24 years ago
|
||
Patch checked in. Marking FIXED.
/cvsroot/mozilla/docshell/base/nsDocShell.cpp,v <-- nsDocShell.cpp
new revision: 1.269; previous revision: 1.268
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 13•24 years ago
|
||
This is not fixed yet. Using nsnull gives too many assertions in debug builds.
Safer to use " ".
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [mozilla 0.9]
Target Milestone: mozilla0.9 → mozilla0.9.1
Assignee | ||
Comment 14•24 years ago
|
||
Assignee | ||
Comment 15•24 years ago
|
||
This is a much better patch. It prevents mTitle from being null and prevents the
asserts.
Comment 16•24 years ago
|
||
nominating nsbeta1 based on peterl's comments to my pdt bug list . sounds like
peterl has a fix in hand.
Assignee | ||
Comment 17•24 years ago
|
||
Took a closer look at this. Setting the title to null or even blank in
nsDocShell is wrong because it's too general. There are too many cases that null
or blank causes ASSERTS which could possibly cause havok down the road.
Since this only effects full-page plugins to my knowledge, a simple QI of the
content viewer should reveal if it's implementing a plugin interface. However,
full-page plugins don't have any interface. The class nsPluginViewerImpl doesn't
actually implement nsIPluginViewer because it doesn't exsist!
Andrei would it be okay for me to create an nsIPluginViewer and have
nsPluginViewerImpl implement it?
Then, Jud/Adam could I do a QI on it in nsDocShell and then and only then set
the title to null?
Perhaps there is an easier way, but if nsIPluginViewer were IDL-ized then I
guess it could be usefull for other things. Not quite sure about other benefits
of IDL.
Status: REOPENED → ASSIGNED
OS: Windows 2000 → All
Comment 18•24 years ago
|
||
That's a good idea. Maybe nsPIPluginViewer?
Assignee | ||
Comment 19•24 years ago
|
||
Looking at the class again, nsPluginViewer.cpp, I don't see any reason to use
IDL as there doesn't look like any methods I want to make public (yet). Could
someone correct me if I'm wrong?
Comment 20•24 years ago
|
||
yea, it's best to avoid creating an interface simply for "type" identification
so you can special case behavior.
Should full page plugins have *some* window title? If so, I could see creating a
nsIPluginViewer.idl that had a readonly title attribute on it. So in the
docshell you could ask for nsIPluginViewer, and call GetTitle() on it.
Assignee | ||
Comment 21•24 years ago
|
||
That sounds like a nice feature since it appears that 4.x reverts to saying
"Netscape" and IE makes the title of the page the URL of the PDF. I guess the
quickest way to fix this would be to do what IE does. If there is an url, then
use that for the title in the docshell. Plugins will have an url and my guess is
that others that ASSERT on null titles won't have an href.
But there would probably be other things I could think of that a full-page
plugin inteface would be good for. Some may overlap code already in
nsObjectFrame.cpp
Assignee | ||
Comment 23•23 years ago
|
||
->[no eta]
Assignee: peterl → peterlubczynski
Status: ASSIGNED → NEW
Whiteboard: [no eta] [need help]
Assignee | ||
Comment 24•23 years ago
|
||
The following patch creates a new public interface, nsIPluginViewer and has has
PluginViewerImpl implement it. Then, in nsDocShell, when we create the content
viewer, I check if it's a nsIPluginViewer and clear the title bar.
So much work just to clear the title bar for full-page plugins, but I'm seeking
reviews (or other ideas).
Oh, as a side effect, it also has a one-line fix for bug 80105.
Assignee | ||
Comment 25•23 years ago
|
||
Comment 26•23 years ago
|
||
It is quite an amount of work but I think it is pretty straightforward and
should not introduce any implications. Also, having an interface for a plugin
viewer is not a bad idea in my opinion.
r=av
Just a minor thing not affecting r= , is it going to be plain blank? Why not to
write something there like 'Netscape 6' or whatever the application name can be.
Assignee | ||
Comment 27•23 years ago
|
||
It won't be blank, it'll be the "default" (which in the cas e of Mozilla
includes the name and buildID. The reason for all this work is because I
couldn't set all content viewers to "default" in the docshell because I got a
ton of ASSERTs and I felt I may have introduced regressions. Adding this, pretty
much dummy interface seemed like least amount of risk and with our macros, it's
not too much coding.
Comment 28•23 years ago
|
||
Peter, I've just checked in NS_RELEASE --> NS_IF_RELEASE in nsPluginViewer, so
you may remove it from your patch.
Comment 29•23 years ago
|
||
Looks good. sr=attinasi
Comment 30•23 years ago
|
||
a=chofmann
Assignee | ||
Comment 31•23 years ago
|
||
Patch checked in, marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → FIXED
Comment 32•23 years ago
|
||
just tracking
Whiteboard: [seeking reviews] → [seeking reviews], crtitical for 0.9.2
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•