Commit Graph

52309 Commits

Author SHA1 Message Date
Ciure Andrei
97ae4101ac Backed out 4 changesets (bug 1507769, bug 1505571) for browser_storageAccessWithHeuristics.js failures CLOSED TREE
Backed out changeset 401763b97e54 (bug 1507769)
Backed out changeset 838dfe679fdd (bug 1505571)
Backed out changeset 88af3329ee16 (bug 1505571)
Backed out changeset be17a8b7aefa (bug 1505571)
2018-11-19 22:06:24 +02:00
Andrea Marchesini
7fd5fc4b5c Bug 1507769 - User-interaction required before granting storage access for some 3rd party trackers, r=ehsan
We want to introduce a new pref to block trackers that try to workaround our
heuristic. The pref is called:
privacy.restrict3rdpartystorage.userInteractionRequiredForHosts
2018-11-19 19:16:25 +01:00
Andrea Marchesini
f8679dfb52 Bug 1505571 - Store access-storage permissions in the top-level window too, r=ehsan
This is needed for any storage access request, coming synchronously after the
setting of the permission.
2018-11-19 19:16:24 +01:00
Andrea Marchesini
82ea8de217 Bug 1505571 - Tests of localStorage access immediatelly after a user-interaction, r=ehsan 2018-11-19 19:16:24 +01:00
Andrea Marchesini
38449f1226 Bug 1505571 - Don't chcek user-interaction permission when the operation starts from user-interaction, r=ehsan
The permission has been just set, but the content process haven't received it
back from the parent process.
2018-11-19 19:16:24 +01:00
Brindusan Cristian
e065b38e0a Merge inbound to mozilla-central. a=merge 2018-11-18 13:06:19 +02:00
Timothy Guan-tin Chien
a685c05ea5 Bug 1504343 - Convert xbl-marquee to UA Widget r=bgrins,bzbarsky
This patch moves the marquee bindings from xbl-marquee.xml to marquee.js and converts them to a UA Widget.

The contenteditable bindings are dropped, replaced with a styling rule that will fix the position of the scrolling text.

Inline styles have been moved to the stylesheet so usage of display: -moz-box can continue to be parsed.

test_bug840098.html is deleted because it is only valid under the context of in-content XBL bindings.

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

--HG--
rename : layout/style/xbl-marquee/xbl-marquee.css => toolkit/content/widgets/marquee.css
rename : layout/style/xbl-marquee/xbl-marquee.xml => toolkit/content/widgets/marquee.js
extra : moz-landing-system : lando
2018-11-18 01:23:52 +00:00
Andreea Pavel
72b0594cb8 Merge mozilla-inbound to mozilla-central. a=merge 2018-11-17 13:27:24 +02:00
Ciure Andrei
52f5cabbdf Backed out changeset 85963f594697 (bug 1504343) for HTMLMarqueeElement.cpp build bustages CLOSED TREE 2018-11-17 10:43:14 +02:00
Timothy Guan-tin Chien
451f3371c4 Bug 1504343 - Convert xbl-marquee to UA Widget r=bgrins,bzbarsky
This patch moves the marquee bindings from xbl-marquee.xml to marquee.js and converts them to a UA Widget.

The contenteditable bindings are dropped, replaced with a styling rule that will fix the position of the scrolling text.

Inline styles have been moved to the stylesheet so usage of display: -moz-box can continue to be parsed.

test_bug840098.html is deleted because it is only valid under the context of in-content XBL bindings.

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

--HG--
rename : layout/style/xbl-marquee/xbl-marquee.css => toolkit/content/widgets/marquee.css
rename : layout/style/xbl-marquee/xbl-marquee.xml => toolkit/content/widgets/marquee.js
extra : moz-landing-system : lando
2018-11-17 06:29:41 +00:00
James Teh
9e968bb929 Bug 1506787: Support tabindex attribute (including value -1) on non-control XUL elements. r=smaug
Previously, the tabindex attribute wasn't supported on non-control XUL elements at all.
The only way to make those focusable was to use -moz-user-focus: normal.
However, that caused the element to be included in the tab order; there was no way to make it focusable but not tabbable.
This can now be achieved using tabindex="-1".
This will primarily be useful for buttons on toolbars, which will be grouped under a single tab stop for efficiency.

For consistency, this also changes the behaviour of tabindex="-1" with -moz-user-focus: ignore on XUL controls.
Previously, -moz-user-focus: ignore would override tabindex="-1", making the element unfocusable.
Now, the tabindex attribute always overrides if explicitly specified.

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

--HG--
extra : moz-landing-system : lando
2018-11-17 02:38:27 +00:00
Nika Layzell
d2f648498e Bug 1477432 - Part 8: Remove test-only Components.classesById and Components.interfacesById, r=mccr8
These two interfaces are effectively never used, so to avoid needing to support
ClassID2JSValue with the new implementation, I remove them entirely.

Differential Revision: https://phabricator.services.mozilla.com/D2285
2018-11-16 17:27:42 -05:00
Nika Layzell
fe2f2478f7 Bug 1477432 - Part 2: Avoid using nsIJSID in GenerateQI, and produce better diagnostics, r=kmag
This is the first part of hiding the implementation of nsIJSID behind the
interface added in Part 1, such that we can substitute that implementation out.

I had to make a couple of changes to fix the errors caused by the new behaviour
in GenerateQI.

Differential Revision: https://phabricator.services.mozilla.com/D2279
2018-11-16 17:27:31 -05:00
Gabriele Svelto
70a27fb574 Bug 1497669 - Relax breakpad's constraints when merging module mappings on Linux r=ted
This makes a few small but significant changes to the logic breakpad uses to
merge module memory mappings:

- First of all we merge areas of reserved space if their offset is either 0 or
  the end of the previous non-reserved mapping.
- Whenever we encounter an executable mapping we flag all the merged modules
  as executable. This shouldn't happen but apparently some older Android
  linkers suffered from a bug that caused the first mapping not to be
  executable.
- Last but not least we record the raw end address of a module on Android.
  This shouldn't affect us but it's done in upstream breakpad so it probably
  doesn't hurt.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 22:43:32 +00:00
Ehsan Akhgari
d28e1c14c6 Bug 1507689 - Fix an intermittent failure condition in test_WebExtensionContentScript.js which is turned into a perma-failure with the patch in bug 1504728 r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D12093

--HG--
extra : moz-landing-system : lando
2018-11-16 21:42:02 +00:00
Cosmin Sabou
8b0d7e9861 Merge mozilla-central to autoland. a=merge
--HG--
extra : rebase_source : d2d1fef29703d48d14b7ceac0ffa9ee0e5a0a007
2018-11-16 23:57:57 +02:00
Gurzau Raul
2fa7618d3f Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-16 19:55:39 +02:00
Gurzau Raul
0e822b012b Merge inbound to mozilla-central. a=merge 2018-11-16 19:08:39 +02:00
Nathan Froyd
2d4164f33f Bug 1506138 - fix minidump_callback.h for aarch64 windows; r=ted.mielczarek 2018-11-16 10:49:13 -05:00
Emilio Cobos Álvarez
f02afb1e95 Bug 1450219 - Make sure not to lose track of focus when we rebuild the inner fields. r=Gijs
Removing the inner field while focused nulls out the active element, without a
blur event of course, so this means that we left the :focus state in the input
set incorrectly, plus that we actually lost focus.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 12:01:10 +00:00
Cosmin Sabou
4df488e5fa Backed out changeset 962527f12004 (bug 1504751) for browser chrome failures on content/aboutNetworking.js 2018-11-16 23:25:55 +02:00
Mike Hommey
5f97599636 Bug 1507644 - Always enable wayland for artifact builds. r=chmanchester
Ideally, artifact builds would figure out the relevant buildconfig items
that are set in the artifacts they download, such as MOZ_WAYLAND,
MOZ_UPDATER, etc.

In the meanwhile, since artifacts that are being downloaded have wayland
support, we always set MOZ_WAYLAND when doing artifact builds.

Depends on D12074

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

--HG--
extra : moz-landing-system : lando
2018-11-16 21:20:19 +00:00
Drew Willcoxon
b8258389b8 Bug 1499193 - Follow-up 2: Update SEARCH_COUNTS key r=mkaply
Change the `<engine>.<alias>.urlbar` `SEARCH_COUNTS` keys to `<engine>.alias` as described in bug 1499193 comment 23 and later.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 21:15:54 +00:00
Bogdan Tara
df744acb24 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-16 11:50:21 +02:00
Bogdan Tara
647b9eb109 Merge inbound to mozilla-central. a=merge 2018-11-16 11:47:51 +02:00
Lina Cambridge
294b5d1a9b Bug 1496878 - Ensure the bookmark merger flags newer locally moved children for reupload. r=tcsc
This commit:

* Changes the merger to flag locally moved children for reupload, along
  with their parents, if the local move is newer.
* Replaces `valueState` and `structureState` in the merge states table
  with simpler flags. Rows with `useRemote` need to be updated in
  Places; rows with `shouldUpload` need change counter bumps.
* `itemsToMerge` now accounts for local-only items with a `LEFT JOIN`.
* Uses `shouldUpload` from the merged tree to set the change counters
  for all items, instead of relying on existing values and the
  `flagNewStructure` trigger to handle items with new structure.
* Fixes keyword reuploading to handle the above, and match the
  non-mirror behavior.
* Removes `structureCounts.new` from telemetry. Any merge with items
  added to the same folder on both sides will count as new structure,
  so it's not especially interesting.

MozReview-Commit-ID: EktIBQN9FSY

Depends on D11119

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

--HG--
extra : moz-landing-system : lando
2018-11-16 01:19:49 +00:00
Lina Cambridge
5e2ff90bf6 Bug 1505191 - Ensure Bookmarks.reorder bumps the last modified time. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D11119

--HG--
extra : moz-landing-system : lando
2018-11-16 01:00:08 +00:00
Gabriele Svelto
86d8798959 Bug 1502284 - Extend nsMaybeWeakPtr and make expose it to the rest of the code r=erahm
This adds a way to detect if an instance is holding a weak reference or a
strong one, makes non-critical failures less chatty and adds separate methods
for adding unique and non-unique instances to an array.

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

--HG--
rename : toolkit/components/places/nsMaybeWeakPtr.h => xpcom/base/nsMaybeWeakPtr.h
extra : moz-landing-system : lando
2018-11-16 09:39:36 +00:00
Mike Hommey
3be08370e4 Bug 1507640 - Remove about:support "Show update history" button when the updater is disabled. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D12072

--HG--
extra : moz-landing-system : lando
2018-11-16 00:08:37 +00:00
Narcis Beleuzu
c8215609ff Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE
Backed out changeset 26318538f077 (bug 1505198)
Backed out changeset fc39602006be (bug 1504728)
2018-11-16 02:34:15 +02:00
Matt Woodrow
f1ac2eb3c8 Bug 1503405 - Add telemetry for CONTENT_FRAME_WITH with texture upload excluded. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D11971

--HG--
extra : moz-landing-system : lando
2018-11-15 23:09:05 +00:00
Narcis Beleuzu
944d8914d9 Backed out changeset 17d1440b76b1 (bug 1505858) for bustages on WebRenderBridgeParent.cpp 2018-11-16 01:29:00 +02:00
Jeff Muizelaar
7a069dd660 Bug 1505858. Record full paint time before waiting for composite in telemetry. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D11953

--HG--
extra : moz-landing-system : lando
2018-11-15 16:43:55 +00:00
Csoregi Natalia
c9b70719c8 Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +02:00
Margareta Eliza Balazs
d5555d2998 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02:00
Dimi Lee
683630c36f Bug 1506788 - Add pyd and pyo binary extensions to download protection. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D11750

--HG--
extra : moz-landing-system : lando
2018-11-15 10:17:35 +00:00
arthur.iakab
82802a8287 Merge mozilla-central to autoland 2018-11-15 11:55:43 +02:00
arthur.iakab
c0b26c4076 Merge inbound to mozilla-central a=merge 2018-11-15 11:54:15 +02:00
Timothy Guan-tin Chien
2b5881e46b Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 06:51:07 +00:00
Timothy Guan-tin Chien
2400b2758e Bug 1505957 - Recover from failed UA Widget construction and destruction r=bgrins
This patch modifies UAWidgetsChild so that when the call into the UA Widget
script throws, it could correctly clean up the Shadow DOM, to avoid leaving
the DOM in a half-broken state.

This is needed because of bug 1506300 will cause the constructor of the videocontrols
UA Widget to throw, in our specific test case.

This exception also happens when the videocontrols XBL binding initializes,
but the way the XBL service calls into the XBL binding allow it to reach a usable
but a half-broken state, while our current approach will cause the UA Widget DOM
to be inserted twice, and layout to assert.

The new clean-up approach here will make UA Widget completely absent when the
constructor throws until the cause of the exception is fixed.

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

--HG--
extra : moz-landing-system : lando
2018-11-14 23:08:41 +00:00
Dietrich Ayala
08ccbff33e Bug 1477433 - Enable use-counters on release channel (r=chutten)
Enable use-counters on release channel

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

--HG--
extra : moz-landing-system : lando
2018-11-15 08:39:13 +00:00
Brian Hackett
61ec0ba621 Bug 1505935 Part 6 - Fetch the longest piece of content for a given URL, r=lsmyth.
--HG--
extra : rebase_source : 76ba421123068f0a64e9c757a4e639f0f62a78d1
extra : histedit_source : add608e01229cfb65b8f9020da02be276e7d313b
2018-11-10 15:29:11 -10:00
Brian Hackett
50984dfb8d Bug 1505935 Part 3 - Add pref allowing system scripts to be exposed to the debugger, r=lsmyth.
--HG--
extra : rebase_source : f72f744032efe8bb9fcc71b73b2a7955c597fbb0
2018-11-10 15:27:54 -10:00
Brian Hackett
ac59317930 Bug 1505935 Part 2 - Expose scripts to the debugger which have their progress counters updated, r=lsmyth.
--HG--
extra : rebase_source : a0b56d14b578e5b26b8a89e943815245c02b4ed8
2018-11-10 15:27:14 -10:00
Brian Hackett
7a2f689e55 Bug 1506405 - Check integrity of recording files, r=lsmyth.
--HG--
extra : rebase_source : adbf98a05f74788d08cffc463afff40d2ca475c8
2018-11-10 12:32:30 -10:00
alwu
c084141553 Bug 1493766 - part3 : modify test. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D7017

--HG--
extra : moz-landing-system : lando
2018-11-14 01:32:26 +00:00
alwu
dab4434860 Bug 1493766 - part2 : save the status of temporary autoplay permission in outer window. r=johannh,smaug
In order to know whether we have temporary autoplay permission without creating a request, we need to
cache its state in the outer window so that we can get the correct returned value for AutoplayPolicy::IsAllowedToPlay().

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

--HG--
extra : moz-landing-system : lando
2018-11-16 18:27:00 +00:00
alwu
4515d99b29 Bug 1493766 - part1 : notify when temporary permission changed. r=johannh
Since temporary permissions are only stored in the front-end side, we can't know whether we have
allowed page to autoplay or not without sending a request. Therefore, we want to notify the back-end
side when the temporary permissions changed.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 19:51:26 +00:00
Collin Wing
26d02f4f16 Bug 1504751 Migrate about:networking to Fluent r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D10977

--HG--
extra : moz-landing-system : lando
2018-11-16 18:01:08 +00:00
Brian Grinstead
de723eccb2 Bug 1500424 - Remove customizable ui toolbar-drag binding;r=Gijs
It was almost identical to the toolkit version, only missing a [customizing=true]
check to prevent drag. Since Customization only happens in browser/ we are able
to replace the toolkit version with the CUI version, and then remove the CUI version.

The `#toolbar-menubar:not([autohide="true"])` selector will fall back to the
`toolbar[type="menubar"]` selector in global.css to apply the toolkit one, so
that is removed from browser.css.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 17:50:04 +00:00