Commit Graph

62 Commits

Author SHA1 Message Date
Paolo Amadini
e90219b405 Bug 1204486 - Simplify gIdentityHandler and show connection type in the fullscreen notification. r=ttaubert 2015-09-22 14:37:39 +01:00
Jared Wein
8a1d5224a1 Bug 1201374 - followup, check for DOM fullscreen. r=xidorn 2015-09-08 16:56:13 -04:00
Jared Wein
65ea23567c Bug 1201374 - Add a telemetry probe to track how often F11 fullscreen mode is used (browser-fullscreen). r=ttaubert p=ally 2015-09-08 08:53:05 -04:00
Xidorn Quan
41e6f89c02 Bug 1160023 followup 2 - Fix test failure on browser_domFullscreen_fullscreenMode.js. 2015-08-14 22:39:59 +10:00
Xidorn Quan
7920c31850 Bug 1160023 followup - Avoid constructing box for hidden fullscreen warning. r=dao 2015-08-14 20:23:32 +10:00
Xidorn Quan
88176b5d9d Bug 1160023 part 5 - Implement the new fullscreen warning box. r=dao 2015-08-13 22:42:06 +10:00
Xidorn Quan
77107ddbf8 Bug 1160023 part 4 - Some code movement and style fix in fullscreen warning code. r=dao 2015-08-13 22:42:06 +10:00
Xidorn Quan
7695801249 Bug 1160023 part 2 - Add Timeout object to simplify timeout managing code. r=dao 2015-08-13 22:42:06 +10:00
Xidorn Quan
22a13d9c0b Bug 1160023 part 1 - Put fullscreen warning box related logic into a nested object. r=dao 2015-08-13 22:42:06 +10:00
Xidorn Quan
2240cc6065 Bug 1160017 part 2 - Remove fullscreen permission code from the browser part. r=dao 2015-07-21 20:50:20 +10:00
Xidorn Quan
4d7e632089 Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
This patch implements the code which is shared by all platforms for
fullscreen transition.

It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.

In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
2015-07-13 20:44:36 +10:00
Nigel Babu
fd84e932c3 Backed out 4 changesets (bug 1160014) for M2 bustages CLOSED TREE
Backed out changeset 87b00a9dac95 (bug 1160014)
Backed out changeset d4fa5c794e08 (bug 1160014)
Backed out changeset fca26897d534 (bug 1160014)
Backed out changeset b0b7f4f09ed2 (bug 1160014)
2015-07-11 10:49:25 +05:30
Xidorn Quan
7705aa3262 Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
This patch implements the code which is shared by all platforms for
fullscreen transition.

It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.

In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
2015-07-11 10:08:59 +10:00
Michael Layzell
20f33b6cf4 Bug 1170200 - Part 2: Update JavaScript consumers of nsIPermissionManager::Remove; r=ehsan 2015-07-03 17:12:27 -04:00
Ehsan Akhgari
7015e19689 Backout bug 1170200 because of test failures on a CLOSED TREE 2015-07-03 16:43:47 -04:00
Michael Layzell
b70b5a5766 Bug 1170200 - Part 2: Update JavaScript consumers of nsIPermissionManager::Remove; r=ehsan 2015-07-03 14:18:23 -04:00
Xidorn Quan
a7af4b68c3 Bug 1168705 part 3 - Make MozDOMFullscreen:{Request,Exit,Entered,Exited} be triggered synchronously. r=dao,smaug
MozDOMFullscreen:{Request,Exit} are simply used to redirect the request
to the parent process, hence there is no need to align them with refresh
driver tick or dispatch asynchronously.

MozDOMFullscreen:{Entered,Exited} are also used to notify the content
process about the change, hence dispatching them later could cause
unwanted delay on fullscreen change. Their handlers are also changed in
this patch to avoid recursive fullscreen change.
2015-07-02 19:12:31 +10:00
Xidorn Quan
c38eddd24b Bug 1176519 - Restore the position the fullscreen toolbox collapsed flag is set. r=dao 2015-06-24 14:08:53 -07:00
Dão Gottwald
cbf8d1a404 Bug 1176233 - Simplify fullscreen code. r=xidorn 2015-06-20 12:35:10 +02:00
Xidorn Quan
4682d7971d Bug 1173768 - Force TabsInTitlebar to re-update appearance after exiting fullscreen. r=Gijs 2015-06-18 21:13:42 +10:00
Xidorn Quan
faad14d1c8 Bug 1173886 - Fix DOM fullscreen broken in e10s for tabs other than the first. r=dao
It changes the condition to check whether the MozDOMFullscreen:Entered
is originally targeted the <browser>.
2015-06-12 21:27:02 +12:00
Xidorn Quan
705f38acef Bug 1168028 part 2 - Revert DOM fullscreen state after window finish resizing if we need to. r=smaug,dao 2015-06-12 13:24:45 +12:00
Wes Kocher
6277cda150 Backed out changeset d73a15153b3b (bug 1168028) for browser_domFullscreen_fullscreenMode.js failures CLOSED TREE 2015-06-10 16:03:44 -07:00
Xidorn Quan
181ade2d17 Bug 1168028 - Revert DOM fullscreen state after window finish resizing if we need to. r=smaug,dao 2015-06-11 09:45:06 +12:00
Xidorn Quan
bcb81d180c Bug 1161802 part 7 - Put document into fullscreen state after window becomes fullscreen. r=smaug,dao 2015-06-10 23:13:12 +12:00
Xidorn Quan
960d5fd06f Bug 1161802 part 2 - Split nsGlobalWindow::SetFullScreenInternal into two parts, one part before the window resizing, the other after. r=smaug,dao,margaret
This patch moves the "fullscreen" event from the original place to the
second part, which indicates two other changes:

1. When the event is triggered, the value of fullScreen would have been
toggled to the new value, which is different from before. The changes in
browser/../browser-fullScreen.js and mobile/../browser.js are for this.

2. This event is no longer preventDefault-able, since it is triggered
after the fullscreen change. This leads to the removal of the test and
the only place which calls preventDefault on that event. That place is
a workaround for bug 1079222. To address that problem, this patch fixes
the intrinsic issue via stoping handling the fullscreen change once it
finds we failed to change the state of the widget.
2015-06-10 23:13:12 +12:00
Xidorn Quan
648063206d Bug 1168397 - Skip hiding toolbars for fullscreen mode on OS X Lion. r=dao 2015-06-06 19:08:00 +12:00
Xidorn Quan
fb4171e3de Bug 1105939 part 8 - Display fullscreen warning after reactivation on OS X Lion. r=dao 2015-06-04 13:49:34 +12:00
Xidorn Quan
53b154c938 Bug 1167890 - Cleanup DOM fullscreen state in chrome for MozDOMFullscreen:Exited event. r=dao 2015-05-29 09:55:39 +12:00
Bobby Holley
bbe701fdda Bug 1167372 - Use originNoSuffix for full-screen prompt. v2 r=smaug,r=dao,r=fabrice 2015-05-27 15:32:47 -07:00
Carsten "Tomcat" Book
6ef08c6881 merge mozilla-inbound to mozilla-central a=merge 2015-05-21 14:56:34 +02:00
Xidorn Quan
04452900f3 Bug 1053413 part 4 - Rely on single MozDOMFullscreen:Exited event instead of ask-* notifications on Firefox. r=dao 2015-05-21 09:52:26 +12:00
Xidorn Quan
62c32d4600 Bug 1053413 part 2 - Separate a MozDOMFullscreen:NewOrigin event from MozDOMFullscreen:Entered. r=dao,smaug
Change of fullscreen origin is now notified by the new specific event,
MozDOMFullscreen:NewOrigin. The event MozDOMFullscreen:Entered is only
triggered when the window first enter fullscreen by DOM fullscreen. It
is now only used to notify the parent to hide its chrome.
2015-05-21 09:52:26 +12:00
Xidorn Quan
7f7a3b2b44 Bug 1053413 part 1.1 - Rename Moz{Entered,Exited}DomFullscreen to MozDOMFullscreen:{Entered,Exited}. r=smaug 2015-05-21 09:52:26 +12:00
Xidorn Quan
6581a18f89 Bug 1053413 part 1 - Some code style conversion on affected code. r=dao 2015-05-21 09:52:26 +12:00
Xidorn Quan
2d6bb244df Bug 1165570 - Skip changing fullscreen window controls when using OS X Lion native fullscreen. r=dao 2015-05-17 15:12:00 +12:00
Xidorn Quan
be02d29574 Bug 1162752 - Prevent collapsing toolbar on fullscreen mode on OS X >= Lion. r=dao 2015-05-14 13:14:47 +12:00
Xidorn Quan
a821accd86 Bug 947854 part 2 - Avoid exiting fullscreen mode when exit from DOM fullscreen. r=smaug,dao 2015-05-06 10:04:31 +12:00
Xidorn Quan
2b93a898c5 Bug 947854 part 1 - Use CSS transition instead of JS animation for hiding toolbox in fullscreen mode and simplify related code. r=dao 2015-05-06 10:04:31 +12:00
abdelrhman
89000bcaec Bug 1110109 - Use Services.focus instead of Cc["@mozilla.org/focus-manager;1"].getService(Ci.nsIFocusManager). r=dao 2014-12-16 21:38:33 +01:00
Akshendra Pratap
5126311176 Bug 515196 - Added padding to toolbar autohide. r=dao 2014-11-01 21:01:18 +01:00
Edouard Oger
0afc2d70b0 Bug 714675 - Fullscreen API should restore sidebar if it was open before entering fullscreen. r=mconley 2014-10-30 12:45:00 +01:00
Dão Gottwald
c1553e0d02 Bug 1071821 - fullscr-toggler element needs to be hidden in DOM fullscreen. r=mconley 2014-09-26 21:22:55 +02:00
Mike Conley
6812cc5167 Bug 961362 - DOM Fullscreen API support for e10s. r=smaug,billm. 2014-08-19 16:58:00 -04:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Dão Gottwald
0058f3d92f Bug 1012629 - Infer from each toolbar's text color whether we should use inverted icons. r=gijs 2014-05-20 15:41:11 +02:00
Gijs Kruitbosch
979f35d8b8 Bug 890356 - After exiting Lion fullscreen, context menus on toolbars no longer work, r=dao 2013-07-04 20:12:23 +02:00
Jared Wein
5d7a9b4a66 Bug 863299 - Only support large icons mode for the toolbars in the browser. r=Unfocused 2013-06-11 21:45:35 -04:00
Jared Wein
b6e9bc1fc4 Bug 755593 - Remove tabs-on-bottom mode. r=dao 2013-06-04 18:08:55 -04:00
Gijs Kruitbosch
d25d9a3aa7 Merge m-c to ux 2013-06-02 21:35:55 +02:00