838 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
c4f7acfe09 Add an interface for nested URIs (like jar:, view-source:, etc) to implement
and use it in various places.  Create null principals if asked for a codebase
principal for a codebase that doesn't have an inherent security context (eg
data: or javascript:).  Bug 334407, r=biesi,dveditz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@195823 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-02 18:54:19 +00:00
bzbarsky%mit.edu
bf19ef708d Rename GetNodePrincipal to NodePrincipal. Bug 327246, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@195579 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 18:21:11 +00:00
bzbarsky%mit.edu
037c39c7a0 Prevent loads starting after docshell destruction. Bug 332901, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@194183 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 22:37:59 +00:00
bzbarsky%mit.edu
1770a15948 Don't do third-party keyword lookup if the string we started with looked like a
URI (had a scheme, eg).  Bug 263213, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@194182 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 22:33:19 +00:00
martijn.martijn%gmail.com
c5466a75d1 Bug 331040 - Crash when removing parent iframe in onbeforunload handler. Patch by Feng Qian, r=bryner, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193646 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 23:57:30 +00:00
roc+%cs.cmu.edu
e9fd34c810 Bug 331522. By default, do not allow keyword searches when navigating to URLs; modify browser UI code to enable keyword searches only on selected URL input mechanisms (e.g., typed into the URL bar). r+sr=darin,r=mconnor
git-svn-id: svn://10.0.0.236/trunk@193458 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-03 23:17:51 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
bzbarsky%mit.edu
39c9fd36c5 Make _main and _content target the right things when tabs are involved. Bug 277971 and bug 273984, r=bsmedberg, sr=jst, branch181=jst
git-svn-id: svn://10.0.0.236/trunk@192933 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 19:38:50 +00:00
bryner%brianryner.com
1de3fc0366 Clean up header includes (bug 331050). This round of changes deals with some of the public content headers, and factors nsDOMClassInfoID out of nsIDOMClassInfo.h so that nsContentUtils.h doesn't have to bring in XPConnect. r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@192794 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-22 18:36:36 +00:00
benjamin%smedbergs.us
b191073e47 Bug 326491 - leaked observer service leaks things on shutdown - r=darin
git-svn-id: svn://10.0.0.236/trunk@192696 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-21 14:43:56 +00:00
darin%meer.net
119bbaf729 backing out bsmedberg's patch for bug 326491 to fix bug 329505.
git-svn-id: svn://10.0.0.236/trunk@192045 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 03:14:32 +00:00
benjamin%smedbergs.us
c4b2b6637f Bug 326491 - cleanup observers on shutdown even if the observer service is leaked, r=darin
git-svn-id: svn://10.0.0.236/trunk@191774 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-04 14:04:05 +00:00
cbiesinger%web.de
031dc8af70 bug 324985 Allow components to register in a category to get told about all page
loads and allow sniffing the content type. Only works for docshell-initiated
loads.
r=darin sr=bz


git-svn-id: svn://10.0.0.236/trunk@191729 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-03 21:06:53 +00:00
bryner%brianryner.com
4c748eac9b Revert the checkin for bug 326742, the notifications are fairly useless. r+a=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@191724 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-03 20:18:07 +00:00
bzbarsky%mit.edu
7ea406aa26 Revert nsIGlobalHistory2 to what it was on the 1.8 branch. Move the new stuff
to nsIGlobalHistory3.  Bug 328928, r=brettw and smfr, sr=darin


git-svn-id: svn://10.0.0.236/trunk@191656 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-03 03:34:48 +00:00
bzbarsky%mit.edu
5eea6eae6d Additional tweak to make session history a little safer. Bug 305181, r=bryner, sr=darin
git-svn-id: svn://10.0.0.236/trunk@191004 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 05:30:25 +00:00
mrbkap%gmail.com
424bc2e551 Only warn in debug builds, and don't assert on user defined actions. bug 153783, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@190784 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-22 02:28:04 +00:00
bzbarsky%mit.edu
1ae2fb0ab4 Document the channel owner stuff better. Bug 327070, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@190595 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-20 18:59:06 +00:00
cbiesinger%web.de
2a4074508b Bug 302115 "Try again" on XUL error page loads wrong thing after going back
r=bryner sr=bz


git-svn-id: svn://10.0.0.236/trunk@190544 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-19 17:33:31 +00:00
bzbarsky%mit.edu
afc2cdd483 Fix bug 327073. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@189913 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 02:03:14 +00:00
bryner%brianryner.com
ab1c46f5e7 Dispatch observer service notifications when dom windows are created and destroyed. Bug 326742, r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@189759 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-11 05:52:33 +00:00
bzbarsky%mit.edu
e446371b8e Move the "force into tab" code out of Gecko and allow embeddors to do the same
sort of thing.  Bug 323810, r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@189344 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 20:46:39 +00:00
darin%meer.net
b6cc7028dd fixes bug 290090 "Meta refresh should pass VALIDATE_ALWAYS instead of LOAD_BYPASS_CACHE" r=biesi sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@189311 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 15:45:36 +00:00
brettw%gmail.com
a243524a04 Bug 326107 r=darin, sr=bzbarsky, branch-1.8.1=darin:
Send referrer to GlobalHistory even when it isn't being sent over the network


git-svn-id: svn://10.0.0.236/trunk@189279 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 02:02:56 +00:00
brettw%gmail.com
01f2446de3 Bug 317843 r=darin, sr=bzbarsky: Better redirect tracking for global history.
git-svn-id: svn://10.0.0.236/trunk@189041 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-06 20:52:18 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bzbarsky%mit.edu
1510aacc39 Push up GetPrincipal to nsINode (as GetNodePrincipal). This way all nsINodes
(content, documents, attr nodes) can return their principal as needed.
Eliminate lazy allocation of principals in nsDocument.  Bug 324600, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@188770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 20:02:34 +00:00
bzbarsky%mit.edu
b12310e6b5 Make hiding a frame with display:none really hide the docshell all the way.
Bug 308182, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@188300 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-27 01:04:48 +00:00
mrbkap%gmail.com
0d50ed8549 bug 322773: The prompt service asserts if there our window doesn't have a document. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@187783 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 23:06:06 +00:00
bryner%brianryner.com
b98cdee438 Make sure to save the layout state when navigating to a cached presentation, in case the content viewer for the previous page is not saved or is later evicted. Bug 321671, r=biesi.
git-svn-id: svn://10.0.0.236/trunk@187579 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-13 19:27:54 +00:00
dbaron%dbaron.org
ac01cd3770 Add some PR_LOGging to help find leaks of large object graphs. b=320192 r=jst sr=darin
git-svn-id: svn://10.0.0.236/trunk@187062 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-06 06:51:45 +00:00
timeless%mozdev.org
9def01fe0d Bug 320488 crash [@ nsSHistory::EvictWindowContentViewer]
patch by marria@gmail.com r=biesi sr=darin


git-svn-id: svn://10.0.0.236/trunk@186573 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-25 04:04:36 +00:00
neil%parkwaycc.co.uk
ee9ce4336b Bug 317937 Get rid of some unnecessary CIDs and change some possibly unsafe nsCOMPtr usage into the equivalently unsafe static casts r=darin sr=jst
git-svn-id: svn://10.0.0.236/trunk@185568 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-02 12:02:44 +00:00
jst%mozilla.jstenback.com
b3caccffbd Fixing bug 318461. Move SetNewDocument() and SetOpenerWindow() from nsIScriptGlobalObject to nsPIDOMWindow to clean out non-script related methods form the nsIScriptGlobalObject interface. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@185536 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-01 19:35:27 +00:00
jst%mozilla.jstenback.com
895df6e6ca Fixing bug 316794. Moving HandleDOMEvent() and Get/SetDocShell from nsIScriptGlobalObject to nsPIDOMWindow. r=mrbkap@gmail.com, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@185351 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 23:56:44 +00:00
darin%meer.net
b91aa15549 fixing build bustage (nsIDataChannel no longer exists)
git-svn-id: svn://10.0.0.236/trunk@184506 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-12 18:40:00 +00:00
bryner%brianryner.com
927f5f8bf7 Make sure we capture all necessary state off the SHEntry before clearing its presentation (bug 312117). r=sicking, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@184332 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-09 01:57:01 +00:00
bryner%brianryner.com
e4f1520c9e Unhook subframe containers / link handlers when putting a document into bfcache, and restore them when restoring the document (bug 314549). r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@184218 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-06 19:23:03 +00:00
bryner%brianryner.com
d5f7527f96 Make sure we notify the content viewer when a subframe load completes so that we call OnPageShow -- this fixes link coloring when navigating back to frameset/iframe pages with fastback. Bug 307178, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@183349 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-01 18:35:47 +00:00
bzbarsky%mit.edu
93fe3f6cf6 Make docshell visibility checking check with the tree owner so that embedding
gets a chance to claim docshells as invisible (eg in Camino's tab
implementation).  Bug 306245, patch by jst, r=sfraser, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@182521 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-19 02:59:30 +00:00
bzbarsky%mit.edu
b19fc8d9eb Fix leak when closing window that has live refresh timers. Bug 312769,
r=darin, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@182434 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 01:48:22 +00:00
mconnor%steelgryphon.com
6acb3ecdae bug 307027 - going back from secure page to error page does not clear yellow bar, r=bz, sr=darin, a=asa
git-svn-id: svn://10.0.0.236/trunk@181550 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 03:51:18 +00:00
bryner%brianryner.com
d917fde32a Remove historyMaxTotalViewers from nsISHistoryInternal, and just use a static getter on nsSHistory instead. Bug 310597, r=marria@gmail.com, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@181414 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-01 20:38:47 +00:00
aaronleventhal%moonset.net
c08f04320c Bug 309099. Entire client area should not be repainted for each focus move. Patch by Robert O'Callahan (roc). r=aaronlev, sr=neil
git-svn-id: svn://10.0.0.236/trunk@181198 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-29 13:16:46 +00:00
bryner%brianryner.com
ae6e7085e4 Add a global limit to the number of cached content viewers that scales with the amount of physical memory. Patch by Marria Nazif <marria@gmail.com>. Bug 292965, r=biesi, sr=me.
git-svn-id: svn://10.0.0.236/trunk@180875 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-23 18:16:40 +00:00
bzbarsky%mit.edu
062485d7c4 Update some GetScriptGlobalObject() callers to the right signature. Bug
303084, patch by Bastiaan Jacques <b.jacques@planet.nl>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@180862 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-23 14:50:43 +00:00
cbiesinger%web.de
8a6592a565 observe the "browser.xul.error_pages.enabled" pref so that it takes effect
immediately
bug 282050 patch by Vidar Braut Haarr <vhaarr+bmo@gmail.com> r=biesi sr=jst


git-svn-id: svn://10.0.0.236/trunk@180823 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-22 20:38:56 +00:00
bzbarsky%mit.edu
69fdd9201c Show a useful error message if a page claims to be compressed and isn't. Bug
184144, patch by Vidar Braut Haarr <vhaarr+bmo@gmail.com>, r=darin, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@180424 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 19:27:27 +00:00
bzbarsky%mit.edu
6e99396530 Send out notifications when docshells are created or destroyed. Bug 308438,
r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@180400 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 15:51:14 +00:00
bryner%brianryner.com
a63c759946 Backing out 292965 until Tp regression is understood.
git-svn-id: svn://10.0.0.236/trunk@180182 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-14 07:28:05 +00:00