Commit Graph

604 Commits

Author SHA1 Message Date
Ehsan Akhgari
c47686a18e Bug 800193 - Print a warning when setting nsILoadContext.usePrivateBrowsing in per-window private browsing builds; r=bzbarsky 2012-10-31 00:15:24 -04:00
Justin Lebar
c001680f59 Backed out changeset a6a847452dbf (bug 802366) 2012-10-30 21:36:29 -04:00
Justin Lebar
df1f088009 Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones DONTBUILD
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.

(Re-landing changeset a6a847452dbf, backed out in 5091aa6083c4, because it was originally landed with the incorrect bug number.)
2012-10-30 16:13:21 -04:00
Justin Lebar
b6d3d98908 Backed out changeset a6a847452dbf due to incorrect bug number (should be bug 802366, but was bug 802367). DONTBUILD 2012-10-30 16:13:20 -04:00
Justin Lebar
5dde530864 Bug 802367 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id.  This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process.  I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.

--HG--
extra : rebase_source : f3ef9475e21204da10bf39c6cca506bc08096949
2012-10-30 15:55:05 -04:00
Ehsan Akhgari
78b2656cbc Backed out 2 changesets (bug 579517)
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
03be701616 Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517) 2012-10-25 11:48:19 -04:00
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
6217ad6b5a bug 794038 pt 1.0 - use global display pixel coordinates to persist and restore XUL window position and size. r=roc 2012-10-16 20:41:19 +01:00
Jonathan Kew
7abd9c1d78 bug 794038 pt 0.9 - provide an unscaledDevicePixelsPerCSSPixel attribute on nsIBaseWindow to expose the default device-pix/css-pix ratio. r=roc 2012-10-16 20:41:19 +01:00
Jonathan Kew
002b80075c bug 794038 pt 0 - use the existing #defines for XUL window attribute names instead of repeating NS_LITERAL_STRING. r=roc 2012-10-16 20:41:19 +01:00
Andrew Quartey
ea52f5f496 Bug 792581 - part 15: Replace LL_L2I macro with int32_t cast. r=ehsan 2012-10-12 13:29:10 -04:00
Trevor Saunders
e2db6e1941 bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
Bobby Holley
6fc4e9f7b4 Bug 799348 - When creating a new content window, create the surrounding chrome docshell as system. r=bz 2012-10-11 19:44:20 +02: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
foudfou
590da7acb9 Bug 793433 - Fix crash when nsAppShellService::RegisterTopLevelWindow called with invalid arguments. r=bholley
--HG--
extra : rebase_source : 2f3be0e474c727ea5a58177809bf3af1f34477ec
2012-10-09 11:56:58 +02:00
Andrew Quartey
40154f9c13 Bug 792581 - part 3: Replace LL_NE macro with standard relation. r=ehsan 2012-10-03 10:13:18 -04:00
Ed Morley
d078159b72 Merge mozilla-central to mozilla-inbound 2012-10-02 11:19:03 +01:00
David Bienvenu
a12f3dbf3f Bug 679626 crash in nsIDOMWindowInternal::GetDocShell with signature pointing to nsASDOMWindowEnumerator::GetNext - try to avoid windows with no docshells. r=bz 2012-10-02 09:06:53 +01:00
Ms2ger
a2db61655c Bug 795403 - Cleanup nsXULWindow::GetWindowDOMElement; r=bz 2012-10-02 10:24:10 +02:00
bobbyholley+bmo@gmail.com
8c8c0e88d8 Bug 793370 - crash in nsWebShellWindow::Initialize, r=smaug+bz 2012-09-30 22:10:37 +03:00
Jonathan Kew
4ae1951644 bug 674373 pt 6 - support HiDPI display in Cocoa widget code. r=roc,smichaud 2012-09-29 12:36:09 +01:00
Isaac Aggrey
a53c93b026 Bug 795351: Replace LL_MAXINT, LL_MININT, LL_MAXUINT with stdint versions; r=ehsan 2012-09-28 14:55:23 -05:00
Bobby Holley
cc4926bee2 Bug 789773 - Eagerly create the about:blank viewer in nsWebShellWindow::Initialize. r=bz 2012-09-18 12:16:05 +02: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
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
Mike Hommey
68052c3774 Bug 785269 - Replace a few DEPTH and relativesrcdir. r=ted,r=callek 2012-09-05 16:42:09 +02: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
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
Justin Lebar
44c2b316f2 Bug 784436 - Part 2: Use new infallible nsIDocShell methods. r=bz 2012-08-22 18:27:04 -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
Chris Jones
d0e275f782 Bug 783134: Work around crashing on startup with fullscreen widgets. r=roc 2012-08-15 17:54:18 -07:00
Neil Deakin
b9bd1357f1 Bug 743975 - remove the event handler argument to widget creation methods, r=tn 2012-08-15 14:53:09 -04:00
Neil Deakin
7382e749d4 Bug 743975 - add a getpresshell method to the widget listener, r=tn 2012-08-15 14:52:42 -04:00
Neil Deakin
0413e44a55 Bug 743975 - use a widget listener interface instead of the remaining events that don't need an event, r=tn,jmathies,netzen,smichaud,karlt,blassey,chrisjones 2012-08-15 14:52:42 -04:00
Neil Deakin
193db1ca6c Bug 743975 - remove NS_DESTROY event, r=smaug 2012-08-15 14:52:41 -04:00
Neil Deakin
fae99fd13d Bug 743975 - use a direct call instead of move uistatechanged event, r=smaug 2012-08-15 14:52:40 -04:00
Neil Deakin
34ac541af0 Bug 743975 - remove accessibility events from widget, replace with a nsBaseWidget::GetAccessible method, r=trevsaunders 2012-08-15 14:52:37 -04:00
David Zbarsky
fe804d085c [Bug 780428] Don't include nsIFrame.h in places where it's not necessary r=roc 2012-08-05 23:00:56 -04:00
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Justin Lebar
83da4d548c Bug 778355 - Don't clear mWindow in nsWebShellWindow's destructor; nsXULWindow will clear it when it's destroyed. r=roc
Also, in nsWindowMediator's shutdown observer, release all of our nsXULWindow references after we release mListLock.  Without this, nsXULWindow's destructor can call back into nsWindowMediator, try to acquire mListLock, and deadlock.
2012-08-02 10:38:43 -04:00
Matt Brubeck
a02b12cf93 Back out 20b67f48676c (bug 778355) because of potential deadlock detected in make check 2012-07-30 11:56:48 -07: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
Justin Lebar
e04f57a7d9 Bug 778355 - Don't clear mWindow in nsWebShellWindow's destructor; nsXULWindow will clear it when it's destroyed. r=roc
--HG--
extra : rebase_source : 8e14b506f53861315e8e96bc8f775f141cd8e8dd
2012-07-30 12:20:42 -04:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
foudfou
c3b89d6fed Bug 760802 - Add JS nativeHandler attribute for nsIBaseWindow. r=roc 2012-07-24 21:35:32 -04:00
Ehsan Akhgari
018ce5e374 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (more xpfe/appshell parts); blanket-r=bzbarsky
--HG--
extra : rebase_source : 8e8ef6aedcaf1a5fd74e2805101868915a363522
2012-07-23 17:28:06 -04:00
Justin Lebar
9fbc467024 Bug 775676 - Fix leak in nsWebShellWindow. r=roc
After nsWebShellWindow::Destroy clears mSPTimer, it calls
nsXULWindow::Destroy, which runs script.  That script might cause us to
call nsWebShellWindow::SetPersistenceTimer.

If that happens, SetPersistenceTimer will create mSPTimer (it was nulled
out during nsWebShellWindow::Destroy) and addref this.  But there is no
corresponding release.

Let this be a lesson to all ye who try to be clever with manual
addref/release!
2012-07-23 10:40:36 -04:00
Mark Capella
7103242b4f Bug 775041 - Make nsIWidget::IsEnabled return bool, r=roc, f=ms2ger 2012-07-23 01:19:08 -04:00
Mounir Lamouri
fe2bf13acd Bug 774957 - Update nsDocShell jazz so distinction between browser and app frame is clearer. r=jlebar sr=sicking 2012-07-18 22:26:21 -07:00
Steve Fink
196cc9b6ff Backed out changeset 060a9d9fc1c6 from a CLOSED TREE since it seems to depend on afc1cf222996 or 1bafff5720a8 that I just backed out 2012-07-19 15:45:27 -07:00
Mounir Lamouri
d9542ba6f0 Bug 774957 - Update nsDocShell jazz so distinction between browser and app frame is clearer. r=jlebar sr=sicking 2012-07-18 22:26:21 -07:00
Mark Capella
bf92974758 Bug 769998 - Make nsIWidget::IsVisible return bool, r=roc, f=ms2ger 2012-07-19 04:57:50 -04:00
Ed Morley
bb507d18ac Backout ea6db8f420c0 (bug 770831), b51c79ee0883 (bug 774957), 020f6ed5958b (bug 758258), 11d8e19e1fca (bug 758258), 707fc51bfe2e (bug 775354), 489d944a6fe6 (bug 327244), be7df3c9d50f (bug 327244) for m-oth orange 2012-07-19 08:29:48 +01:00
Mounir Lamouri
ea02e3ec30 Bug 774957 - Update nsDocShell jazz so distinction between browser and app frame is clearer. r=jlebar sr=sicking 2012-07-18 22:26:21 -07:00
Ehsan Akhgari
82448a9e95 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (xpfe/appshell parts); blanket-r=bzbarsky 2012-07-19 00:49:48 -04:00
Mounir Lamouri
3ae2b86ae9 Bug 769586 - Make PopupWindowManager using principal to test permissions instead of URI. r=sicking 2012-07-15 18:37:31 -07:00
Benjamin Peterson
18035474af Bug 772963: remove empty parameter name. r=Neil DONTBUILD for m-c land
(since not used by Firefox/B2G/Fennec)
2012-07-11 11:32:00 -04:00
Justin Lebar
2f213f2b17 Bug 764718 - Part 1: Make window.close work on windows opened via window.open from <iframe mozbrowser>, when OOP is disabled. r=bz
--HG--
extra : rebase_source : c5f99247921df912d2369757756998c037a0957a
2012-07-09 15:50:05 -04:00
Matt Brubeck
b680a76a9f Back out 8e47e74e3578 and 82f24178d2cb (bug 764718) because of test failure 2012-07-06 16:27:58 -07:00
Justin Lebar
fb0d8f6051 Bug 764718 - Part 1: Make window.close work on windows opened via window.open from <iframe mozbrowser>, when OOP is disabled. r=bz
--HG--
extra : rebase_source : 8fd652c9d651727a140bece71e1b63269bae9b40
2012-07-06 13:35:38 -04:00
David Zbarsky
cd3c58ee76 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Ed Morley
91815d3c91 Backout 714c402f3050, 80d09e39cd0d & 3a1129278710 (bug 764718) for frequent intermittent failures 2012-06-22 11:04:47 +01:00
Justin Lebar
bed51a96eb Bug 764718 - Part 2: Make window.close work on windows opened via window.open from <iframe mozbrowser>, when OOP is disabled. r=bz 2012-06-21 21:17:52 -04:00
Ed Morley
76aca6769f Backout fed89ccfe0c2, 5fb8d7a3852f & d220195a8b95 (bug 764718) for mochitest-2 failures 2012-06-21 18:18:40 +01:00
Justin Lebar
62ba6afb68 Bug 764718 - Part 2: Make window.close work on windows opened via window.open from <iframe mozbrowser>, when OOP is disabled. r=bz 2012-06-21 11:58:49 -04: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
David Zbarsky
c0a5fd9c88 Bug 762801: fix bustage r=bustage 2012-06-09 15:54:12 -07:00
David Zbarsky
710953df6a Bug 762801 - Merge nsIEmbeddingSiteWindow2 into nsIEmbeddingSiteWindow r=jst 2012-06-09 15:15:12 -07:00
Serge Gautherie
5a7268484a Bug 747668. (Hv1a) XPFE autocomplete.xml: Implement nsIAutoCompleteInput.textValue. r=neil.
DONTBUILD (npotb).
2012-05-30 20:06:17 +02:00
Serge Gautherie
b00a5791b3 Bug 747668. (Gv1a) XPFE autocomplete.xml: Implement nsIAutoCompleteInput.popupOpen(). r=neil.
DONTBUILD (npotb).
2012-05-26 23:40:28 +02:00
Serge Gautherie
f80f25e24f Bug 747668. (Fv1) XPFE autocomplete.xml: Move selectBy() into nsIAutoCompletePopup section. r=neil.
DONTBUILD (npotb, trivial).
2012-05-26 16:30:31 +02:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Serge Gautherie
752168bdfd Bug 747668. (Ev1) XPFE autocomplete.xml: Move code into searchParam. r=neil.
DONTBUILD (a=npotb).
2012-05-02 15:39:24 +02:00
Serge Gautherie
0dbc5b990b Bug 747668. (Dv1) XPFE autocomplete.xml: Move code into onTextReverted(). r=neil.
DONTBUILD (npotb).
2012-04-27 11:51:15 +02:00
Serge Gautherie
de447b66aa Bug 747668. (Cv1) XPFE autocomplete.xml: Regroup code into onSearchComplete(). r=neil.
DONTBUILD (npotb).
2012-04-27 00:52:25 +02:00
Serge Gautherie
eb05465ea4 Bug 747668. (Bv1) Port |Bug 418712 - nsIAutoCompleteInput should fire an event when a search begins| to SeaMonkey. r=neil.
DONTBUILD (a=npotb).
2012-04-23 01:28:55 +02:00
Serge Gautherie
7db3a7b38d Bug 747668. (Av1a) XPFE autocomplete.xml: Regroup nsIAutoCompleteInput properties, Fix some nits. r=neil.
DONTBUILD (a=npotb).
2012-04-22 10:11:11 +02:00
Myk Melez
3298891e22 bug 746156 - isolate webapp runtime files into subdirectory of Firefox package; r=bsmedberg, a=akeybl 2012-04-19 00:39:52 -07:00
Myk Melez
253337cae3 bug 725408 - implement WebappRT launcher/shell; r=bsmedberg 2012-04-17 07:11:53 -07:00
Dão Gottwald
a0c99babc6 merge backout 2012-03-23 16:58:48 +01:00
Dão Gottwald
370316e0da Backed out changeset bf13c2253055 2012-03-23 16:58:27 +01:00
Paul O’Shannessy
2e876cdd8f Bug 714911 - Stop persisting sizemode=fullscreen [r=enn]
--HG--
extra : rebase_source : d94bb978f3d35c90659fca78df83d9bbca1795a6
2012-03-20 16:21:14 -07:00
Paul O’Shannessy
8adfd23472 Bug 639705 (Lion Full Screen) Part 1: Initial support for fullscreenbutton in XUL [r=enn]
--HG--
extra : rebase_source : 03d0b24570546fb8513b513e2c804145e47b3433
2012-03-20 16:21:14 -07:00
Neil Rashbrook
18e6645a14 Bug 727954 Delay autocomplete of pasted value r=IanNDONTBUILD 2012-03-04 15:13:20 +00:00
Neil Rashbrook
7185e77cef Bug 732738 textbox should only execute inline onfocus and onblur event handlers once r=smaug 2012-03-04 14:57:45 +00:00
Geoff Lankow
296627a8de Bug 710978 - Title attribute of a window is not updated in nsXULWindow::SetTitle; r=Neil 2011-12-20 00:47:18 +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
Philipp Hartwig
6258b42a70 Bug 512529 - Automatically leave fullscreen mode when it seems appropriate; r=neil 2012-02-06 18:17:32 +00:00
Serge Gautherie
6a4f5e1fed Bug 707039. (Dv4) XPFE autocomplete.xml: Adjust the direction of the (content) autocomplete popup list based on the textbox direction. r=neil.
DONTBUILD (NPODB).
2012-02-05 00:07:40 +01:00
Serge Gautherie
89e19cebee Bug 707039. (Bv1) XPFE autocomplete.xml: Rename resultsPopup to popup. r=neil.
DONTBUILD (NPOMCB).
2012-01-05 04:07:19 +01:00
Serge Gautherie
f3ea2897d0 Bug 707039. (Av1) XPFE autocomplete.xml: Rename openResultPopup()/closeResultPopup() to openPopup()/closePopup(). r=neil.
DONTBUILD (NPOMCB).
2012-01-05 04:06:19 +01:00
Jeff Walden
f73124604d Bug 711799 - Add parentheses to a bunch of && expressions nested within || expressions. r=dholbert 2011-12-18 01:00:47 -05:00
Mark Banner
6e18f4f795 Fix comm-central app bustage from bug 696498 - change the depth of the makefiles to account for being generated from the comm-central build system now that the old xpfe autocomplete files are no longer generated within the mozilla-central part of the build system. rs=Neil over irc. NPOTFFB DONTBUILD 2011-12-01 15:26:29 +00:00
Mike Hommey
3966d0498f Bug 702764 part 2 - Make nsAppStartup::GetStartupInfo more flexible. r=tglek 2011-11-18 08:54:27 +01: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