Search completed in 1.20 seconds.
nsIDocumentLoader
uriloader/base/
nsIDocumentLoader.idlScriptable This interface responsible for tracking groups of loads that belong together (images, external scripts, and so on.) and subdocuments (iframe, frame, and so on.). It is also responsible for sending nsIWebProgressListener notifications. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/docloaderservice;1. ...
...d so on.). It is also responsible for sending nsIWebProgressListener notifications. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/docloaderservice;1. ...
... (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/docloaderservice;1. ...
... Read only. loadGroup nsILoadGroup Read only. Methods clearParentDocLoader() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void clearParentDocLoader(); Parameters None. createDocumentLoader() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void createDocumentLoader( out
nsIDocumentLoader anInstance ); Parameters anInstance destroy() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void destroy(); Parameters None. fireOnLocationChange() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void fireOnLocationChange( in nsIWebProgress aWebProgress, in nsIRequest aR...
nsIContentViewer
????????????????????????"] .createInstance(Components.interfaces.nsIContentViewer); Method overview void clearHistoryEntry(); void close(in nsISHEntry historyEntry); void destroy(); [noscript,notxpcom,nostdcall] nsIViewPtr findContainerView(); void getBounds(in nsIntRectRef aBounds); Native code only! [noscript,notxpcom]
nsIDocumentPtr getDocument(); void hide(); void init(in nsIWidgetPtr aParentWidget, [const] in nsIntRectRef aBounds); Native code only! void loadComplete(in unsigned long aStatus); void loadStart(in nsISupports aDoc); void move(in long aX, in long aY); void open(in nsISupports aState, in nsISHEntry aSHEntry); void pageHide(in boolean isUnload);...
...in long aX, in long aY); void open(in nsISupports aState, in nsISHEntry aSHEntry); void pageHide(in boolean isUnload); boolean permitUnload([optional] in boolean aCallerClosesWindow); boolean requestWindowClose(); void resetCloseWindow(); void setBounds([const] in nsIntRectRef aBounds); Native code only! void setDocumentInternal(in
nsIDocumentPtr aDocument, in boolean aForceReuseInnerWindow); Native code only! [noscript,notxpcom,nostdcall] void setNavigationTiming(in nsDOMNavigationTimingPtr aTiming); void setPageMode(in boolean aPageMode, in nsIPrintSettings aPrintSettings); void show(); void stop(); void unload(); Obsolete since Gecko 1.8 Attributes Attribute Type D...
....0 historyEntry nsISHEntry Get the history entry that this viewer will save itself into when destroyed. Can return null. Read only. isTabModalPromptAllowed boolean Read only. presContext nsPresContextPtr Read only. Native code only! Note: Prior to Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of
nsIDocumentViewer. presShell nsIPresShellPtr Read only. Native code only! Note: Prior to Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of
nsIDocumentViewer. previousViewer nsIContentViewer The previous content viewer, which has been closed but not destroyed. Native code only! sticky boolean Me...
...And 3 more matches
nsIFocusManager
void focusPlugin(in nsIContent aPlugin); Native code only! nsIDOMElement getFocusedElementForWindow(in nsIDOMWindow aWindow, in PRBool aDeep, out nsIDOMWindow aFocusedWindow); PRUint32 getLastFocusMethod(in nsIDOMWi...
... void focusPlugin(in nsIContent aPlugin); Native code only! ...
... Exceptions thrown NS_ERROR_INVALID_ARG If aWindow is null. Native code only!contentRemoved Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Called when content has been removed. void contentRemoved( in
nsIDocument aDocument, in nsIContent aElement ); Parameters aDocument aElement Native code only!fireDelayedEvents Fire any events that have been delayed due to synchronized actions. void fireDelayedEvents( in
nsIDocument aDocument ); Parameters aDocument Native code only!focusPlugin Indicate that a plugin wishes to take the focus. This is similar to a normal focus exc...
The life of an HTML HTTP request - Archive of obsolete content
sIProtocolHandler (in this case nsHTTPHandler) and asks it for a nsIChannel (nsHTTPChannel). The channel represents the connection to the server, and is the source of the html data stream. (3) When data is starting to come from the webserver the nsIChannel calls the OnStartRequest in the DocumenLoader. Now the channel knows the content type of the incoming data, so the DocumentLoader can find an
nsIDocumentLoaderFactory for the "text/html" content type (in this case an nsLayoutDLF). This factory is then told to create a nsIContentViewer. The factory creates a ContentViewer. In most cases (including this) it also creates a
nsIDocument (nsHTMLDocument) and binds it to the ContentViewer. The ContentViewer is then Embed():ed into the ContentViewerContainer (the WebShell). (4) The document then creates ...
...sink calls AppendChild. The content sink tells the document about content model changes (NotifyBody()) in places like nsHTMLContentSink::WillInterrupt() and nsHTMLContentSink::DidBuildModel(). WillInterrup is called by the parser between every 8kb block of data (unless the parser is temporarily blocked). (7) Since the presentation shell (nsPresShell) has registred as an DocumentObserver with the
nsIDocument it also gets notified of changes in the Document/Content tree. This is used to create and update the nsIFrame hierarchy. This is done by the nsCSSFrameConstructor, which creates frames for each Content node according to the rules specified in the user agent stylesheet (ua.css) and the document specific style sheets. Each Content node corresponds to one or more nsIFrame, except content with displa...
DMD
/DMD.cpp:1286) #02: malloc (/home/njn/moz/mi5/go64dmd/memory/build/../../../memory/build/replace_malloc.c:153) #03: moz_xmalloc (/home/njn/moz/mi5/memory/mozalloc/mozalloc.cpp:84) #04: nsCycleCollectingAutoRefCnt::incr(void*, nsCycleCollectionParticipant*) (/home/njn/moz/mi5/go64dmd/dom/xul/../../dist/include/nsISupportsImpl.h:250) #05: nsXULElement::Create(nsXULPrototypeElement*,
nsIDocument*, bool, bool,mozilla::dom::Element**) (/home/njn/moz/mi5/dom/xul/nsXULElement.cpp:287) #06: nsXBLContentSink::CreateElement(char16_t const**, unsigned int, mozilla::dom::NodeInfo*, unsigned int, nsIContent**, bool*, mozilla::dom::FromParser) (/home/njn/moz/mi5/dom/xbl/nsXBLContentSink.cpp:874) #07: nsCOMPtr<nsIContent>::StartAssignment() (/home/njn/moz/mi5/go64dmd/dom/xml/../../dist/inclu...
... "Live" mode output For "live" mode, dmd.py's output describes what live heap blocks are present. This output is broken into multiple sections. "Invocation". This tells you h...
nsIEditor
des(in nsIDOMNode leftNode, in nsIDOMNode rightNode, in nsIDOMNode parent); void deleteNode(in nsIDOMNode child); void markNodeDirty(in nsIDOMNode node); Direction Controller void switchTextDirection(); Output Methods AString outputToString(in AString formatType, in unsigned long flags); Example: // flags are declared in base/public/
nsIDocumentEncoder.idl // OutputSelectionOnly = 1, OutputFormatted = 2, // OutputRaw = 4, OutputBodyOnly = 8, // OutputPreformatted = 16, OutputWrap = 32, // OutputFormatFlowed = 64, OutputAbsoluteLinks = 258, // OutputEncodeW3CEntities = 256, OutputCRLineBreak = 512, // OutputLFLineBreak = 1024, OutputNoScriptContent = 2048, // OutputNoFramesContent = 4096,...
...in nsIEditorObserver observer);Obsolete since Gecko 18 void setEditorObserver(in EditActionListener observer); void removeEditorObserver(in nsIEditorObserver observer Obsolete since Gecko 18); void addEditActionListener(in nsIEditActionListener listener); void removeEditActionListener(in nsIEditActionListener listener); void addDocumentStateListener(in
nsIDocumentStateListener listener); void removeDocumentStateListener(in
nsIDocumentStateListener listener); Debug Methods void dumpContentTree(); void debugDumpContent() ; void debugUnitTests(out long outNumTests, out long outNumTestsFailed); [notxpcom] boolean isModifiableNode(in nsIDOMNode aNode); Constants Load Flags Constant Value...
nsIFeedTextConstruct
ed; one of "text", "html", or "xhtml". Methods createDocumentFragment() Creates a new document fragment on a given DOM element, containing the text and (if the text construct contains HTML or XHTML) its markup. nsIDOMDocumentFragment createDocumentFragment( in nsIDOMElement element ); Parameters element The element in which to create the new document fragment. Return value An
nsIDocumentFragment containing the text and markup. plainText() Returns the text as plain text with all markup stripped and all entities decoded. AString plainText(); Parameters None. Return value The plain text version of the text construct's contents. If the type attribute is "text", this method returns the value of the text attribute unchanged. Remarks If the document type is either "html" or "x...
...e plain text version of the text construct's contents. ...
Intercepting Page Loads - Archive of obsolete content
ying if the previous ones are insufficient. These require creating XPCOM components that implement existing Firefox interfaces. They may be useful in case you have most of your application logic in XPCOM, or if you absolutely need a single point of inspection for loads. The previously explained solutions are enough for most cases, so these ones will be mentioned briefly. Document Loader Service
nsIDocumentLoader is nothing but a global Web Progress Listener. You can create an XPCOM component that extends nsIWebProgressListener and use the addProgressListener method in the service to include it. Everything mentioned before applies here as well, except you'll be receiving all the events for all tabs and windows in a single object, and you don't have to worry about adding and removing listeners every ...
documentCharsetInfo - Archive of obsolete content
<< XUL Reference documentCharsetInfo Obsolete since Gecko 12.0 Type:
nsIDocumentCharsetInfo This read-only property contains the
nsIDocumentCharsetInfo object for the document which is used to handle which character set should be used to display the document. The properties of the
nsIDocumentCharsetInfo object were merged into the docshell in Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0 / SeaMonkey 2.9). ...
Using the Editor from XUL - Archive of obsolete content
e get the URL to load from the args element, then kick off the load: var url = document.getElementById("args").getAttribute("value"); editorShell.LoadUrl(url); Loading the document in the <iframe> of course happens asynchronously, so we need to know when we have a document that we can start editing. nsEditorShell is able to observe the document load on the <iframe>, because it implements
nsIDocumentLoaderObserver, and registered itself as a doc loader when it was assigned the content window. It thus gets callbacks for the start, progress, and end of the document load. Note: these callbacks also fire for every subdocument that loads as a result of the parent document load, for example with frameset documents, or HTML documents with their own embedded <iframe>s. In this case, we need to be ...
browser - Archive of obsolete content
dow.wrappedJSObject to obtain a DOM(html) window object currentURI Type: nsIURI This read-only property contains the currently loaded URL. To change the URL, use the loadURI method. docShell Type: nsIDocShell This read-only property contains the nsIDocShell object for the document. documentCharsetInfo Obsolete since Gecko 12.0 Type:
nsIDocumentCharsetInfo This read-only property contains the
nsIDocumentCharsetInfo object for the document which is used to handle which character set should be used to display the document. The properties of the
nsIDocumentCharsetInfo object were merged into the docshell in Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0 / SeaMonkey 2.9). homePage Type: string home page URL This p...
tabbrowser - Archive of obsolete content
Window.wrappedJSObject to obtain a DOM(html) window object currentURI Type: nsIURI This read-only property contains the currently loaded URL. To change the URL, use the loadURI method. docShell Type: nsIDocShell This read-only property contains the nsIDocShell object for the document. documentCharsetInfo Obsolete since Gecko 12.0 Type:
nsIDocumentCharsetInfo This read-only property contains the
nsIDocumentCharsetInfo object for the document which is used to handle which character set should be used to display the document. The properties of the
nsIDocumentCharsetInfo object were merged into the docshell in Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0 / SeaMonkey 2.9). homePage Type: string home page URL This pr...
2006-11-10 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Oct 04-Nov 10, 2006 Announcements XPTCall changes in process - ports owners needed If you maintain an xptcall port, you are needed to submit a patch to that bug 349002 with xptcall updates. Discussions Developing an extension like XmlHttpRequest /
nsIDocument / MOZILLA_INTERNAL_API A discussion on how to develop an extension similar to XmlHttpRequest but for a different protocol than Http, emulating the asynchronous aspect. Meetings None during this week. ...
Overview of Mozilla embedding APIs
ry. Contract-id: NS_PREF_CONTRACTID Implemented Interfaces: nsIPrefService nsIPrefBranch Related Interfaces: nsIPrefListener Profile Manager Service Contract-id: Implemented Interfaces: Document Loader Service (WebProgress) Eventually, this service will be replaced by theWebProgress service... Contract-id: NS_DOCUMENT_LOADER_SERVICE_CONTRACTID Implemented Interfaces: nsIWebProgress
nsIDocumentLoader Related Interfaces: nsIWebProgressListener Public Components nsWebBrowser The nsWebBrowser is the main embedding component which Gecko exposes. Conceptually, each nsWebBrowser instance represents a HTML content area. Conceptually, for each document being rendered, Gecko creates a container called a DOMWindow. Each WebBrowser exposes a tree of DOMWindows - representing the frame hierarc...
Getting from Content to Layout
scripting, insertion of elements from the parser, etc.) and are propogated to the layout tree through magic that primarily resides in //github.com/RealityRipple/UXP/blob/master/layout/base/nsCSSFrameConstructor.cpp The frame constructor implements nsIMutationObserver which allows it to "watch" the content tree. nsCSSFrameConstructor gets notified from the document's PresShell (which implements
nsIDocumentObserver and observes the document) about all nodes in the document. The frame constructor takes these notifications and does the following: Dispatches "restyle events" which trigger the reprocessing of relevant CSS selectors and any restyling that needs to occur. Adds and removes frames to make the frame tree a proper representation of the new content tree. Restyling The RestyleTracker ma...
Introduction to Layout in Mozilla
notifications Passes these to the style set object, who in turn passes to the frame constructor Frame constructor creates frames ConstructFrameInternal recursively walks content ...
TimerFirings logging
fn timer (ONE_SHOT): [content] http://widgets.outbrain.com/outbrain.js:20:330 186 fn timer (ONE_SHOT): nsBrowserStatusFilter::TimeoutHandler 138 fn timer (ONE_SHOT): [content] https://self-repair.mozilla.org/repair/:7:13669 118 fn timer (ONE_SHOT): [content] http://a.visualrevenue.com/vrs.js:6:9423 108 fn timer (SLACK): LayerActivityTracker 104 fn timer (SLACK):
nsIDocument::SelectorCache 104 fn timer (SLACK): CCTimerFired ...
Index
ces, Interfaces:Scriptable, NeedsContent, XPCOM API Reference, XPCOM Interface Reference Implemented by @mozilla.org/docshell;1. Do not create an instance directly. Instead, retrieve an nsIDocShell from a browser or other document container element. Note that out-of-process browsers do not have an nsIDocShell; instead you can access the nsIDocShell object from a frame script. 561
nsIDocumentLoader Interfaces, Interfaces:Scriptable, NeedsContent, Reference, Reference(2), XPCOM Interface Reference Implemented by: @mozilla.org/docloaderservice;1. To create an instance, use: 562 nsIDownload Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference No summary! 563 nsIDownloadHistory Interfaces, Interfaces:Scripta...
nsIAccessibilityService
accessible/public/nsIAccessibilityService.idlScriptable Please add a summary to this article. ...
nsIDocShell
ntentViewer Content Viewer that is currently loaded for this DocShell. This may change as the underlying content changes. Read only. currentDocumentChannel nsIChannel Gets the channel for the currently loaded document, if any. For a new document load, this will be the channel of the previous document until after OnLocationChange fires. Read only. documentCharsetInfo
nsIDocumentCharsetInfo The document character set info. This is used by a load to determine priorities for charset detection and so on. Obsolete since Gecko 12.0 Note: The properties of the old
nsIDocumentCharsetInfo interface were merged into nsIDocShell in Gecko 12.0. eldestPresShell nsIPresShell Presentation shell for the oldest document, if this docshell is curre...
nsIParserUtils
s to the console for everything that gets sanitized. Methods convertToPlainText() Converts HTML to plain text. AString convertToPlainText( in AString src, in unsigned long flags, in unsigned long wrapCol ); Parameters src The HTML source to parse (C++ callers are allowed but not required to use the same string for the return value.) flags Conversion option flags defined in
nsIDocumentEncoder. wrapCol Number of characters per line; 0 for no auto-wrapping. Return value The plain text conversion of the HTML specified in src. parseFragment() Parses markup into a sanitized document fragment. nsIDOMDocumentFragment parseFragment( in AString fragment, in unsigned long flags, in boolean isXML, in nsIURI baseURI, in nsIDOMElement element ); Parameters fragment T...
nsIScriptableUnescapeHTML
element The nsIDOMElement to be used as the context node for the purposes of the fragment parsing algorithm. Return value An nsIDOMDocumentFragment of the element with the new text appended. Exceptions thrown NS_ERROR_FAILURE Unable to append the text to the element. unescape() Convents HTML source into plain text. This is equivalent to calling nsIParserUtils::convertToPlainText(src,
nsIDocumentEncoder::OutputSelectionOnly |
nsIDocumentEncoder::OutputAbsoluteLinks, 0). You should call nsIParserUtils::convertToPlainText() instead of calling this method. AString unescape( in AString src ); Parameters src The HTML string to convert into plain text. Return value The result of the plain text conversion. Exceptions thrown NS_ERROR_FAILURE Unable to convert the string. See al...
nsITransferable
isLargeDataSet() Returns true if the data is large. boolean isLargeDataSet(); Parameters None. Return value true if the data is large; otherwise, the result is false. removeDataFlavor() Removes the data flavor matching the given one (as determined by a string comparison), along with the corresponding data. void removeDataFlavor( ...
XPCOM Interface Reference
entnsIDOMXULSelectControlItemElementnsIDataSignatureVerifiernsIDebugnsIDebug2nsIDeviceMotionnsIDeviceMotionDatansIDeviceMotionListenernsIDialogCreatornsIDialogParamBlocknsIDictionarynsIDirIndexnsIDirIndexListenernsIDirIndexParsernsIDirectoryEnumeratornsIDirectoryIteratornsIDirectoryServicensIDirectoryServiceProvidernsIDirectoryServiceProvider2nsIDiskCacheStreamInternalnsIDispatchSupportnsIDocShell
nsIDocumentLoadernsIDownloadnsIDownloadHistorynsIDownloadManagernsIDownloadManagerUInsIDownloadObservernsIDownloadProgressListenernsIDownloadernsIDragDropHandlernsIDragServicensIDragSessionnsIDroppedLinkHandlernsIDroppedLinkItemnsIDynamicContainernsIEditornsIEditorBoxObjectnsIEditorDocShellnsIEditorIMESupportnsIEditorLoggingnsIEditorMailSupportnsIEditorObservernsIEditorSpellChecknsIEffectiveTLDServicensIEnum...