Commit graph

21478 commits

Author SHA1 Message Date
Gijs Kruitbosch
ca77a3ac16 Bug 1529577 - stop tracking window minimization in BrowserWindowTracker, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D19186

--HG--
extra : rebase_source : 16e601fa7ce3b2381c245417b00a7f204b0a7923
2019-02-08 16:34:41 +00:00
Tom Ritter
fe4320451c Bug 1407366 - Part 5: Reset the Zoom in browser_bug1369357_site_specific_zoom_level.js r=johann
This test changes the browser zoom level; but does not reset it; causing
subsequant tests to be run with a zoom. This may cause them to fail.

--HG--
extra : histedit_source : b6ce7325702f2cd452524c666782a4bccbce1b1d
2019-02-06 12:59:26 -06:00
Tim Huang
de4df544dc Bug 1407366 - Part 4: Adding a test case for testing letterboxing. r=johannh
This patch adds a test for ensuring the letterboxing works as we expect.
It will open a tab and resize its window into several different sizes
and to see if the margins are correctly apply. And it will also check
that no margin should apply to a tab with chrome privilege.

--HG--
extra : histedit_source : acefd2e6d62be7f9e4247206a7b0d1cd190dc00f
2019-02-03 14:20:18 -06:00
Tom Ritter
48a4c411fb Bug 1407366 - Part 3: Implementing the window letterboxing. r=johannh
This patch implements the window letterboxing. The implementation
is based on adding margins around the browser element to round the
content viewport size. Whenever the browser content is resized, the
RFPHelper will adjust margins around it. But it won't add any margins
for an empty browser or a browser loads a content with the system
principal.

The letterboxing is hidden behind a hidden pref
"privacy.resistFingerprinting.letterboxing." By default, it will use
stepping size 200x100 to round content window. And we can customize
the set of dimensions used for deciding the size of the rounded
content viewport by the pref
"privacy.resistFingerprinting.letterboxing.dimensions". This pref
should be formated as 'width1xheight1, width2xheight2, ...'. We will
find the dimensions which can fit into the real content size and have
the smallest margins to be the rounded content viewport size. For example
, given the set "400x200, 500x300, 800x500" and the real content size
"600x300", we would round the content size into 500x300.

--HG--
extra : histedit_source : 4d4ced7e899f4f3cae25e11d30cc24a4f1b9e0e7
2019-02-20 11:24:16 -06:00
Tom Ritter
8340e568c3 Bug 1407366 - Part 1: Rename the LanguagePrompt.jsm to RFPHelper.jsm and changing the place of doing uninitialization. r=johannh
This patch changes the name of LanguagePrompt.jsm to RFPHelper.jsm.
The RFPHelper is going to not only be responsible for the language

--HG--
rename : toolkit/components/resistfingerprinting/LanguagePrompt.jsm => toolkit/components/resistfingerprinting/RFPHelper.jsm
extra : histedit_source : 37b437de2c52b37b07da11cabdbcb9f2749c0a65
2019-02-20 11:22:19 -06:00
Mike de Boer
5e5682bbd6 Bug 1528203 - Searchbar popups' updateHeader was using the wrong method signature to get the default search engine. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D20531

--HG--
extra : moz-landing-system : lando
2019-02-20 20:25:55 +00:00
Orangelynx
d4e1c8f212 Bug 384278 - Added additional state variable to store window state before window minimization. r=mikedeboer
Current window state in the sessionstore system includes `sizeMode` which can be "normal", "minimized", "maximized". However, the OS also remembers whether the window was "normal" or "maximized" before minimization to restore it appropriately. With this fix, sessionstore does likewise.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 09:03:09 +00:00
Dorel Luca
6e4967f76e Backed out changeset 74922ea29d44 (bug 1490671) for browser-chrome failures in browser/components/preferences/in-content/tests/browser_sync_pairing.js 2019-02-20 02:43:16 +02:00
Drew Willcoxon
86ca1f263d Bug 1528430 - When both a suggestion result and a one-off button are selected, search with the suggestion, not what the user typed. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20044

--HG--
extra : moz-landing-system : lando
2019-02-19 20:34:43 +00:00
Erica Wright
1910b868dd Bug 1522919 - Add basic telemetry for startup and control panel events for cryptomining and fingerprinting. r=johannh on a CLOSED TREE
Include a boolean reporting whether these prefs are enabled on startup. inlcude extra information when user interacts with the control panel reporting if anything is being blocked.

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

--HG--
extra : source : 8ae2da51010e64e1c0a970acb0d2182796635f82
extra : histedit_source : d18fdb19d6dc58e83b32b50e1a468f6558842627
2019-02-19 19:22:38 +00:00
Coroiu Cristina
dee1f146c8 Backed out changeset f4094fd9e1df (bug 1517528) for mochitest failures on a CLOSED TREE 2019-02-19 22:25:55 +02:00
Coroiu Cristina
33a769d893 Backed out changeset 8ae2da51010e (bug 1522919) for mochitest failures on a CLOSED TREE 2019-02-19 22:24:02 +02:00
Erica Wright
9a54423518 Bug 1522919 - Add basic telemetry for startup and control panel events for cryptomining and fingerprinting. r=johannh
Include a boolean reporting whether these prefs are enabled on startup. inlcude extra information when user interacts with the control panel reporting if anything is being blocked.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 19:22:38 +00:00
Nicholas Cowles
6cab4dbf63 Bug 1517528 - Capstone: convert about:privatebrowsing using gandalf's conversion script, r=jaws,zbraniecki,flod
Differential Revision: https://phabricator.services.mozilla.com/D19250

--HG--
extra : moz-landing-system : lando
2019-02-19 19:17:14 +00:00
Shane Caraveo
fff2e14c0b Bug 1525125 block newtab and homepage overrides in private windows r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18730

--HG--
extra : moz-landing-system : lando
2019-02-19 19:19:44 +00:00
Edouard Oger
569d0cc5a7 Bug 1490671 - Add FxA device pairing. r=markh,rfkelly,vladikoff,flod
Differential Revision: https://phabricator.services.mozilla.com/D6966

--HG--
extra : moz-landing-system : lando
2019-02-19 19:20:12 +00:00
Michael Kaply
b7f71a2bef Bug 1525340 - Disable CFR as part of XPI and shield policies. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D19013

--HG--
extra : moz-landing-system : lando
2019-02-19 18:01:42 +00:00
Jonas Allmann
fbe8b0661c Bug 1523813, Remove new Function from utilityOverlay.js, r=Gijs
Replaced new Function() by CustomEvent carrying original click event as sourceEvent.
Adapted all oncommand listeners to use event.sourceEvent instead of event.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 16:20:02 +00: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
Marco Bonardo
c0dcb8818d Bug 1526069 - Port drag and drop code to QuantumBar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20194

--HG--
extra : moz-landing-system : lando
2019-02-19 09:02:03 +00:00
Brindusan Cristian
0709795ffe Merge inbound to mozilla-central. a=merge 2019-02-19 06:38:36 +02:00
Ivan Yung
0f5eab5423 Bug 1497934 - When about:policies#active is empty, show a message. r=felipe,flod 2019-02-18 19:16:16 -03:00
Brindusan Cristian
d9c5beb04d Merge inbound to mozilla-central. a=merge 2019-02-18 23:45:23 +02:00
Tim Nguyen
ea9eb4d4cd Bug 1526379 - Use <vbox> instead of <box> to make the children stretch horizontally in sanitize dialogs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D20089

--HG--
extra : moz-landing-system : lando
2019-02-18 16:13:03 +00:00
Mark Banner
baba946823 Bug 1522495 - Port tests in browser/components/search/ to QuantumBar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D20122

--HG--
extra : moz-landing-system : lando
2019-02-18 16:08:42 +00:00
Mark Banner
94fd20950e Bug 1528760 - Fix issues in the setDesktopBackground dialog following the ChromeUtils.import global changes. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D20180

--HG--
extra : moz-landing-system : lando
2019-02-18 15:53:45 +00:00
Mark Banner
5f9fbe5d58 Bug 1522516 - Port browser_privatebrowsing_about.js to QuantumBar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20128

--HG--
extra : moz-landing-system : lando
2019-02-18 14:45:50 +00:00
Cosmin Sabou
d748f47c8f Merge mozilla-central to autoland. 2019-02-18 17:58:54 +02:00
Sylvestre Ledru
12c3ce7b33 Bug 1528486 - Fix the indentation to match the nesting level r=mak
Differential Revision: https://phabricator.services.mozilla.com/D20064

--HG--
extra : moz-landing-system : lando
2019-02-18 14:55:34 +00:00
Paolo Amadini
a8a53fe9a5 Bug 1527197 - Fix background images in RTL mode in the new "about:config" page. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D20135

--HG--
extra : rebase_source : 598e0477056700d61054fee976050abee0c0edd0
2019-02-18 10:21:28 +00:00
Drew Willcoxon
031480c01b Bug 1525909 - Autofill only when input.selectionEnd is equal to input.value.length. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D20001

--HG--
extra : moz-landing-system : lando
2019-02-19 00:03:39 +00:00
Drew Willcoxon
10ba5aeb57 Bug 1527947 - Update search results when the selected one-off button changes. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20047

--HG--
extra : moz-landing-system : lando
2019-02-18 22:32:05 +00:00
Luca Greco
739c8ea697 Bug 1484789 - Ensure document flushed before triggering context menu in a browserAction popup test. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D19967

--HG--
extra : moz-landing-system : lando
2019-02-15 18:10:11 +00:00
Dão Gottwald
05d4b6962a Bug 1521494 - Close the results view if something is typed, then deleted. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20090

--HG--
extra : moz-landing-system : lando
2019-02-17 20:26:51 +00:00
Drew Willcoxon
3b52006a24 Bug 1525487 - When a search alias offer result is picked, fill it in the input and don't visit its site. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20084

--HG--
extra : moz-landing-system : lando
2019-02-17 18:12:16 +00:00
Drew Willcoxon
00c5812394 Bug 1499648 - Make search alias (@ token alias) formatting work with UrlbarView. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20055

--HG--
extra : moz-landing-system : lando
2019-02-17 18:12:14 +00:00
Drew Willcoxon
6cdccfc5e8 Bug 1527934 - Hide the one-off search buttons when an "@engine" search alias is entered. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20052

--HG--
extra : moz-landing-system : lando
2019-02-17 18:12:01 +00:00
Mark Banner
0df151fa88 Bug 1500476 - Re-implement FX_URLBAR_SELECTED_RESULT_METHOD on the new Quantumbar. r=dao
This doesn't enable the rightClick option for telemetry reporting as that is complicated to support, see bug 1528250.

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

--HG--
extra : moz-landing-system : lando
2019-02-17 06:57:58 +00:00
Coroiu Cristina
e6520f0a4d Merge inbound to mozilla-central a=merge 2019-02-16 11:36:46 +02:00
k88hudson
4383f68973 Bug 1528410 - Add rotation, fine-grained impressions and discovery stream style fixes to Activity Stream r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D20033

--HG--
extra : moz-landing-system : lando
2019-02-16 01:03:12 +00:00
Brian Grinstead
033239db58 Bug 1527680 - Add MozElement inheritedAttributes helper for automatically inheriting attributes based on a map of selectors to attributes r=paolo
This allows elements to skip explicitly declaring `observedAttributes` and then imperatively
calling `inheritAttribute` on the appropriate child nodes. For simple cases this means less
boilerplate and moving this logic into the base class.

This is an opt-in feature, so more complex cases can continue to manually implement inheriting
behavior as before.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 23:10:18 +00:00
Kyle Machulis
9fb68b2ccf Bug 1524683 - Remove nsIFrameLoaderOwner from tests; r=nika
Any time we QI to nsIFrameLoaderOwner in tests, we're really accessing
a MozFrameLoader. We don't need to be doing that anymore.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 22:20:49 +00:00
Valentin Gosu
a5cc5b2a87 Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed

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

--HG--
rename : toolkit/components/remotebrowserutils/tests/browser/browser_httpResponseProcessSelection.js => toolkit/components/remotebrowserutils/tests/browser/browser_httpCrossOriginOpenerPolicy.js
extra : moz-landing-system : lando
2019-02-15 22:02:47 +00:00
Marco Bonardo
a5fe67550e Bug 1521366 - Searching for a space in the Quantum Bar causes an infinite loop. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D19979

--HG--
extra : moz-landing-system : lando
2019-02-15 20:55:30 +00:00
Nika Layzell
15e8803fb2 Bug 1522637 - Part 6: Perform process switches separtely from on-examine-response, r=valentin
Issues were occuring where a process swap would be decided upon during
on-examine-response, but before the swap could be handled by the
channel, the channel was redirected.

This new code takes the mildly hacky approach of simply using a separate
observer notification which is fired at the correct time. A better
solution may be to use a dedicated service for responding to these
events, however that was not implemented for this initial patch.

Depends on D18606

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:17 +00:00
Nika Layzell
3a5872a2f0 Bug 1522637 - Part 4: Support browsers in globals without gMultiProcessBrowser, r=qdot
Depends on D18604

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:13 +00:00
Nika Layzell
947aaf1432 Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
Depends on D18603

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:11 +00:00
Nika Layzell
feecd3ed43 Bug 1522637 - Part 2: Include BrowsingContextID in LoadInfo for subdocument loads, r=valentin
Depends on D18602

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:04 +00:00
Cosmin Sabou
a4b19fcd61 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 20:39:45 +02:00
Cosmin Sabou
fab429586f Merge autoland to mozilla-central. a=merge 2019-02-15 20:36:32 +02:00