Commit graph

349 commits

Author SHA1 Message Date
Jonathan Kingston
2b27f3c10d Bug 1479433 - Changing icons and colors for containers to be class based. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24918

--HG--
extra : moz-landing-system : lando
2019-04-10 11:19:00 +00:00
Dão Gottwald
0b822d6214 Bug 1542299 - Remove Array.unshift usage from tabbrowser.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D26685

--HG--
extra : moz-landing-system : lando
2019-04-09 10:30:39 +00:00
Dão Gottwald
8e0b6d7a6e Bug 1542298 - Remove Array.filter usage from tabbrowser.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D26688

--HG--
extra : moz-landing-system : lando
2019-04-09 10:48:27 +00:00
Dão Gottwald
5e399367b5 Bug 1504775 - Ensure externally provided addTab index is within bounds. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D26296

--HG--
extra : moz-landing-system : lando
2019-04-05 17:23:07 +00:00
Brian
d8eb046cd9 Bug 1523763 - Move tab context menu strings to FTL file loaded on-demand. r=Gijs,flod
Moved tab context menu out of browser.dtd to browser.xul except for sendPageToDevice, sendLinkToDevice, moveTabOptions, moveSelectedTabOptions, undoCloseTab. Not sure if tabbrowser.js and tabbrowser.xul are working as intended.

Differential Revision: https://phabricator.services.mozilla.com/D19312

--HG--
extra : moz-landing-system : lando
2019-03-29 14:55:12 +00:00
sakshaat
d781937a67 Bug 1517483 - Get rid of nsIScriptSecurityManager::IsSystemPrincipal r=bzbarsky
Replaced instances of callers in both C++ and JS files to query the state from the principal directly.

Differential Revision: https://phabricator.services.mozilla.com/D22532

--HG--
extra : moz-landing-system : lando
2019-03-24 20:36:25 +00:00
Gijs Kruitbosch
d185982673 Bug 1530500 - remove obsolete browser swapping flags, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24114

--HG--
extra : moz-landing-system : lando
2019-03-20 08:49:04 +00:00
Gijs Kruitbosch
44dd6b4718 Bug 1353013 - allow using the preloaded new tab page in private windows, too, r=dthayer
This didn't use to work and was disabled in
https://bugzilla.mozilla.org/show_bug.cgi?id=1195981 . I expect my changes in
https://bugzilla.mozilla.org/show_bug.cgi?id=1427186 fixed the issue. It works
in my testing, anyway.

Differential Revision: https://phabricator.services.mozilla.com/D21127

--HG--
extra : moz-landing-system : lando
2019-03-19 17:29:34 +00:00
Gijs Kruitbosch
5e05f6c9c9 Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-19 17:29:14 +00:00
shindli
a7af1edc71 Backed out 3 changesets (bug 1353013) for a11y failures in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset af8bce2330e9 (bug 1353013)
Backed out changeset a3d1302b06c0 (bug 1353013)
Backed out changeset 976afd1adf84 (bug 1353013)
2019-03-18 18:21:16 +02:00
Gijs Kruitbosch
6f44e2b43b Bug 1353013 - allow using the preloaded new tab page in private windows, too, r=dthayer
This didn't use to work and was disabled in
https://bugzilla.mozilla.org/show_bug.cgi?id=1195981 . I expect my changes in
https://bugzilla.mozilla.org/show_bug.cgi?id=1427186 fixed the issue. It works
in my testing, anyway.

Differential Revision: https://phabricator.services.mozilla.com/D21127

--HG--
extra : moz-landing-system : lando
2019-03-12 14:34:24 +00:00
Gijs Kruitbosch
b7a741e6cb Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-12 14:34:04 +00:00
Thomas Nguyen
26bd1e060c Bug 1528695 - Part 2 : Use referrerInfo in openWindow, contextmenu and openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21911

--HG--
extra : moz-landing-system : lando
2019-03-15 05:10:17 +00:00
Kyle Machulis
f1f0e15fa3 Bug 1522713 - Don't change node binding to tree when updating remoteness; r=nika
Since we now have a method on nsFrameLoaderOwner/MozFrameLoaderOwner
that can update remoteness, we should no longer need to unbind and
rebind browser elements to the tree to change their remoteness
attributes. We can just call the method and have the Frameloaders
rebuilt in the backend.

We're still getting some test breakage in Marionette and browser
chrome with this patch. Putting this behind a pref so the fission
team can still work with it while the tests are being fixed.

Depends on D22790

Differential Revision: https://phabricator.services.mozilla.com/D22791

--HG--
extra : moz-landing-system : lando
2019-03-14 00:52:02 +00:00
Kyle Machulis
b1414002ac Bug 1524709 - Remove aShouldBeRemote from updateBrowserRemoteness; r=nika
Just set the RemoteType in the options object argument, instead of
doubling up the information.

Differential Revision: https://phabricator.services.mozilla.com/D23250

--HG--
extra : moz-landing-system : lando
2019-03-14 00:51:30 +00:00
James Willcox
082b6eb1e7 Bug 1524992 - Treat command line URIs as external r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20890

--HG--
extra : moz-landing-system : lando
2019-03-12 20:20:58 +00:00
Mark Striemer
020a5bff50 Bug 1520068 - Handle more system shortcuts in add-on shortcuts ui r=dao
This centralizes the checks for system shortcuts into ShortcutUtils.jsm, so
they can be checked for in the add-on shortcut assignment UI. It also
introduces a mechanism for skipping the system event handler if it is already
being handled by the shortcuts UI.

Differential Revision: https://phabricator.services.mozilla.com/D17586

--HG--
extra : moz-landing-system : lando
2019-03-08 18:32:20 +00:00
arthur.iakab
85ad02d41a Merge inbound to mozilla-central a=merge 2019-03-07 23:58:42 +02:00
Dão Gottwald
cf91e86d2c Bug 1532719 - Reset _pinnedUnscrollable flag when unpinning a tab. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D22474

--HG--
extra : moz-landing-system : lando
2019-03-07 11:47:26 +00:00
Nikki S
58536c524e 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

--HG--
extra : moz-landing-system : lando
2019-03-06 14:09:31 +00:00
Doug Thayer
61cadb5fd3 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

--HG--
extra : moz-landing-system : lando
2019-03-06 11:51:55 +00:00
Brindusan Cristian
252f6553c6 Backed out changeset 6890499eb5d1 (bug 1484071) for ESlint failure at tabbrowser.js. CLOSED TREE 2019-03-06 01:42:21 +02:00
Nikki S
30f6fc4eeb 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

--HG--
extra : moz-landing-system : lando
2019-03-05 22:11:37 +00:00
Andreea Pavel
be960187e1 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
4440844f6a Bug 1524992 - Treat command line URIs as external r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20890

--HG--
extra : moz-landing-system : lando
2019-03-04 22:06:30 +00:00
Doug Thayer
9790c57933 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

--HG--
extra : moz-landing-system : lando
2019-03-01 18:28:53 +00:00
Dão Gottwald
fb03a6d522 Backed out changeset 59c8fffe9e41 (bug 1442694) 2019-03-07 11:41:29 +01:00
Johann Hofmann
b4d5efa6f7 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

--HG--
extra : moz-landing-system : lando
2019-03-01 15:24:19 +00:00
Oriol Brufau
c153629d72 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

--HG--
extra : source : 51ffa59f14882531251a889b57ed73530c8997ac
extra : histedit_source : 6cf345b42f48b404c9ec2cdef9a7279012e1a0f1
2019-02-28 23:21:40 +00:00
Narcis Beleuzu
1bcc890eb4 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
ceaa13b7b4 Bug 1521923 - Preserve lazyness of the first inactive tab moved into a new window. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D20100

--HG--
extra : moz-landing-system : lando
2019-02-28 23:21:40 +00:00
Gabriele Svelto
0443979a06 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

--HG--
extra : moz-landing-system : lando
2019-02-26 05:35:09 +00:00
Coroiu Cristina
5a9b738453 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
867ec83b7d Bug 1524992 - Treat command line URIs as external r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20890

--HG--
extra : moz-landing-system : lando
2019-02-27 15:57:44 +00:00
Daniel Varga
f150d529f8 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)

--HG--
extra : amend_source : 4ae2d7cb138f24453c4d19098f5e1a1f400f9fea
2019-02-27 17:19:45 +02:00
James Willcox
aa8999a525 Bug 1524992 - Treat command line URIs as external r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20890

--HG--
extra : moz-landing-system : lando
2019-02-26 19:23:43 +00:00
shindli
08b7f8eebb 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
978e0344ff 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

--HG--
extra : moz-landing-system : lando
2019-02-25 19:19:07 +00:00
Christoph Kerschbaumer
8124d3a763 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
08be3dab62 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
cf14643de4 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261

--HG--
extra : moz-landing-system : lando
2019-02-19 02:34:09 +00:00
Thomas Nguyen
85ce5ab061 Bug 1517703 - Part 2 - Use ReferrerInfo in loadURIOptions from js r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17922

--HG--
extra : moz-landing-system : lando
2019-02-12 19:35:24 +00:00
Mike Conley
5e922d0885 Bug 1523648 - Remove BUSY_TAB_ABANDONED probe and tests. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D19165

--HG--
extra : moz-landing-system : lando
2019-02-08 19:41:42 +00:00
Alastor Wu
6126d4cc9f 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

--HG--
extra : moz-landing-system : lando
2019-02-07 18:01:13 +00:00
Johann Hofmann
d59d079e47 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

--HG--
extra : moz-landing-system : lando
2019-02-03 19:42:19 +00:00
Oriol Brufau
35e59fd61b Bug 1524254 - Rename addTab's title parameter to lazyTabTitle. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D18320

--HG--
extra : moz-landing-system : lando
2019-02-01 10:33:19 +00:00
Mike Conley
1b6897dcc1 Bug 1522546 - Make tabbrowser access browser remoteType property rather than the attribute. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18223

--HG--
extra : moz-landing-system : lando
2019-01-31 19:54:07 +00:00
Oriol Brufau
8f1a936f96 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

--HG--
extra : moz-landing-system : lando
2019-01-31 00:33:39 +00:00
Myk Melez
25349d2601 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

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Jared Wein
bbe407fb99 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

--HG--
extra : moz-landing-system : lando
2019-01-30 13:36:25 +00:00