Commit Graph

329 Commits

Author SHA1 Message Date
Nikki S
d19c0b6443 Bug 1484071 - Crop large data URLs before displaying them in the status bar r=Felipe
This commit provides a simple fix to reduce the time spent
rendering larger data URLs (such as large screenshots) in
the status panel when the Highlights tab is hovered over.
By limiting the number of characters displayed, this
decreases the time spent in the _showDelayed function.

Differential Revision: https://phabricator.services.mozilla.com/D21593
2019-03-06 14:09:31 +00:00
Doug Thayer
7192f70ab5 Bug 1532841 - Don't preopen pinned tabs for private browser window r=Gijs
If we're opening a private browsing window on startup, we won't run the
session restore code, and thus we won't end up cleaning up the preopened
tabs. This raises the question: are there other scenarios where we won't
run restoreWindow at all? Eyeballing the code I think not, but I'm not
sure.

Depends on D22195

Differential Revision: https://phabricator.services.mozilla.com/D22216
2019-03-06 11:51:55 +00:00
Brindusan Cristian
c85bc9d0dd Backed out changeset 6890499eb5d1 (bug 1484071) for ESlint failure at tabbrowser.js. CLOSED TREE 2019-03-06 01:42:21 +02:00
Nikki S
fc01c4d0e4 Bug 1484071 - Crop large data URLs before displaying them in the status bar r=Felipe
This commit provides a simple fix to reduce the time spent
rendering larger data URLs (such as large screenshots) in
the status panel when the Highlights tab is hovered over.
By limiting the number of characters displayed, this
decreases the time spent in the _showDelayed function.

Differential Revision: https://phabricator.services.mozilla.com/D21593
2019-03-05 22:11:37 +00:00
Andreea Pavel
7abc387e2b Backed out 3 changesets (bug 1524992) for valgrind failures on a CLOSED TREE
Backed out changeset face9d1e8868 (bug 1524992)
Backed out changeset ae1e20a595c4 (bug 1524992)
Backed out changeset b0b9322c7a59 (bug 1524992)
2019-03-05 01:36:59 +02:00
James Willcox
76ac6ea731 Bug 1524992 - Treat command line URIs as external r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20890
2019-03-04 22:06:30 +00:00
Doug Thayer
babdb4405d Bug 1442694 - Preopen pinned tabs before session restore r=Gijs
When we open firefox with pinned tabs, we first paint a window with
one tab open, and then that tab gets displaced after the pinned tabs
come in. This aims to ensure that our first paint contains the
pinned tab, so that we don't have tabs moving around after first
paint.

MozReview-Commit-ID: GC1y6NlgLTd

Differential Revision: https://phabricator.services.mozilla.com/D18742
2019-03-01 18:28:53 +00:00
Johann Hofmann
fe0768a7ad Bug 1525267 - Move auth prompt rate limiting to nsIAuthPrompt2.promptAuth. r=MattN
This also changes the name of 'canceledAuthenticationPromptCounter' to account for the
fact that we no longer count up when the prompt was cancelled, but when it was shown.

Differential Revision: https://phabricator.services.mozilla.com/D21680
2019-03-01 15:24:19 +00:00
Oriol Brufau
a4f73f9ae1 Bug 1521923 - Preserve lazyness of the first inactive tab moved into a new window. r=jaws CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D20100
2019-02-28 23:21:40 +00:00
Narcis Beleuzu
21ac2fde9f Backed out changeset 51ffa59f1488 (bug 1521923) for WR failures on outline-013.html . CLOSED TREE 2019-03-01 06:25:27 +02:00
Oriol Brufau
d0e705f76d Bug 1521923 - Preserve lazyness of the first inactive tab moved into a new window. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D20100
2019-02-28 23:21:40 +00:00
Gabriele Svelto
3e3e8f05ab Bug 675539 - Make tab discard functionality work on tab objects directly r=mconley
This removes the need to go through the browser-to-tab mapping when discarding
a tab and simplifies the relevant code. Besides being renamed discardBrowser()
was also split so that one can check if a tab can be discarded prior to trying
it.

Differential Revision: https://phabricator.services.mozilla.com/D20475
2019-02-26 05:35:09 +00:00
Coroiu Cristina
f57ea27ef7 Backed out 2 changesets (bug 1524992) for multiple failures and timeout on a CLOSED TREE
Backed out changeset fb1d7e57e253 (bug 1524992)
Backed out changeset bd215cd3c8d7 (bug 1524992)
2019-02-27 19:02:03 +02:00
James Willcox
ec0fc52124 Bug 1524992 - Treat command line URIs as external r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20890
2019-02-27 15:57:44 +00:00
Daniel Varga
35da162d3b Backed out 2 changesets (bug 1524992) for linting opt failure on a CLOSED TREE
Backed out changeset 998c1f756e51 (bug 1524992)
Backed out changeset e5da75d979ef (bug 1524992)
2019-02-27 17:19:45 +02:00
James Willcox
6244a2a0f5 Bug 1524992 - Treat command line URIs as external r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20890
2019-02-26 19:23:43 +00:00
shindli
641b0ef885 Backed out 2 changesets (bug 1442694) for breaking session restores on update a=backout
Backed out changeset f100f8631f78 (bug 1442694)
Backed out changeset 7a20c79a0e12 (bug 1442694)
2019-02-26 18:32:20 +02:00
Doug Thayer
82f10b5098 Bug 1442694 - Preopen pinned tabs before session restore r=Gijs
When we open firefox with pinned tabs, we first paint a window with
one tab open, and then that tab gets displaced after the pinned tabs
come in. This aims to ensure that our first paint contains the
pinned tab, so that we don't have tabs moving around after first
paint.

MozReview-Commit-ID: GC1y6NlgLTd

Differential Revision: https://phabricator.services.mozilla.com/D18742
2019-02-25 19:19:07 +00:00
Christoph Kerschbaumer
3dd19b31a3 Bug 1518454: Part 2, frontend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=gijs 2019-02-22 09:19:26 +01:00
Christoph Kerschbaumer
b0812aa988 Bug 1529252: Remove the 2 from the various version to create a channel within nsIIOService.idl. r=valentin 2019-02-21 12:48:20 +01:00
Jonathan Kingston
540181c731 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261
2019-02-19 02:34:09 +00:00
Thomas Nguyen
7405fdc8a3 Bug 1517703 - Part 2 - Use ReferrerInfo in loadURIOptions from js r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17922
2019-02-12 19:35:24 +00:00
Mike Conley
b013ece5a7 Bug 1523648 - Remove BUSY_TAB_ABANDONED probe and tests. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D19165
2019-02-08 19:41:42 +00:00
Alastor Wu
5c86f0cd81 Bug 1525374 - Update expired Telemetry for tab audio indicator. r=jaws,janerik
* TAB_AUDIO_INDICATOR_USED
Keep this ping in order to know the usage of different icons, especially the play icon is part of blocking autoplay feature which would probably be landed in fx66. And we would like to know how many user would use that icon to resume blocked media.

* TAB_MEDIA_BLOCKING_TIME_MS
This telemetry is used to record the delaying time, and we could remove it because now we don't need this data for our analysis.

Differential Revision: https://phabricator.services.mozilla.com/D18741
2019-02-07 18:01:13 +00:00
Johann Hofmann
ed19d5158b Bug 377496 - Improve auth dialog blocking heuristics. r=MattN
The fix in bug 1312243 introduced a maximum of three consecutive cancelations (controlled by a pref) that a user could perform until Firefox would prevent the page from showing more dialogs.

This, in my opinion, is a great idea. The implementation, however, has a major fallacy: It checks the inner window id in the well-meaning attempt to find user navigation or reloads and clears its internal counter when that window id changes. Unfortunately this also clears the counter on non-user-initiated navigations and reloads. I believe that the true intention of the patch was to cancel the auth dialog after 3 attempts, except if:

- The user reloads the page on their own terms
- The user navigates to a different site on their own

Which is what I plan to implement, using the same pattern we applied to implement temporarily blocked site permissions:

- Temporarily store basic auth counter state on the browser object, as a map from baseDomain (eTLD+1) to number of cancellations
- Reset this state only on user initiated reload
- Reset the counter for a domain if the user has entered login data into the dialog and submitted

This would mitigate the DOS issue while hopefully not breaking any sites that rely on basic auth.

Differential Revision: https://phabricator.services.mozilla.com/D18019
2019-02-03 19:42:19 +00:00
Oriol Brufau
350ab5623a Bug 1524254 - Rename addTab's title parameter to lazyTabTitle. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D18320
2019-02-01 10:33:19 +00:00
Mike Conley
98b419a556 Bug 1522546 - Make tabbrowser access browser remoteType property rather than the attribute. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18223
2019-01-31 19:54:07 +00:00
Oriol Brufau
5e6c962881 Bug 1521346 - Preserve lazyness when moving tabs into a new window. r=jaws
TODO: the first lazy tab is not moved using gBrowser.adoptTab, so it's still unlazified.

Differential Revision: https://phabricator.services.mozilla.com/D17084
2019-01-31 00:33:39 +00:00
Myk Melez
5ecc2c1225 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526
2019-01-30 17:26:25 +00:00
Jared Wein
a8451d8c9a Bug 1135303 - Don't warn when closing multiple tabs if sessionstore can undo close the requested amount of tabs. r=Gijs,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D17858
2019-01-30 13:36:25 +00:00
Mike Conley
8a0d2296d2 Bug 1277060 - Rename initialPageLoadedFromURLBar to initialPageLoadedFromUserAction. r=Gijs
There are cases where we might want to set this from a non-URL bar user action -
for example, when clicking on the Home button.

Differential Revision: https://phabricator.services.mozilla.com/D17407
2019-01-28 21:22:47 +00:00
Gijs Kruitbosch
56c0f09b02 Bug 1521708, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D17244
2019-01-22 15:24:36 +00:00
Ehsan Akhgari
6786193fda Bug 1521582 - Only simulate onContentBlockingEvent from onLocationChange for top-level non-samedocument notifications; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D17145
2019-01-21 22:15:37 -05:00
Ehsan Akhgari
5530c0b72d Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Gijs Kruitbosch
94511875f5 Bug 1520791 - ensure initial browser's docshell is marked as active in the parent, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D16862
2019-01-17 15:58:36 +00:00
Brian Grinstead
8bb446412a Bug 1519461 - Don't return values from docShellIsActive, renderLayers, and userTypedValue setters;r=mconley
This is more consistent with other setters, and lets us handle the null frameLoader
case a bit more simply.

Differential Revision: https://phabricator.services.mozilla.com/D16370
2019-01-14 20:36:25 +00:00
Brian Grinstead
d3484f107d Bug 1441935 - Modifications on top of the generated MozBrowser Custom Element r=mconley
In order to make the history easier to navigate, this changeset includes the
modifications required to make <xul:browser> actually work as a Custom Element,
and switches the app to use it instead of the XBL browser.

Differential Revision: https://phabricator.services.mozilla.com/D14911
2019-01-10 01:45:43 +00:00
Alastor Wu
20a7687e15 Bug 1513681 - part5 : remove event 'AudibleAutoplayMediaOccurred'. r=jaws
This event is used for shield-study which has finished, so we could remove it.

Differential Revision: https://phabricator.services.mozilla.com/D14810
2019-01-04 19:04:39 +00:00
Alastor Wu
2c7902c191 Bug 1513681 - part2 : handle 'GloballyAutoplayBlocked' event r=jaws,daleharvey
Handle the process from receiving event to showing the block icon.

Differential Revision: https://phabricator.services.mozilla.com/D14795
2019-01-04 18:33:53 +00:00
Timothy Guan-tin Chien
c7843797af Bug 1512048 - Convert tabmodalprompt binding to JSM module r=Gijs
This converts the tabmodalprompt binding to a class, to be constructed along side with the element
by TabModalPromptBox.

TabModalPromptBox will keep the instances in a map and pass it to the callers, instead of the element.
The tests and callers can access the class instance by passing the element reference to the map.

Differential Revision: https://phabricator.services.mozilla.com/D15505
2019-01-04 19:29:34 +00:00
Bogdan Tara
79afa3ad77 Backed out 5 changesets (bug 1513681) for browser_autoplay_blocked.js failures CLOSED TREE
Backed out changeset d24ddb803761 (bug 1513681)
Backed out changeset 6f52b229d953 (bug 1513681)
Backed out changeset 79a78732c3ac (bug 1513681)
Backed out changeset d0a9422928ae (bug 1513681)
Backed out changeset 23b5a58e3bcc (bug 1513681)
2018-12-29 04:00:53 +02:00
alwu
b07ef7e3e8 Bug 1513681 - part5 : remove event 'AudibleAutoplayMediaOccurred'. r=jaws
This event is used for shield-study which has finished, so we could remove it.

Differential Revision: https://phabricator.services.mozilla.com/D14810
2018-12-21 19:01:10 +00:00
alwu
b577f9016f Bug 1513681 - part2 : handle 'GloballyAutoplayBlocked' event r=jaws,daleharvey
Handle the process from receiving event to showing the block icon.

Differential Revision: https://phabricator.services.mozilla.com/D14795
2018-12-28 09:12:44 +00:00
Mike Conley
7d43605d45 Bug 1503796 - Convert XPCOM arrays and strings from nsBrowserContentHandler to JS arrays and strings earlier when opening browser windows. r=Gijs
This also makes it so that the initial browser tab setup code can handle a JS array
as the URI(s) to load during start-up. If it's an array, the first element of that
array is inspected to determine what process type the initial browser tab should
be in.

Differential Revision: https://phabricator.services.mozilla.com/D14755
2018-12-17 21:21:57 +00:00
Dão Gottwald
6947b51ead Bug 1394188 - Make tab labels not change during reload. r=bzbarsky,florian
Differential Revision: https://phabricator.services.mozilla.com/D14602
2018-12-17 12:33:29 +00:00
Ehsan Akhgari
61fe3c0a09 Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance 2018-12-03 14:27:53 -05:00
Gijs Kruitbosch
3c50ed662a Bug 1506173 - use separate pref for warning on quit with sessionstore enabled, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D13535
2018-11-30 20:21:59 +00:00
Jared Wein
64c89796af Bug 1511095 - Remove SchedulePressure.jsm and the fallback loading throbber in the tabstrip. r=mconley
The APNG version is still used by the TabsList which can't support the SVG version of the throbber currently.

Differential Revision: https://phabricator.services.mozilla.com/D13461
2018-11-29 22:25:33 +00:00
Dão Gottwald
29b000b09b Bug 1509309 - Move most browser-*.js scripts from global-scripts.inc to browser.xul. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D13064
2018-11-27 21:55:21 +00:00
Gijs Kruitbosch
0bfbe7d639 Bug 1509906 - use the window's initial url to determine what remoteType the initial browser should have, r=dao,mconley
Differential Revision: https://phabricator.services.mozilla.com/D13016
2018-11-27 15:56:26 +00:00