Closed
Bug 196563
Opened 22 years ago
Closed 22 years ago
View > Page Source disable if document contains unsupported plug in (flash)
Categories
(Core Graveyard :: View Source, defect)
Core Graveyard
View Source
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: chris, Assigned: neil)
References
Details
Attachments
(1 file)
|
2.23 KB,
patch
|
timeless
:
review+
rbs
:
superreview+
asa
:
approval1.4a-
|
Details | Diff | Splinter Review |
I've recently removed the flash player from my systems. Since doing so I've
noticed that the view source is disabled on any page that contains a flash
object. "Page Source" item in the View menu and context menus are disabled and
CMD/CTRL-U doesn't do anything. this happens on every page i've visited that
include flash content including: http://www.wddg.com/
This behavior holds true for framed sites (can't view source of any doc) that
have flash content in just one of the frames a such as: http://www.joshuadavis.com/
Note: I've seen the view source disabled on rare occation in the past but a
reload of the document always fixed it. This isn't the case here. Reload doesn't
change anything.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030302
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3) Gecko/20030308
Comment 1•22 years ago
|
||
Confirmation: I browsed to a site that had Java elements, and my machine doesn't
have the Java plugin installed. I tried to do a view source for some reason(I
don't know why), and I got an error saying it couldn't view source because of an
unsupported element. This is true.
Comment 2•22 years ago
|
||
Looks like we set isImage to be disabled for such sites... Is this due to the
onLocationChange or onStateChange code in nsBrowserStatusHandler.js ?
| Reporter | ||
Comment 3•22 years ago
|
||
*** Bug 197421 has been marked as a duplicate of this bug. ***
Comment 4•22 years ago
|
||
*** Bug 198085 has been marked as a duplicate of this bug. ***
I have flash player enabled and working, yet the menus at CNN.com fail on
sub-pages. Main page is OK. Bug 191612.
| Assignee | ||
Comment 6•22 years ago
|
||
It's not the onLocationChange code, because if you switch tabs and back then the
view source enables correctly, so it must be the onStateChange code. Is there a
good reason why this sort of thing is done in onStateChange?
Comment 7•22 years ago
|
||
Yeah... because for normal page transitions it's impossible to get the right
content-type in onLocationChange -- the aRequest is null. Further, for a
full-page plugin, content.document.contentType will not work (will be
undefined). So if you want to disable menuitems for those we need to do it like
this.... maybe.
| Assignee | ||
Comment 8•22 years ago
|
||
FYI I see both the onLocationChange enabling and the onStateChange disabling
with that particular test case.
| Assignee | ||
Comment 9•22 years ago
|
||
Ah, I see now, the onLocationChange fires on the old document :-/
Comment 10•22 years ago
|
||
| Assignee | ||
Comment 11•22 years ago
|
||
So the fix now is to update using the "top" document rather than the document
whose state is changing?
| Assignee | ||
Comment 12•22 years ago
|
||
| Assignee | ||
Updated•22 years ago
|
Attachment #118552 -
Flags: superreview?(bzbarsky)
Attachment #118552 -
Flags: review?(caillon)
Attachment #118552 -
Flags: superreview?(rbs)
Attachment #118552 -
Flags: superreview?(bzbarsky)
Attachment #118552 -
Flags: review?(caillon)
Attachment #118552 -
Flags: review+
Comment 13•22 years ago
|
||
Comment on attachment 118552 [details] [diff] [review]
Proposed patch
sr=rbs, patch looks good now that bug 90256 always gives a doc to full page
plug-ins. Plus, your test |if (content.doc)| is ample protection.
Attachment #118552 -
Flags: superreview?(rbs) → superreview+
| Assignee | ||
Updated•22 years ago
|
Attachment #118552 -
Flags: approval1.4a?
Comment 15•22 years ago
|
||
Comment on attachment 118552 [details] [diff] [review]
Proposed patch
please land first thing in beta. thanks.
Attachment #118552 -
Flags: approval1.4a? → approval1.4a-
| Assignee | ||
Comment 16•22 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•