Ehsan Akhgari
8cdd915b57
Bug 722983 - Fix the back-end handling of permanent private browsing mode through the per-window private browsing APIs; r=jdm
...
--HG--
extra : rebase_source : 31358b29c5b3c5f6921598ea3246aede62ca78db
2012-10-16 18:06:38 -04:00
Jonathan Kew
118d43376d
bug 794038 pt 1.1 - update nsWindowWatcher::SizeOpenedDocShellItem to use global display pixels for window manipulation. r=roc
2012-10-16 20:41:19 +01:00
Trevor Saunders
e2db6e1941
bug 798595 - remove useless prmem.h includes r=ehsan
2012-10-04 02:14:06 -04:00
Ehsan Akhgari
60c0879cc1
Merge mozilla-central into mozilla-inbound
2012-10-10 20:21:13 -04:00
Olli Pettay
0f6bf5eed5
Bug 733305, add a way to hide XBL, r=bz, a=abillings
...
--HG--
extra : rebase_source : df18273ecdbf013138e8e6f1f4ef8082ac4f410c
2012-10-10 22:04:42 +03:00
Ehsan Akhgari
b156d1d1a0
Bug 798508 - Part 1: Implement the "private" window.open feature; r=bzbarsky
...
This patch adds support for a "private" window flag which can be used to
open new chrome windows in private browsing mode. It also tests to make
sure that the flag is not accessible from content. A test in the next
part makes sure that the flag is accessible from chrome.
2012-10-07 15:04:39 -04:00
Josh Matthews
a2ede527da
Bug 795556 - Part 2: Move privacy status propagation for new windows into the platform. r=bz
2012-10-10 11:28:42 -04:00
Boris Zbarsky
8d820d7bd3
Bug 749964. Don't try to save if what we have is not a real document object. r=khuey
2012-10-05 22:39:46 -04:00
Josh Matthews
f56c4d461a
Bug 794602 - Make nsWebBrowserPersist::SaveURIInternal use channels with valid privacy statuses. r=bz,mfinkle,smaug,ehsan,jwalker,roc,unfocused
2012-10-04 15:07:51 -04:00
Ryan VanderMeulen
d3510ae5f7
Backout e5269e137290, (bug 794606), e94dbc151121 (bug 794602), and 0ea0cfc7f6f4 (bug 792821) due to mochitest-other orange on a CLOSED TREE.
2012-10-04 19:34:19 -04:00
Josh Matthews
fe1c85126f
Bug 794602 - Make nsWebBrowserPersist::SaveURIInternal use channels with valid privacy statuses. r=bz,mfinkle,smaug,ehsan,jwalker,roc,unfocused
2012-10-04 15:07:51 -04:00
Jacek Caban
30e02f31b6
Bug 797316 - Fix -Werror=conversion-null errors in Windows-only code (embedding/components/printingui part) r=ehsan
...
--HG--
extra : rebase_source : c68328d354d498c5d51ce85d79964eeaa88b18bd
2012-10-04 10:30:25 +02:00
Isaac Aggrey
0cc4b12d36
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Ehsan Akhgari
70ba385729
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Andrew Quartey
3f451d58b7
Bug 788741 - Truncate file extension if too long r=bz
2012-09-18 16:45:51 -04:00
Aryeh Gregor
e840991a39
Bug 783523 - Fix platform-specific nsresult misuse; r=ehsan,tbsaunde,smaug
2012-08-16 14:58:11 +03:00
Makoto Kato
507b76f776
Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza
2012-09-06 11:41:02 +09:00
Bobby Holley
dfd8cb0284
Bug 774633 - Remove "is chrome window" condition for inner window reuse. r=jst
...
WouldReuseInnerWindow also returns true if the new window is same-origin with
the old one about:blank document.
This condition exists in order to handle some sloppiness with respect to the
principals on initial about:blank documents. Chrome callers sometimes parent
chrome windows (with XUL document) to content windows. But this parenting causes
us to push the cx of the content window during window creation, meaning that
the subsequent load of chrome://foo.xul blows away the old inner window and any
expandos on it. We can handle this case more precisely by skipping the cx push
for type="chrome" windows.
Furthermore, this was also necessary to prevent the inner window from being
blown away in the call to SetOpenerScriptPrincipal once nsWindowWatcher gets
the window back from the window creator (and after it's already told consumers
about the window via "domwindowcreated"). But we fixed this nastiness in the
previous patches.
So we can remove this case. By doing so, we can prevent inner windows from ever
changing origins, which is very important for compartment security invariants.
2012-09-05 11:32:06 -07:00
Bobby Holley
d632c16fd4
Bug 774633 - Move the call to SetInitialPrincipalToSubject into nsAppShellService::RegisterTopLevelWindow. r=jst
...
This means that we get the correct principal on the window before sending notifying
any consumers about the window's creation.
2012-09-05 11:32:06 -07:00
Bobby Holley
2195e87d2e
Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
...
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-09-05 11:32:06 -07:00
Bobby Holley
9b95920174
Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
...
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-09-05 11:32:06 -07:00
Aryeh Gregor
55bcbc58c7
Bug 782594 - Don't try returning nsresult in place of uint32_t; r=bz
2012-08-14 12:10:42 +03:00
Randell Jesup
29ac5c0b8c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Matt Brubeck
424ea88da6
Back out 670c8a2695b3 (bug 771354), 134557d57e6e 4ad52e488977 (bug 774607), and...
...
036eb8c2a08a d4d36e3b948f 35334e820632 6bd07fd5147d d49e7c0d762c 407f19deb14c d84551808abb (bug 774633)
on a CLOSED TREE
2012-08-23 21:34:27 -07:00
Bobby Holley
4e701ac456
Bug 774633 - Remove "is chrome window" condition for inner window reuse. r=jst
...
WouldReuseInnerWindow also returns true if the new window is same-origin with
the old one about:blank document.
This condition exists in order to handle some sloppiness with respect to the
principals on initial about:blank documents. Chrome callers sometimes parent
chrome windows (with XUL document) to content windows. But this parenting causes
us to push the cx of the content window during window creation, meaning that
the subsequent load of chrome://foo.xul blows away the old inner window and any
expandos on it. We can handle this case more precisely by skipping the cx push
for type="chrome" windows.
Furthermore, this was also necessary to prevent the inner window from being
blown away in the call to SetOpenerScriptPrincipal once nsWindowWatcher gets
the window back from the window creator (and after it's already told consumers
about the window via "domwindowcreated"). But we fixed this nastiness in the
previous patches.
So we can remove this case. By doing so, we can prevent inner windows from ever
changing origins, which is very important for compartment security invariants.
2012-08-23 16:44:53 -07:00
Bobby Holley
b72d64f8a5
Bug 774633 - Move the call to SetInitialPrincipalToSubject into nsAppShellService::RegisterTopLevelWindow. r=jst
...
This means that we get the correct principal on the window before sending notifying
any consumers about the window's creation.
2012-08-23 16:44:52 -07:00
Bobby Holley
efd432c75a
Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
...
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-08-23 16:44:52 -07:00
Bobby Holley
6e122ec16c
Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
...
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-08-23 16:44:52 -07:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ian Melven
915cb4516e
Bug 341604 - Implement HTML5 sandbox attribute for IFRAMEs r=smaug r=jst
2012-08-20 11:34:32 -07:00
Justin Lebar
c8d690be71
Bug 783644 - Part 2: If we're inside <iframe mozbrowser>, ignore the dialog=1 feature in window.open. r=smaug
2012-08-20 09:30:08 -07:00
Aryeh Gregor
4c54d98fcb
Bug 782252 - Change named constants to correct types; r=ehsan
2012-08-07 18:11:35 +03:00
Aryeh Gregor
072c3e10ea
Bug 782252 - Convert declared types to nsresult; r=ehsan
2012-08-06 15:02:31 +03:00
Justin Lebar
adfc4e45ba
Bug 769254 - Part 2: Modify nsPIWindowWatcher::OpenWindowJS (renamed to OpenWindow2) so we can pass in the URL for target=_blank links without navigating the opened window to that URL. r=bz
2012-08-14 10:58:00 -04:00
Aryeh Gregor
982100775b
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Aryeh Gregor
56ba7bec2e
Bug 779442 - Fix a few more incorrect uses of nsresult; r=ehsan
2012-08-01 11:17:10 +03:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Aryeh Gregor
4b7b9b0f75
Bug 778681 part 4 - Convert nsCommandManager to use nsTArray instead of nsCOMArray; r=bz
2012-07-30 16:48:02 +03:00
Aryeh Gregor
2e7996f8d1
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Ehsan Akhgari
c80897316e
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Aryeh Gregor
17bdf11678
Bug 777292 - Annotate some incorrect conversions to nsresult; r=ehsan
2012-07-27 17:03:25 +03:00
Aryeh Gregor
58769bb9d6
Bug 777292 - Don't use |= on nsresult; r=ehsan
2012-07-27 17:03:08 +03:00
Matt Brubeck
1d52142e2d
Back out fbdb3104c9e5, d2fe54ae00a8, d378362cbe01, fe623d60bea1 (bug 769254) on suspicion of causing Windows debug mochitest-plain-3 timeouts
2012-07-23 20:30:12 -07:00
Justin Lebar
fbafcfad6f
Bug 769254 - Part 3: Rename nsWindowWatcher::OpenWindowJSInternal --> OpenWindowInternal. r=bz
...
--HG--
extra : rebase_source : d3a335a33711dc235a401287379c8d35e245a4ba
2012-07-23 10:44:13 -04:00
Justin Lebar
156f22d018
Bug 769254 - Part 2: Modify nsPIWindowWatcher::OpenWindowJS (renamed to OpenWindow2) so we can pass in the URL for target=_blank links without navigating the opened window to that URL. r=bz
...
--HG--
extra : rebase_source : 96a53a1a8b34f41bfe59f00141d598c5394cb0c1
2012-07-23 10:44:13 -04:00
Mark Capella
bf92974758
Bug 769998 - Make nsIWidget::IsVisible return bool, r=roc, f=ms2ger
2012-07-19 04:57:50 -04:00
Mounir Lamouri
5885dd639e
Bug 635498 - Make <input type='number'> behaves like <input type='text'>. r=sicking
...
--HG--
extra : rebase_source : 0754f845fd6223cd48ca8908ebf642636f0fd9ed
2012-06-10 22:23:17 +02:00
David Zbarsky
cd3c58ee76
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Jonathan Watt
9ac7bb2267
Bug 767388 - Kill NS_DEBUG. r=bz.
...
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Justin Lebar
13518ec124
Bug 742944 - Part 4: Handle window.open in <iframe mozbrowser>. r=bz, cjones
...
--HG--
extra : rebase_source : 4c16c86c5be230af22eea89dfb5f893b7c6091dd
2012-06-12 18:01:25 -04:00
Olli Pettay
94414ed431
Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst
2012-06-10 21:14:30 +03:00
Geoff Lankow
1214b72681
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benjamin Smedberg
2187798a40
Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
...
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Jason Duell
bf6809bf96
Bug 752675: Fix docs for nsIWebBrowserPersist::PERSIST_FLAGS_FROM_CACHE. r=bz
2012-05-08 18:02:32 -07:00
Ms2ger
9a5ae693e0
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Philip Chee
0c292a1bfc
Bug 748991 The Find in Page Dialog does not vertically center the highlighted result like the findbar does r=ehsan.
...
--HG--
extra : rebase_source : be6e9164df9e943d598db0f4f3f07b266d6bb6f4
2012-04-27 03:04:33 +08:00
Ms2ger
b8ae2456b2
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
9f95d23e65
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
Henri Sivonen
8f85599bbf
Bug 739905 - Make nsFind use nsGkAtoms. r=bzbarsky.
2012-03-28 12:11:56 +03:00
Henri Sivonen
4f67ee6da2
Bug 729044 - Avoid nsIParserService in nsFind. r=bzbarsky.
2012-03-28 12:11:56 +03:00
Justin Lebar
064e2cf3f9
Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
...
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
Margaret Leibovic
7210927ab7
Bug 725502 - window.open with dialog=yes argument in it causes weird issue. r=jst
2012-03-08 15:29:30 -08:00
Henri Sivonen
95c3b0eac7
Bug 650784 part 0 - Fold nsParserUtils into nsContentUtils. r=smaug.
2012-02-27 13:57:48 +02:00
Matthew Schranz
62d6dff935
Bug 698381 - Make Node.cloneNode aDeep argument optional, default to true. r=smaug
2012-02-23 14:23:30 +01:00
Geoff Lankow
ccbc354dda
Bug 728655 - Fix leak in nsWebBrowserFind; r=bsmedberg
2012-02-22 12:13:24 +13:00
Cameron McCormack
6f87b94b52
Bug 674370 - Make browser windows (and other document-like windows) zoom on creation on OS X 10.7. r=mstange,dao sr=bzbarsky
2012-02-17 14:47:39 +11:00
Marco Bonardo
152ac8a010
Backout 7a8b935ab596 (bug 674370) for Paint regression
2012-02-08 09:23:40 +01:00
Cameron McCormack
0079b02b78
Bug 674370 - Make browser windows (and other document-like windows) zoom on creation on OS X 10.7. r=mstange,dao sr=bzbarsky
2012-02-08 11:44:45 +11:00
David Zbarsky
785e84c27d
Bug 682611 - Part 2: Remove nsIRange; r=smaug
2012-01-10 15:19:54 +01:00
Bobby Holley
92e001c11a
Bug 713747 - Remove usage of UniversalFoo in gecko. r=bz
2011-12-30 09:35:39 -08:00
Ed Morley
ef84a75477
Bug 710148 - Remove MOZ_REQUIRE_CURRENT_SDK from nsPrintDialogUtil.cpp; r=bsmedberg
2011-12-16 09:13:29 +00:00
Oonishi Atsushi
5db5ec8f54
Bug 311007 - Add aFlags arg to onLocationChange(...), to distinguish between same-document and different-document. r=smaug, sr=bzbarsky
2011-11-10 15:01:11 +01:00
Ehsan Akhgari
2a602a5685
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b7753477cf
Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
...
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Ms2ger
cd715d9c9b
Bug 540433 - Remove nsIDocumentViewer; r=smaug
2011-10-15 09:33:26 +02:00
Ed Morley
e8fdfa2c99
Bug 687358 - Remove nsWWJSUtils and use nsJSUtils instead; r=jst
2011-10-11 14:50:09 +01:00
Ed Morley
72ed7305fc
Bug 689884 - Deleted the now unused Makefiles from the tree; r=khuey
2011-10-06 17:15:07 +01:00
Ed Morley
918444551f
Bug 689884 - Skip Makefiles that are no-op or else only |DIRS = a_single_subdir|; r=khuey
2011-10-06 17:15:07 +01:00
Brian R. Bondy
ca4fd9638e
Bug 366347 - Default collate option sometimes off for printers that support it. r=bsmedberg
...
--HG--
extra : rebase_source : 13ab1afb123a4282fd419e5f7f1dd74ee6b9f4b8
2011-09-29 09:21:32 -04:00
Michael Wu
d8e503c38b
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Steffen Wilberg
68913404a1
Bug 678600: Don't add print frames options to Windows print dialog when they would be disabled anyway because there are no frames. r=roc, ui-review=faaborg
2011-09-24 14:05:29 +02:00
Ms2ger
bdb73c237b
Bug 684472 - Reduce QIs in nsPrintingPromptService; r=bsmedberg
2011-09-18 11:22:18 +02:00
Ms2ger
7b7048fda0
Bug 649603 - Make nsIScriptContext::GetNativeContext return JSContext; r=jst
2011-09-18 11:22:17 +02:00
Matheus Kerschbaum
d996705797
Bug 677529 - Remove manual jspubtd.h inclusions from IDL files. r=Ms2ger
2011-08-14 19:12:35 +02:00
Ms2ger
d377c55ed2
Bug 677101, part c - Reduce nsIDOMText.h inclusions; r=volkmar
2011-08-11 15:29:58 +02:00
Ms2ger
9414376b01
Bug 677101, part b - Remove nsContentUtils.h includes from headers; r=volkmar
2011-08-11 15:29:50 +02:00
Matheus Kerschbaum
55aebc79d4
Bug 579571 - Remove --enable-timeline support. r=tglek
2011-07-17 12:07:42 +02:00
Ms2ger
36c532ffa2
Bug 670235 - Remove nsIDOMWindowInternal; r=sicking
2011-07-15 12:31:34 +02:00
Boris Zbarsky
c8375f12ac
Bug 648045. Mark the currently selected tab in a minimized window as inactive. r=gavin,smaug
2011-07-11 09:14:08 -04:00
Marco Bonardo
26bd9f0a1b
Backout changesets 9e4ab3907b29, 3abc0dbbf710 due to m-oth permaorange
2011-07-11 10:27:58 -07:00
Boris Zbarsky
eaeea8e796
Bug 648045. Mark the currently selected tab in a minimized window as inactive. r=gavin,smaug
2011-07-11 09:14:08 -04:00
Ms2ger
6a0e5995a2
Bug 666684 - Fix build warnings in embedding/browser/webBrowser; r=bz
2011-06-28 12:45:50 +02:00
Mounir Lamouri
d70fb8c1d9
Bug 658037 (2/2) - r=bz
2011-06-21 18:52:01 +02:00
Ms2ger
104c364789
Bug 29256 - Remove nsWindowWatcher::CheckWindowName; r=bz
2011-06-18 11:02:00 +02:00
Jonas Sicking
17ec46a39a
Bug 659053 Part 1: Merge nsIDOM3Node into nsIDOMNode. Also removes Node.getFeature. r=peterv
2011-06-14 00:56:48 -07:00
Ed Morley
223c46b36b
Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted
2011-06-12 03:49:00 -04:00
Ed Morley
9e71e5b9ac
Bug 614515 - Remove MOZ_SVG conditions. r=roc
2011-05-30 09:34:50 +02:00
Ms2ger
b171b9ae5c
Bug 658906 - Remove nsIDOMNSDocument; r=sicking
2011-05-28 09:43:53 +02:00