Граф коммитов

3527 Коммитов

Автор SHA1 Сообщение Дата
Neil Deakin 4e865e037b Bug 1628053, don't get the root window when adding the unload listener, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D71453
2020-05-11 10:33:28 +00:00
Jared Wein 846382dc54 Bug 1633090 - Cache the result of the empty password checks. r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D72426
2020-05-08 18:32:45 +00:00
Dan Glastonbury 7699520bf5 Bug 1624550 - P4: Cleanup APIs for setting BrowsingContext::UseGlobalHistory. r=farre
This value is determined in Parent process and passed down to nsDocShell. Delete
the messages to pass the setting down and set it on the BrowsingContext in the
Parent process.

Refactor the code that determines to opt-out of using global history. Code
inspection determines that windowless browsing contexts want to opt-out as well
as any frame with `disableglobalhistory` attribute set on it.

Differential Revision: https://phabricator.services.mozilla.com/D72279
2020-05-08 03:28:44 +00:00
Florian Quèze fa2f59b3f7 Bug 1630982 - Terminate browser-chrome mochitests with an exit(0), r=gbrown,dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D71336
2020-05-07 17:34:30 +00:00
Dorel Luca d9c6949cf6 Backed out changeset b77388326b1b (bug 1630982) for causing leaks on mochitest jobs. CLOSED TREE 2020-05-07 13:49:20 +03:00
Florian Quèze c1fe95dc03 Bug 1630982 - Terminate browser-chrome mochitests with an exit(0), r=gbrown,dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D71336
2020-05-07 09:25:57 +00:00
Dale Harvey 3fa67b082d Bug 1627538 - Extract getRegion into its own jsm r=mikedeboer,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D71165
2020-05-06 12:07:53 +00:00
Bogdan Tara 86530eabd1 Backed out changeset 049df3990b16 (bug 1627538) for test_autocomplete_basic_form_formActionOrigin.html failures CLOSED TREE 2020-05-06 22:09:46 +03:00
Dale Harvey ee1b1349f7 Bug 1627538 - Extract getRegion into its own jsm r=mikedeboer,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D71165
2020-05-06 12:07:53 +00:00
Ian Moody 011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Michael Cooper 8e29cbfa10 Bug 1630420 - Check last build from appinfo instead of tracking it manually in Normandy r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D72024
2020-05-04 18:27:40 +00:00
Emilio Cobos Álvarez 164acdc0b9 Bug 1634218 - Remove the zoom actors. r=nika
After the recent simplifications to the zoom code, they only take care
of forwarding the enlarge / decrease zoom messages.

We can do that via PBrowser instead, and get rid of the actors. We can
also remove ZoomChangeUsingMouseWheel. Zooming with the mouse wheel will
end up in a *ZoomChange event anyways, and the only consumer already
listened for them.

Differential Revision: https://phabricator.services.mozilla.com/D73175
2020-04-30 16:35:35 +00:00
Emilio Cobos Álvarez e0c490b2cd Bug 1633488 - Fire zoom change events directly in the parent process instead of roundabouting through the child process. r=nika
This ensures that chrome code can always react to the state the browsing
context the parent process observes properly. It's also simpler.

We fix one test that was relying on the event being fired at the
browser. For the same reason as the previous patch in this bug, we can
use resize events instead.

Differential Revision: https://phabricator.services.mozilla.com/D72712
2020-04-30 01:21:20 +00:00
Emilio Cobos Álvarez 9a9ab94bc2 Bug 1578008 - Remove various hacks to restore resolution only after a full zoom change. r=bradwerth
This is no longer needed now that MVM doesn't restore the zoom.

Differential Revision: https://phabricator.services.mozilla.com/D72551
2020-04-30 01:21:26 +00:00
Dorel Luca 8e7e7136a3 Backed out 4 changesets (bug 1633938, bug 1578008, bug 1633488) for Devtool failures in browser/base/content/test/static/browser_parsable_css.js. CLOSED TREE
Backed out changeset e690c4cf8848 (bug 1633938)
Backed out changeset c999ecad3be8 (bug 1633488)
Backed out changeset abbc47ce1451 (bug 1578008)
Backed out changeset 9e6925ea790f (bug 1578008)
2020-04-30 04:13:42 +03:00
Neil Deakin 6b57ac9c48 Bug 1614749, convert about:tabcrashed to JSWindowActor-based remote page manager, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D71026
2020-04-30 00:50:10 +00:00
Neil Deakin f22197fbf1 Bug 1614747, convert about:plugins to JSWindowActor-based remote page manager, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D71025
2020-04-30 00:14:56 +00:00
Neil Deakin 653fff4e36 Bug 1614744, convert about:privatebrowsing to JSWindowActor-based remote page manager, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71023
2020-04-29 23:19:15 +00:00
Neil Deakin e87cb94596 Bug 1614743, convert about:protections to the new JSWindowActor-based remote page manager and remove now unused functions from the old RPM, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71022
2020-04-29 23:12:34 +00:00
Emilio Cobos Álvarez f071fe4b8e Bug 1633488 - Fire zoom change events directly in the parent process instead of roundabouting through the child process. r=nika
This ensures that chrome code can always react to the state the browsing
context the parent process observes properly. It's also simpler.

We fix one test that was relying on the event being fired at the
browser. For the same reason as the previous patch in this bug, we can
use resize events instead.

Differential Revision: https://phabricator.services.mozilla.com/D72712
2020-04-29 21:44:13 +00:00
Emilio Cobos Álvarez 0169492da2 Bug 1578008 - Remove various hacks to restore resolution only after a full zoom change. r=bradwerth
This is no longer needed now that MVM doesn't restore the zoom.

Differential Revision: https://phabricator.services.mozilla.com/D72551
2020-04-29 21:44:01 +00:00
Lina Cambridge 91aacc3dd5 Bug 1633750 - Only build the extension storage Rust-C++ glue if `MOZ_NEW_WEBEXT_STORAGE` is enabled. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D72965
2020-04-29 04:41:31 +00:00
Matt Woodrow 9bc5c5b884 Bug 1633310 - Don't do pre-load shouldLoadURI process switches for leaving about:newtab in the web process. r=nika,mconley
Differential Revision: https://phabricator.services.mozilla.com/D72583
2020-04-28 19:45:43 +00:00
Andreea Pavel eb6bcc9417 Backed out changeset c1a36d34c2cc (bug 1017237) for failing /test_frame-utils-01.js on a CLOSED TREE 2020-04-27 20:12:08 +03:00
aarushivij dbb970b6c9 Bug 1017237 - Ensure that Sqlite's AsyncShutdown phase displays the name of opened databases in case of crash r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D71398
2020-04-27 15:29:31 +00:00
Emilio Cobos Álvarez 8cfb840466 Bug 1627643 - Allow to find and display selection native anonymous content. r=jfkthame
The check for generated content in nsTextFrame is to the best of my
knowledge useless: We don't display generated content as selected when
the parent is selected anyhow, and the offsets would be wrong.

We special-case text inputs and textarea because of ::placeholder, see
the comment, but otherwise there's no reason you shouldn't be able to
find-in-page generated content / fallback / etc.

I added ForceBreakBetween so as to not create ranges that span across
shadow / anonymous content boundaries. They don't work anyway (see the
TODO in test_find.html), so it seems better to make that explicit until
we properly handle them (bug 1590379).

I added a pref just to be safe since this is long-standing behavior, but
I think it should be uncontroversial.

Differential Revision: https://phabricator.services.mozilla.com/D72447
2020-04-27 13:56:04 +00:00
Johann Hofmann 4540e975f8 Bug 1629826 - Re-enable event telemetry probes for certificate error pages. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D72514
2020-04-25 18:12:32 +00:00
Jared Wein 39844dcb4e Bug 1631879 - Update the name of the osKeyStore log preference now that it has moved to toolkit. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D72427
2020-04-25 02:52:05 +00:00
Paul Bone 4e341bce84 Bug 1603007 - Remove allowLinkedWebInFileUriProcess r=nika
This patch removes the allowLinkedWebInFileUriProcess pref, but one
code-path is kept because when DocumentChannel is disabled a HTTP POST load
from a file:// page would loose the postData, so that case keeps the FILE
remote type.

Differential Revision: https://phabricator.services.mozilla.com/D69923
2020-04-23 17:15:09 +00:00
Mark Banner a6640ce0a3 Bug 1629946 - Add region and distribution ID information onto about:support. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71831
2020-04-22 17:16:12 +00:00
Dorel Luca ab5670f475 Backed out changeset 155de7837de7 (bug 1629946) for Browser-chrome failures in tests/browser/browser_Troubleshoot.js. CLOSED TREE 2020-04-22 19:05:49 +03:00
Mark Banner f3ac58690e Bug 1629946 - Add region and distribution ID information onto about:support. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71831
2020-04-22 13:28:44 +00:00
pbz c74197d218 Bug 1271842 - nsIPromptService: Added async prompt methods. r=johannh
Added an async method for every nsIPromptService prompt method.
These async methods return a Promise which resolves with an nsIPropertyBag
when the prompt is closed.

Differential Revision: https://phabricator.services.mozilla.com/D67505
2020-04-22 10:27:29 +00:00
Nika Layzell df943db304 Bug 1625513 - Part 4: Don't require being in tabbrowser for subframe process switches, r=mattwoodrow,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D71396
2020-04-21 22:33:14 +00:00
Cosmin Sabou 190731f374 Backed out 5 changesets (bug 1625513) for bc failures on browser_identity_UI.js. CLOSED TREE
Backed out changeset 88ac5d853e38 (bug 1625513)
Backed out changeset 8ac6db819435 (bug 1625513)
Backed out changeset cc19c74910d1 (bug 1625513)
Backed out changeset 8c235f0f967c (bug 1625513)
Backed out changeset 24a646225c68 (bug 1625513)
2020-04-22 00:17:08 +03:00
Nika Layzell 2447bb3983 Bug 1625513 - Part 4: Don't require being in tabbrowser for subframe process switches, r=mattwoodrow,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D71396
2020-04-21 18:33:52 +00:00
Cosmin Sabou 2dfd2276b9 Backed out 3 changesets (bug 1622836, bug 1271842) for mochitest failures on test_prompt.html. CLOSED TREE
Backed out changeset cdedf7ddec47 (bug 1622836)
Backed out changeset 7262ae6d42ec (bug 1271842)
Backed out changeset 091a64a38136 (bug 1271842)
2020-04-21 22:06:48 +03:00
pbz 44f02bbfec Bug 1271842 - nsIPromptService: Added async prompt methods. r=johannh
Added an async method for every nsIPromptService prompt method.
These async methods return a Promise which resolves with an nsIPropertyBag
when the prompt is closed.

Differential Revision: https://phabricator.services.mozilla.com/D67505
2020-04-21 16:52:58 +00:00
Gijs Kruitbosch 1c0a1c9f3e Bug 1631358 - remove traces of CPOWs from browser/, testing/ and toolkit/, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D71510
2020-04-21 14:05:35 +00:00
Dão Gottwald 7ca6dd5cb8 Bug 1628601 - Stop using lwt-popup-darktext / lwt-popup-brighttext for urlbar results. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D71764
2020-04-21 14:46:15 +00:00
Noemi Erli 6ce4e6b1e0 Backed out 4 changesets (bug 1625513) for causing assertion in WindowGlobalChild.cpp
Backed out changeset 0366bbc9e0f7 (bug 1625513)
Backed out changeset 3554e0be2e66 (bug 1625513)
Backed out changeset ad09a911bc43 (bug 1625513)
Backed out changeset f2dbff5d584f (bug 1625513)
2020-04-20 22:28:20 +03:00
Nika Layzell 23b374de36 Bug 1625513 - Part 4: Don't require being in tabbrowser for subframe process switches, r=mattwoodrow,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D71396
2020-04-20 17:00:21 +00:00
Marco Bonardo 45a8a38b0b Bug 1080682 - Use the Public Suffix List to distinguish foo.bar searches in URIFixup (and consequently the Address Bar). r=Gijs,dao
Use the PSL list to evaluate whether user typed strings in urlbar are valid URLs.
Cleanup the URIFixupInfo.fixupChangedProtocol property to be set appropriately.
Auto-correct the most common suffix typos for com, net, org.

Stop using URIFixup to trim urls when the urlbar value is set, instead always trim,
then untrim on focus if the trimmed string would cause, on navigation, a search
instead of a visit. This saves us from doing the URIfixup work on page load and
tab switch, running it only when strictly necessary.

Fix the "Did you mean to go to" prompt to show a protocol, avoiding the
confusing (but funny) "did you mean to go to 'space'" prompts.

Differential Revision: https://phabricator.services.mozilla.com/D68796
2020-04-20 12:39:08 +00:00
Paul Bone ce060c70b4 Bug 1629441 - Defer to DocumentChannel in shouldLoadURLInThisProcess r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D71331
2020-04-20 07:34:11 +00:00
Mihai Alexandru Michis 720a2a68e6 Backed out changeset ebea9991db0e (bug 1629441) for causing lint failures in browser_form_post_from_file_to_http.js
CLOSED TREE
2020-04-20 08:12:40 +03:00
Paul Bone 6262bc6b58 Bug 1629441 - Defer to DocumentChannel in shouldLoadURLInThisProcess r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D71331
2020-04-20 04:43:06 +00:00
Neil Deakin 286aa3c732 Bug 1614750, support actors that can be enabled and disabled using a pref generally when registering them, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D67533
2020-04-18 12:14:38 +00:00
Coroiu Cristina 43be71277d Backed out 2 changesets (bug 1625500) for multiple failures on a CLOSED TREE
Backed out changeset 7d80233bcfcd (bug 1625500)
Backed out changeset 0a35b13dfcde (bug 1625500)
2020-04-17 15:36:05 +03:00
Gijs Kruitbosch cc39a339a0 Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D68614
2020-04-17 11:41:49 +00:00
Jared Wein 65a2ade1e3 Bug 1623745 - Add a value to the pwmgr.reauthenticated telemetry event to specify if the user was able to authenticate without a password. r=MattN,spohl
Differential Revision: https://phabricator.services.mozilla.com/D70136
2020-04-16 21:33:24 +00:00