Closed Bug 126867 Opened 23 years ago Closed 14 years ago

[MFCEmbed] Page Info

Categories

(Core Graveyard :: Embedding: APIs, enhancement)

x86
Windows 95
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: amutch, Unassigned)

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:0.9.8+) Gecko/20020220 BuildID: MFCEmbed 2/20/2002 Build Page Info needs to be implemented in MFCEmbed Reproducible: Always Steps to Reproduce: 1. Select View - Page Info Actual Results: Dialog box appears - "To be Done" Expected Results: Page Info should display in browser window
we don't have an embedding test application component.
Assignee: asa → adamlock
Severity: normal → enhancement
Component: Browser-General → Embedding: APIs
OS: Windows XP → Windows 95
QA Contact: doronr → mdunn
Summary: [MFCEmbed] Page Info → [MFCEmbed] Page Info
-> Chak
Assignee: adamlock → chak
Marking it FUTURE...We're working on other priorites right now..sorry.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → Future
Future is fine. I just wanted to get it into the system for tracking. Thanks!
Chak: Can this also include "View Frame Info" for viewing page info within individual frames?
This is code pulled from K-Meleon to allow page info. to be displayed. I'm not sure that it is the cleanest patch but it does the job and would probably be useful for testing. I'll file a separate bug and patch for view frame info. if desired.
Attachment #138465 - Flags: review?(locka)
Attachment #138465 - Flags: review?(locka) → review?(timeless)
Comment on attachment 138465 [details] [diff] [review] Patch to add ability to view page info. in MFCEmbed >Index: BrowserView.cpp >+ // Get the URI object we want to view from the cache. >+ nsresult rv = NS_OK; ^ you don't need to declare rv here, especially with a value >+ nsCOMPtr<nsIURI> currentURI; you could declare it here: >+ rv = mWebNav->GetCurrentURI(getter_AddRefs(currentURI)); >+ if(NS_FAILED(rv) || !currentURI) >+ return; also, perhaps you don't need to check this rv at all? the following questions are probably the most important... >+ // Build the page info url >+ nsCAutoString viewPageInfoUrl; >+ if(uriString.Find("https://", 0) == -1) >+ viewPageInfoUrl.Append("about:cache-entry?client=HTTP&sb=1&key="); >+ else >+ viewPageInfoUrl.Append("about:cache-entry?client=HTTP-memory-only&sb=1&key="); what about moz-icon urls? Consider: moz-icon:c:\.bmp?size=16 pair: about:cache-entry?client=image&sb=0&key=moz-icon:c:\.bmp?size=16 also, append is at least a bit silly given your string started out empty. append would be better: nsCAutoString viewPageInfoUrl("about:cache-entry?client="); ... viewPageInfoUrl.Append("HTTP&sb=1&key="); > return pApp->CreateNewBrowserFrame(chromeMask, x, y, cx, cy, bShowWindow); >+ > } what style adds newlines after returns before the last brace in a function? >+void CBrowserView::OpenURLInNewWindow(const char* pUrl) >+{ >+ OpenURLInNewWindow(NS_ConvertASCIItoUCS2(pUrl).get()); >+} but not here... >+ why this extra line? > > void CBrowserView::OpenURLInNewWindow(const PRUnichar* pUrl) > {
Attachment #138465 - Flags: review?(timeless) → review-
Assignee: chak → nobody
Status: ASSIGNED → NEW
QA Contact: dunn5557 → apis
Mass marking all MFCEmbed bugs as wontfix, since bug 377410 removed it. If this bug was erroneously included (or say equally applies to winEmbed), please reopen & accept my apologies. Filter bugspam on mfcEmbedwontfix.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: