Commit Graph

850 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
c9c84e3b6a Merge mozilla-central to mozilla-inbound 2017-05-30 11:53:26 +02:00
Emilio Cobos Álvarez
fa730cc3b0 Bug 1357583: Add an API to get the restyle generation from the pres context. r=heycam
MozReview-Commit-ID: b7j0CpPimC
2017-05-29 23:53:25 +02:00
Christoph Kerschbaumer
3fc12a8c6e Bug 1363977 - Have loadTabs() provide the correct triggeringPrincipal. r=gijs,smaug 2017-05-29 21:32:21 +02:00
Carsten "Tomcat" Book
bdfe9a25bf Backed out changeset 2b92af4575ae (bug 1357386) 2017-05-30 08:51:22 +02:00
Christoph Kerschbaumer
74a7c96cd0 Bug 1357386: Have loadTabs() provide the correct triggeringPrincipal. r=gijs,smaug 2017-05-30 08:31:08 +02:00
Andrea Marchesini
83c815ee45 Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau 2017-05-11 07:26:08 +02:00
Iris Hsiao
3f0892a7f5 Backed out changeset c56bd0d1e7c9 (bug 1363429) for build bustage, using-declaration causes a multiple declaration of 'nsIDocument::GetLocation' 2017-05-11 13:55:40 +08:00
Andrea Marchesini
e78b251ef5 Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau 2017-05-11 07:26:08 +02:00
Andrea Marchesini
b2a60fa8f2 Bug 1363057 - Make nsIDOMLocation an empty interface, r=mystor 2017-05-08 20:24:13 +02:00
Wes Kocher
b4f8e99036 Backed out changeset 267ad90533e8 (bug 1363057) for Windows build bustage in nsNativeAppSupportWin.cpp a=backout CLOSED TREE
MozReview-Commit-ID: EFB4DatkNB3
2017-05-08 11:14:21 -07:00
Andrea Marchesini
e3a7dcd168 Bug 1363057 - Make nsIDOMLocation an empty interface, r=mystor 2017-05-08 19:43:55 +02:00
Andrea Marchesini
a67a0a31e8 Bug 1362003 - nsGlobalWindow::GetLocation doesn't need to receive an ErrorResult param, r=bz
Renaming nsGlobalWindow::GetLocation() to Location().
2017-05-08 15:49:31 +02:00
Tim Taubert
1eae0fcd88 Bug 1361974 - Add nsIDOMWindowUtils API to check usage of a given storage r=mayhemer 2017-05-04 14:29:36 +02:00
Mike Conley
cf1d141d21 Bug 1336763 - Add a hasBeforeUnload attribute to nsITabParent. r=Ehsan
This will return true if any of the frames loaded in the associated
TabChild have set at least one onbeforeunload event handler. If those
handlers are all removed, or all of the documents with onbeforeunload
event handlers are unloaded, this becomes false again.

Note that subframes that are sandboxed without the allow-modals
permission will not affect the hasBeforeUnload attribute, since
those iframes should never cause the beforeunload confirmation
dialog to display.

MozReview-Commit-ID: 8b0gBYWwMDn

--HG--
extra : rebase_source : 69f3b692d6e73f6277e6982aad02bcd1ebdd8acf
2017-04-13 17:54:07 -04:00
Ehsan Akhgari
6399dc4d9a Bug 1356922 - Part 1: Replace the next TabParent global pointer with per-window/tab next TabParent ID; r=billm,mconley
This patch replaces the usage of sNextTabParent pointer to store the next
PBrowser parent actor to be used by the next frame loader with the
following information:

  * In the case where the content JS has requested a new tab, the ID of the
    next TabParent will be stored on the <xul:browser> element.
  * In the case where the content JS has requested a new window, the ID of
    the next TabParent will be stored on the created nsXULWindow.
2017-04-24 14:18:29 -04:00
Carsten "Tomcat" Book
975e251aff merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
Masayuki Nakano
3d8bbc6723 Bug 1217700 part.3 Expose text change, selection change and position change notifications to nsITextInputProcessorCallback with nsITextInputProcessorNotification r=smaug
For testing IMEContentObserver, text change, selection change and position change notifications should be exposed to JS with nsITextInputProcessorNotification.

MozReview-Commit-ID: 3PUhKXRwnAn

--HG--
extra : rebase_source : fce7a73683a2d4811070453629ef48d3ad15c8c8
2017-04-20 20:17:03 +09:00
Randall Barker
a606cd8b60 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
Daisuke Akatsuka
088af889f0 Bug 1210796 - Part 1a: Add GetUnanimatedComputedStyle into nsIDOMWindowUtils to use in animationinspector of devtools. r=birtles,heycam
In this patch, we implement nsIDOMWindowUtils::GetUnanimatedComputedStyle
which returns computed value of given CSS property without animation rule.  This
method is used from the DevTools animation inspector to fill in keyframe values
when the property value is null (indicating that the underlying/base value is
being used).

In order to implement this, we extend nsComputedDOMStyle constructor to fetch
the computed style minus animation style (i.e. the base style). This is somewhat
complicated by the fact that for discrete animation.
StyleAnimationValue::ExtractComputedValue may return ‘unset’, ‘initial’ or
‘inherit’. For example, if the author uses the 'unset' 'initial' or 'inherit'
keyword for a discrete property (e.g. 'align-content’), ExtractComputedValue
returns the keywords as-is. Furthermore, if the user does not set any specific
keyword, ExtractComputedValue returns ‘unset’.  We use this new
nsComputedDOMStyle mechanism to resolve these keywords into a valid keyword for
computed style in the same way as other properties (e.g. ‘opacity’).

MozReview-Commit-ID: HffJ9SCDf2k

--HG--
extra : rebase_source : 64df3850b862dada5f8e0767d47dc478d454ba31
2017-04-18 12:15:47 +09:00
Daisuke Akatsuka
da3730147e Bug 1210796 - Part 1: Add GetAnimationTypeForLonghand into nsIDOMWindowUtils to use in animationinspector of devtools. r=hiro
MozReview-Commit-ID: 5uxQr4hH0WP

--HG--
extra : rebase_source : 475794a9ca872990485b4309749853547288feb7
2017-04-18 11:12:12 +09:00
Tom Tung
1cf8eeb4eb Bug 1251238 - Part 3: Add timestamps to track when a service worker is installed/activated/redundant and when a service worker's registration is updated. r=bkelly
--HG--
extra : rebase_source : ed40ae346a1db5ae40c3baafde25259dc7c56816
2017-04-06 15:26:08 +08:00
Ehsan Akhgari
3b93e5ad89 Bug 1354412 - Remove nsIDOMWindowUtils.beginTabSwitch(); r=jrmuizel 2017-04-12 23:31:39 -04:00
Gabor Krizsanits
a01e65bce7 Bug 1346288 - Block e10s-multi if e10sMultiBlockedByAddons is set. r=mrbkap 2017-03-30 18:44:20 +02:00
Michael Layzell
838290fd27 Bug 1337056 - Part 12: Send down permissions when calling createAboutBlankContentViewer, r=baku
MozReview-Commit-ID: LigZnHM34CC
2017-03-21 11:08:03 -04:00
Mike Conley
3d3a3dce25 Bug 1342464 - Collect Telemetry on when a tab switch spinner is shown. r=billm,liuche, data-review=liuche
MozReview-Commit-ID: 1Ss2f9A2JtK

--HG--
extra : rebase_source : 8f71db7ec0796e7ed8828a7e297cf8c24ca91a0e
2017-03-04 14:19:22 -05:00
Gabor Krizsanits
ec68ced873 Bug 1333799: MinTabSelector for process selection. r=mrbkap 2017-03-07 20:00:28 +01:00
Cameron McCormack
c7acd67123 Bug 1341230 - Part 3: Add nsIDOMWindowUtils API to add/remove manually managed EventStates bits. r=smaug
MozReview-Commit-ID: 8brJct2tkTo

--HG--
extra : rebase_source : f532dde551e347deae7b9f5a4d678658c5dc0c70
2017-03-06 12:49:04 +08:00
Iris Hsiao
cae85a0f8a Backed out changeset 0a4869ea6249 (bug 1341230) for build bustages 2017-03-06 11:48:44 +08:00
Cameron McCormack
539c85b4ec Bug 1341230 - Part 3: Add nsIDOMWindowUtils API to add/remove manually managed EventStates bits. r=smaug
MozReview-Commit-ID: 8brJct2tkTo

--HG--
extra : rebase_source : 6a9aae7f63992a74620126bf626963b3dcc00e41
2017-03-06 10:44:14 +08:00
Andrea Marchesini
4d21d3a57a Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-03-03 09:42:54 +01:00
Joel Maher
f297f17181 Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt
MozReview-Commit-ID: 2HbPxGkrVfv
2017-03-01 08:20:25 -05:00
Blake Kaplan
9fb1ff597d Bug 1334716 - Make process selection a service and implementable in JS. r=krizsa
MozReview-Commit-ID: CViRvZB8nKe
2017-02-27 16:09:06 -08:00
Matt Woodrow
ffb093db42 Bug 1302071 - Part 2: Remove ClearMozAfterPaintEvents since it's unused. r=tnikkel
MozReview-Commit-ID: FCy5y6cDXrY

--HG--
extra : rebase_source : d448b672baa702fe66d4eed229663a4b51ab95b1
2017-02-17 11:50:28 +13:00
J. Ryan Stinnett
32d643c588 Bug 1335281 - Use frame loader for same process browsers. r=mrbkap
This changes the `relatedBrowser` property which held a <xul:browser> to the
more explicit `sameProcessAsFrameLoader` which takes an nsIFrameLoader.

This clarifies the purpose of the property and also (by switching to the frame
loader) makes it easier to set in some contexts.

MozReview-Commit-ID: LnEvSP8zkto

--HG--
extra : rebase_source : f9f4c07995ef39f1ccd5042e9ae3df37879423b6
2017-02-14 14:12:35 -06:00
Catalin Badea
1609baa123 Bug 1328293 - Show if a service worker is listening for fetch events in about:debugging. r=jdescottes 2017-01-22 09:03:00 +02:00
Ho-Pang Hsu
011108b52a Bug 1290944 - Part 2.3: Set the load flags when registering a service worker. r=bkelly
--HG--
extra : rebase_source : e9aa5dcd79d696dd097fbe88775ba4a5be74d462
extra : histedit_source : 289384bf6f96ddd998828e1c365b3f7256e4f7f8
2017-01-04 17:08:51 +08:00
Cameron McCormack
d7971f4aa5 Bug 1328546 - stylo: Support ServoStyleSheets in nsIStyleSheetService::PreloadSheet and nsIDOMWindowUtils::AddSheet. r=bholley
MozReview-Commit-ID: 2KOMrnCf1Ag
2017-01-05 15:32:22 +08:00
Ho-Pang
7bc745d410 Bug 1299209 - Part 2: Support setting pointerId in nsDOMWindowwUtils and nsContentUtils. f=sshih, r=smaug
--HG--
extra : rebase_source : 46affaf510908e28ad47df2e088574d33aa52be3
2016-12-20 23:06:00 -05:00
Boris Zbarsky
224a0a59a6 Bug 1325016 part 1. Remove some unused nsIDOMScreen functions. r=bkelly 2016-12-22 11:05:54 -08:00
Ehsan Akhgari
35e93a7bdf Bug 1312514 - Part 3: Add a test to ensure that timeouts from tracking scripts end up in the tracking bucket; r=bkelly
For simplicity, this test is being added to test_classifier.html which
already has all of the infrastructure necessary for setting up a test
domain as a tracking domain.
2016-12-20 12:40:30 -05:00
Ho-Pang Hsu
e39cc0d995 Bug 1302297 - Part 2: Introduce mouse and touch event helpers. f=stone, r=smaug 2016-12-09 03:38:00 +01:00
Michael Layzell
faee358314 Bug 1310771 - Part 1: Add an aFlags argument to nsIBrowser::SwapBrowsers, r=mconley
This adds a single flag, SWAP_KEEP_PERMANENT_KEY, which tells the
browser that when it performs the swap, the permanent key should stick
with the browser, rather than following the frameLoader.

This patch also adds the implementation of tabbrowser.swapBrowsers,
which was previously absent, despite being referenced.

MozReview-Commit-ID: CLwJYzpY8Pp
2016-11-18 16:00:43 -05:00
Sotaro Ikeda
92926a0f41 Bug 1317656 - Cleanup more gonk/b2g dependent code r=nical 2016-11-15 22:01:30 -08:00
Boris Zbarsky
9fa05c9f15 Bug 1317591. Get rid of IsCallerChrome usage in Navigator. r=bkelly
This restores the throwing behavior for .userAgent/appVersion/platform that was
incorrectly removed in bug 925847.
2016-11-15 17:44:43 -05:00
George Wright
51a59d1d02 Bug 1314426 - Add a method to nsIDOMWindowUtils to terminate the GPU process and get the GPU process pid r=smaug,dvander 2016-11-07 14:22:48 -05:00
Phil Ringnalda
b6eec64324 Merge m-c to a CLOSED TREE m-i
MozReview-Commit-ID: 2JxLeQ8GYIX
2016-10-27 20:36:38 -07:00
Michael Layzell
de29c95ed2 Bug 1303196 - Part 7: Updates to apply correctly after noopener changes, r=smaug
MozReview-Commit-ID: 25Ew2PLpP5c
2016-10-27 15:53:35 -04:00
Michael Layzell
f9eea2d135 Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug
MozReview-Commit-ID: 3rZfLw3dXkF
2016-10-27 15:53:35 -04:00
Julian Descottes
9ee4ee975c Bug 1153292 - part3: aboutdebugging: expose sw state from registration, notify listeners on statechange;r=bkelly
As it turns out, the workaround used to detect "not activated" service worker registrations works only
in e10s pages. In non e10s, service worker registrations are returned even if they are not in activated
state. Here we add the currently associated worker to the registration info, which will be used
to determine if the service worker is activated by about debugging.

MozReview-Commit-ID: ImeZcXQdBtO

--HG--
extra : rebase_source : f7e023708f8954b978b189025fd0b06c587d6a8e
2016-09-15 14:47:15 +02:00
James Willcox
c6292bac48 Bug 1278581 - Add 'millisSinceLastUserInput' to nsIDOMWindowUtils r=smaug 2016-09-29 08:27:54 -05:00