Commit Graph

2898 Commits

Author SHA1 Message Date
Nihanth Subramanya
c706261f70 Bug 1547015 - ClearDataService: Implement CertCleaner.deleteAll. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32916

--HG--
extra : moz-landing-system : lando
2019-06-03 21:30:32 +00:00
Melvin George
8a32278bc9 Bug 1553236 - Change tests using Services.search.addEngineWithDetails() to use the object parameter form. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D32565

--HG--
extra : moz-landing-system : lando
2019-06-03 09:55:15 +00:00
Dale Harvey
93ac2ff9fa Bug 1538602 - Improve logging during block autoplay tests. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32546

--HG--
extra : moz-landing-system : lando
2019-05-31 18:38:37 +00:00
Andrea Marchesini
b1b122fb20 Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33031

--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Johann Hofmann
de6eaee5b4 Bug 1554167 - Remove pending shutdown sanitization immediately after shutdown sanitization finishes. r=mak,baku
In https://hg.mozilla.org/mozilla-central/rev/25397a6f8c4f#l1.35 we added an early return to
the SanitizeOnShutdown function to avoid cleaning principals by permission if the user had
set their preferences to clear all storage on shutdown anyway. This unfortunately ended
the function execution before it would call `removePendingSanitization("shutdown");` later on
and thus remove the pending shutdown sanitization (which, in fact, had completed successfully earlier).

The result is that the shutdown sanitization would be left dangling and run again on next startup,
where, for reasons I don't fully understand, it would race and conflict with loading the home page,
if that home page was from web content.

The solution is to remove the pending shutdown sanitization immediately after the sanitization is done.

As far as I can see there was never really a point in having it happen after session principal
cleanup finished, since in case of a crash it would not run the principal cleanup again next startup,
just the shutdown cleanup.

For good measure I also moved the new tab container sanitization to happen earlier in this function,
to prevent it from dangling as well.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 15:39:39 +00:00
Liang-Heng Chen
4c57b29505 Bug 1330467 - part 11. Use principal for permissions in webrtc UI; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19932

--HG--
extra : moz-landing-system : lando
2019-05-26 11:23:13 +00:00
Liang-Heng Chen
4ad2af201e Bug 1330467 - part 5. Access permissions by principal in PermissionUI.jsm; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19926

--HG--
extra : moz-landing-system : lando
2019-05-17 13:23:08 +00:00
Liang-Heng Chen
88d2887376 Bug 1330467 - part 2. Add SitePermissions APIs functions to accept principal; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19923

--HG--
extra : moz-landing-system : lando
2019-05-17 13:23:13 +00:00
Daniel Varga
4cbc287f63 Merge mozilla-inbound to mozilla-central. a=merge 2019-05-23 18:54:21 +03:00
meandave
39ca462747 Bug 1528459 - Show PiP Icon in parent tab of media. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D29023

--HG--
extra : moz-landing-system : lando
2019-05-22 18:44:28 +00:00
Cosmin Sabou
ce81aa750c Backed out 7 changesets (bug 1519577) for mochitest failures. CLOSED TREE
Backed out changeset 5192370c4f79 (bug 1519577)
Backed out changeset 2999bbc0422b (bug 1519577)
Backed out changeset bcedf1e9b09c (bug 1519577)
Backed out changeset 293af339be51 (bug 1519577)
Backed out changeset 9f311461ad1e (bug 1519577)
Backed out changeset cf4e91d423b4 (bug 1519577)
Backed out changeset 4f53ad1e3674 (bug 1519577)
2019-05-22 02:20:08 +03:00
Andrew Swan
5d152fbda9 Bug 1519577 Mark badged page action toolbarbuttons before inserting r=Gijs
The "add search engine" page action wants to use badged toolbarbuttons,
but it does this by adding the "badged-button" class (which changes the
XBL binding) after the button has already been created and added to
the DOM.  To avoid having to switch between non-badged and badged buttons
when toolbarbutton is converted to custom elements, add a property to
page actions so that the badged status can be determined when the element
is created.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 19:26:23 +00:00
Mihai Alexandru Michis
97df17e745 Backed out 11 changesets (bug 1330467) as requested by xeonchen on IRC. CLOSED TREE
Backed out changeset 0229d5353d50 (bug 1330467)
Backed out changeset 2f2308fe5747 (bug 1330467)
Backed out changeset 2cd09bae2bdf (bug 1330467)
Backed out changeset 2648f5bb1804 (bug 1330467)
Backed out changeset 4686eebd8962 (bug 1330467)
Backed out changeset b43fa07d5756 (bug 1330467)
Backed out changeset 35d96a4ff659 (bug 1330467)
Backed out changeset 6ac44130d2bb (bug 1330467)
Backed out changeset f939c61e051f (bug 1330467)
Backed out changeset 0ae215d91758 (bug 1330467)
Backed out changeset 1d48bdbb4035 (bug 1330467)
2019-05-17 16:19:06 +03:00
Paul Zuehlcke
225d93a362 Bug 1372033 - Added option to permanently disallow addon installation for a website. r=johannh,aswan
Differential Revision: https://phabricator.services.mozilla.com/D28867

--HG--
extra : moz-landing-system : lando
2019-05-16 10:20:07 +00:00
Liang-Heng Chen
478bd1f21c Bug 1330467 - part 11. Use principal for permissions in webrtc UI; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19932

--HG--
extra : moz-landing-system : lando
2019-05-08 15:28:01 +00:00
Liang-Heng Chen
602ef3ab3b Bug 1330467 - part 5. Access permissions by principal in PermissionUI.jsm; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19926

--HG--
extra : moz-landing-system : lando
2019-05-08 09:03:06 +00:00
Liang-Heng Chen
8e1e5c0a50 Bug 1330467 - part 2. Add SitePermissions APIs functions to accept principal; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19923

--HG--
extra : moz-landing-system : lando
2019-05-07 22:15:43 +00:00
Nika Layzell
6eb2084136 Bug 1544811 - Use web processes on a per-site basis for fission-enabled windows, r=mconley
This patch introduces a new type of content process, which has a dynamic name.
This type of content process is labeled as `webIsolated=${SITE_ORIGIN}` and is
used within fission-enabled windows.

To enable this, additional information about the fission status of the target
window must be passed into E10SUtils. This was done by updating every call site
manually to pass an extra boolean. A better solution perhaps should be used in
the future.

With this patch enabled, we now perform process switches, but only when
navigating to HTTP URIs. If we navigate to a non-HTTP URI in an iframe with
fission enabled, it will not behave correctly. This must be done in a
follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 21:31:57 +00:00
Andrew Swan
b14c25d6ab Bug 1519577 Mark badged page action toolbarbuttons before inserting r=Gijs
The "add search engine" page action wants to use badged toolbarbuttons,
but it does this by adding the "badged-button" class (which changes the
XBL binding) after the button has already been created and added to
the DOM.  To avoid having to switch between non-badged and badged buttons
when toolbarbutton is converted to custom elements, add a property to
page actions so that the badged status can be determined when the element
is created.

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

--HG--
extra : rebase_source : 335ba3c9ff73f3fa2f17ac113623e5572f7389c5
2019-05-14 20:39:38 -07:00
Ed Lee
f2e01bb6c1 Bug 1548388 - Add focus states, fill telemetry and bug fixes to Activity Stream r=r1cky
Differential Revision: https://phabricator.services.mozilla.com/D29577

--HG--
extra : moz-landing-system : lando
2019-05-01 22:55:10 +00:00
Mike Conley
bff8e0ac63 Bug 1533955 - Show some UI to indicate that a subframe has crashed. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D29238

--HG--
extra : moz-landing-system : lando
2019-05-01 20:05:24 +00:00
Ciure Andrei
d753cf6b80 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-24 07:30:32 +03:00
Ricky Rosario
682f9caf21 Bug 1537736 - Use HomePage.get()/set() more consistently r=nanj
MozReview-Commit-ID: 5PzW6ONmuKd

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

--HG--
extra : moz-landing-system : lando
2019-04-23 18:30:07 +00:00
Ryan Hunt
d6509bb237 Bug 1534395 - Rename TabChild to BrowserChild. r=nika
This commit renames TabChild to BrowserChild.

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

--HG--
rename : dom/base/InProcessTabChildMessageManager.cpp => dom/base/InProcessBrowserChildMessageManager.cpp
rename : dom/base/InProcessTabChildMessageManager.h => dom/base/InProcessBrowserChildMessageManager.h
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabChild.h => dom/ipc/BrowserChild.h
extra : rebase_source : e7fcfb845a971a2760e73d517e24da18ce2551b5
extra : histedit_source : d1991334ccb107fe56e478865f22fd97b041a317
2019-04-09 17:39:01 -05:00
Ryan Hunt
3675f2449b Bug 1534395 - Rename nsITabParent to nsIRemoteTab. r=nika,mconley
nsITabParent is exposed to frontend code and is generally used as a representation of a remote tab. We could just rename the interface to nsIBrowserParent and worry about it later, but I think it's better to rename the interface to nsIRemoteTab so that we can later work on splitting the interface away from the PBrowser protocol.

Note: Some frontend code refers to a TabParentId. This commit renames this to RemoteTabId. We need to figure out the purpose of TabId with fission.

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

--HG--
rename : dom/interfaces/base/nsITabParent.idl => dom/interfaces/base/nsIRemoteTab.idl
extra : rebase_source : 9d8a1790a7bb10195ad063644d1a93d63b2afb72
2019-04-09 15:59:37 -05:00
Johann Hofmann
6407007ebd Bug 1536454 - Part 4 - Add event telemetry for permission prompt studies. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D26945

--HG--
extra : moz-landing-system : lando
2019-04-18 13:43:29 +00:00
Johann Hofmann
cdd6d741fd Bug 1536454 - Part 1 - Add userHadInteractedWithDocument and documentDOMContentLoadedTimestamp attributes to nsIContentPermissionPrompt. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D26942

--HG--
extra : moz-landing-system : lando
2019-04-18 13:43:05 +00:00
Rob Wu
4a6f84f91d Bug 1544834 - Replace deprecated generics in test code r=evilpie
- `Array.map` becomes `Array.from`
- Array copying via `Array.slice` becomes `Array.from`.
- `Array.forEach` that did not rely on closures becomes `for`-`of` loops.
- Anything else: `Array.X` becomes `Array.prototype.X`.

Complex cases:

dom/bindings/test/TestInterfaceJS.js and
dom/bindings/test/test_exception_options_from_jsimplemented.html
use `Array.indexOf` to generate an error with a specific error message.
Switched to `Array.prototype.forEach` to generate the same error.

js/src/jit-test/tests/basic/exception-column-number.js
In this test `Array.indexOf()` is used to generate an error. Since the
exact message doesn't matter, I switched to `Array.from()`.

Intentionally not changed:

editor/libeditor/tests/browserscope/lib/richtext/richtext/js/range.js
Did not modify because this is 3rd-party code and the code uses
feature detection as a fall back when Array generics are not used.

testing/talos/talos/tests/dromaeo/lib/mootools.js
Did not modify because mootools adds the `Array.slice` method to the
`Array` object.

Not changed because they check the implementation of Array generics:
js/src/jit-test/tests/basic/arrayNatives.js
js/src/jit-test/tests/basic/bug563243.js
js/src/jit-test/tests/basic/bug618853.js
js/src/jit-test/tests/basic/bug830967.js
js/src/jit-test/tests/jaeger/recompile/bug656753.js
js/src/jit-test/tests/self-hosting/alternate-static-and-instance-array-extras.js
js/src/tests/non262/Array/generics.js
js/src/tests/non262/Array/regress-415540.js
js/src/tests/non262/extensions/regress-355497.js
js/src/tests/non262/extensions/typedarray-set-neutering.js

Depends on D27802

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:19 +00:00
Rob Wu
1af4c55c01 Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:17 +00:00
Mike de Boer
5d842c0354 Bug 1518545 - Remove the superfluous 'engine-current' Search Service observer topic in favour of 'engine-default'. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D27857

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js => toolkit/components/places/tests/unifiedcomplete/test_search_engine_default.js
extra : moz-landing-system : lando
2019-04-17 09:45:24 +00:00
Dale Harvey
ec391f3454 Bug 1544077 - Remove unused recordSearchURLTelemetry idl definition. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D27725

--HG--
extra : moz-landing-system : lando
2019-04-16 15:50:50 +00:00
Nihanth Subramanya
0f3e51207d Bug 1416163 - Implement EveryWindow.jsm to run arbitrary per-window code. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26947

--HG--
extra : moz-landing-system : lando
2019-04-16 16:17:25 +00:00
Drew Willcoxon
c1f323bbe7 Bug 1541929 - Don't autofill the first result in some cases. r=mak
We need to handle autofilling the first result separately from autofilling results in general (which happens in UrlbarInput.setValueFromResult), so add a new UrlbarInput.autofillFirstResult method. The controller calls it instead of setValueFromResult. I ported the logic from nsAutoCompleteController, as described in the bug.

Other changes are related to the new test for this.

As part of this work, I was interested in learning how awesomebar handles browser_autoFill_typed.js, so I added it to the legacy tests, with a small tweak in the test for awesomebar.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 13:15:30 +00:00
Dão Gottwald
e5ad6d5d8c Bug 1541910 - Use the chrome/content separator color for the urlbar results popup's top and bottom borders consistently across platforms and remove left and right borders. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D26192

--HG--
extra : moz-landing-system : lando
2019-04-11 11:47:18 +00:00
Shane Caraveo
7df3401a58 Bug 1532165 use prefs to support extension newtab and homepage on startup. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D25808

--HG--
extra : moz-landing-system : lando
2019-04-08 22:36:26 +00:00
Trushita
89435f2ad4 Bug 1494948: Removed FX_PREFERENCES_OPENED_VIA probe and origin parameter for openPreferences r=jaws,chutten
Removed FX_PREFERENCES_OPENED_VIA probe as it expired in 63.Origin parameter for openPreferences has also been removed.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 20:40:26 +00:00
Paul Zuehlcke
6fdf832adc Bug 1492668 - Store temporary site permissions by base domain to mitigate permission notification spam r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26704

--HG--
extra : rebase_source : 84cd5ee40755276ae9f6adeee9d6d06e65bb0607
extra : source : 1839a68aea956a9c69f305f1c6b493a20e72a2d7
2019-04-09 12:56:47 +00:00
Cosmin Sabou
b956e6c5d1 Backed out changeset 1839a68aea95 (bug 1492668) for assertion failures on GMPParent.cpp. CLOSED TREE 2019-04-09 17:11:28 +03:00
Paul Zuehlcke
3badc9750a Bug 1492668 - Store temporary site permissions by base domain to mitigate permission notification spam r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26704

--HG--
extra : moz-landing-system : lando
2019-04-09 12:56:47 +00:00
Andrea Marchesini
d89d469dba Bug 1532948 - Sanitize principal on shutdown should behave like 'Manage cache and Site Data' cleanup, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D23825

--HG--
extra : moz-landing-system : lando
2019-04-05 10:35:54 +00:00
phoenixabhishek
b66ed5ba6f Bug 1521919 - SitePermissions.get should check for nsIURI. r=johannh
functions now throw an error if the uri parameter is not an nsIURI.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 05:40:23 +00:00
Johann Hofmann
9fb44dc7a9 Bug 1508961 - Show a notification icon after automatically dismissing permission prompts. r=MattN
This adds support for a "post-prompt" that appears dismissed (only the icon showing) when
the browser decides to automatically deny a permission request from a site (either based on
internal heuristics or because the user prefers not to receive permission prompts).

In order to move quickly and not overload the patch I have only implemented the post-prompting
for desktop-notification so far, however, implementing it for other permissions should be
a trivial follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 10:22:19 +00:00
Ed Lee
9eeafb725f Bug 1541502 - Add Pocket menu, triggering improvements and bug fixes to Activity Stream r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D25984

--HG--
rename : browser/components/newtab/locales-src/bn-BD/strings.properties => browser/components/newtab/locales-src/bn/strings.properties
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-noscripts.html => browser/components/newtab/prerendered/locales/bn/activity-stream-noscripts.html
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-prerendered-noscripts.html => browser/components/newtab/prerendered/locales/bn/activity-stream-prerendered-noscripts.html
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-prerendered.html => browser/components/newtab/prerendered/locales/bn/activity-stream-prerendered.html
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-strings.js => browser/components/newtab/prerendered/locales/bn/activity-stream-strings.js
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream.html => browser/components/newtab/prerendered/locales/bn/activity-stream.html
rename : browser/components/newtab/prerendered/locales/mai/activity-stream-noscripts.html => browser/components/newtab/prerendered/locales/trs/activity-stream-noscripts.html
rename : browser/components/newtab/prerendered/locales/mai/activity-stream.html => browser/components/newtab/prerendered/locales/trs/activity-stream.html
extra : moz-landing-system : lando
2019-04-04 14:32:55 +00:00
Jan-Erik Rediger
6bc73bc6a2 Bug 1529696 - Rename DATASET_RELEASE_CHANNEL_OPTOUT/OPTIN to DATASET_ALL/PRERELEASE_CHANNELS everywhere r=chutten
Depends on D25934

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:12:11 +00:00
Gijs Kruitbosch
7a09de96f9 Bug 1539757 - fix trying to initialize XBL bindings while the prompt is still hidden, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D25390

--HG--
extra : moz-landing-system : lando
2019-04-01 13:37:49 +00:00
Andrea Marchesini
61e44c6220 Bug 1524200 - Add more debugging message to Sanitizer.jsm, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D25289

--HG--
extra : moz-landing-system : lando
2019-04-01 13:46:56 +00:00
Johann Hofmann
8885eb3fe6 Bug 1540088 - Require user interaction for push notification permission prompts in Nightly. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D25418

--HG--
extra : moz-landing-system : lando
2019-03-29 18:08:20 +00:00
Ciure Andrei
73e7b60fc2 Backed out changeset de24b08ddc37 (bug 1539757) for causing browser_hidden_document_autofill.js, browser_httpauth.js, test_bug_627616.html to permafail CLOSED TREE
--HG--
extra : histedit_source : 12f30c6ab7c094c787618b62090e221815ff8439
2019-03-30 03:13:58 +02:00
Gijs Kruitbosch
4ffc2ff028 Bug 1539757 - fix trying to initialize XBL bindings while the prompt is still hidden, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D25390

--HG--
extra : moz-landing-system : lando
2019-03-29 23:11:37 +00:00
Erica Wright
fccf274cc5 Bug 1524883 - Clear storageAccessAPI permissions when history is cleared. r=johannh,Ehsan
When history is cleared, clear the flag that indicates a user has visited the domain.

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

--HG--
extra : moz-landing-system : lando
2019-03-28 18:44:08 +00:00