Commit Graph

268 Commits

Author SHA1 Message Date
Xidorn Quan
05457cb75d Bug 1187801 part 3 - Add iframe fullscreen flag and stop auto-rollback when this flag presents. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
4107d0c383 Bug 1187801 part 2 - Put clearing fullscreen state on element into an independent function. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
ffb87f6427 Bug 1187801 part 1 - Rewrite nsDocument::RestorePreviousFullScreenState() to unify logic of reverting element in parent document. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
278fd74c67 Bug 1126230 part 6 - Add nsIDocument::GetFullscreenStack() method. r=smaug 2015-10-07 14:04:32 +11:00
Nicholas Nethercote
a3789f553d Bug 1209351 (part 2) - Optimize nsTHashTable::RemoveEntry() usage in dom/. r=bz. 2015-09-24 19:05:16 -07:00
Kartikaya Gupta
6bd94506f0 Bug 1208023 - Avoid using a bad initial-scale when computing the CSS viewport. r=botond 2015-10-02 23:08:23 -04:00
Botond Ballo
6f5d9f43e2 Bug 1205511 - Use nsPresContext::DevToCSSPixelScale() where appropriate. r=kats 2015-09-28 20:14:26 -04:00
Nigel Babu
4e04894b0f Backed out 9 changesets (bug 1126230) for Mulet Gij(25) and M(5) failures
Backed out changeset 8a9d8a556183 (bug 1126230)
Backed out changeset 441b55f015c2 (bug 1126230)
Backed out changeset 7bfa2a2d4e29 (bug 1126230)
Backed out changeset b55511536c65 (bug 1126230)
Backed out changeset ada76e419aac (bug 1126230)
Backed out changeset 745d659bef49 (bug 1126230)
Backed out changeset 7c303cc4c30b (bug 1126230)
Backed out changeset 8bf708acbad4 (bug 1126230)
Backed out changeset 590404aac357 (bug 1126230)
2015-10-02 13:39:20 +05:30
Xidorn Quan
7711bef764 Bug 1126230 part 5 - Add nsIDocument::GetFullscreenStack() method. r=smaug 2015-10-02 16:34:09 +10:00
Kartikaya Gupta
93587b825c Bug 1202713 - Fix the CSS viewport dimensions for desktop mode. r=snorp
The CSS viewport computation for desktop mode was incorrect. The end result was
that the right amount of CSS pixels was visible on the screen, but the layout
properties were incorrect (so elements that were width:100% would use a different
width than intended). This caused content to be truncated and otherwise
mis-rendered in desktop mode.
2015-10-01 11:48:22 -04:00
Xidorn Quan
85acde1780 Bug 1201798 part 2 - Update viewport scrollbar override for fullscreen and remove the leagcy css rule. r=roc 2015-09-30 10:48:41 +10:00
Gijs Kruitbosch
de9040cc06 Bug 636905 - part 1: add a flag that tracks whether the user has interacted with a given document, r=smaug 2015-09-26 14:54:29 +01:00
Masatoshi Kimura
7ebbf10635 Bug 647621 - Implement document.charset and update document.inputEncoding to the latest spec. r=bz 2015-09-23 09:32:29 +09:00
Christoph Kerschbaumer
ad12815962 Bug 1048048 - add preload content policy types for images (r=seth) 2015-09-20 14:55:59 -07:00
Christoph Kerschbaumer
dad4927d12 Bug 1048048 - add preload content policy types for stylesheets (r=cam) 2015-09-20 14:56:10 -07:00
Wes Kocher
977486c724 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
8a5d00f976 Bug 1048048 - add preload content policy types for stylesheets (r=cam) 2015-09-20 14:56:10 -07:00
Christoph Kerschbaumer
4288181182 Bug 1048048 - add preload content policy types for images (r=seth) 2015-09-20 14:55:59 -07:00
Boris Zbarsky
02aa90f994 Bug 1205364 part 1. Make createAttribute in an HTML document lowercase the passed-in attribute name. r=smaug 2015-09-18 13:36:24 -04:00
Nathan Froyd
5c848f4109 Bug 1204994 - part 2 - rename all USE_COUNTER_* histograms to USE_COUNTER2_* histograms; r=bz,vladan
We're changing the definition of each of the use counter histograms.
Therefore, they need new names, so as to not throw wrenches into the
server-side machinery.  This renaming is the most straightforward way to
do things and similar to how we have renamed other histograms before.
2015-09-15 20:44:37 -04:00
Nathan Froyd
e9460276e1 Bug 1204994 - part 1 - add *CONTENT_DOCUMENTS_DESTROYED histograms; r=bz,vladan
These histograms will be used in conjunction with the revised use
counter histograms to ascertain the number of pages that don't use
particular features.  The associated comment in nsDocument.cpp explains
how things work.
2015-09-15 20:27:59 -04:00
Nathan Froyd
a83e95210f Bug 1204994 - part 0 - separate debugging use counters check from value check; r=bz
This change is only here to make future changes more obvious.  It is a
no-op on its own: just adding a block and shifting whitespace around.
2015-09-15 20:20:44 -04:00
Xidorn Quan
c7a55c145e Bug 1204149 - Fix entering DOM fullscreen in fullscreen mode for e10s. r=smaug 2015-09-18 09:33:54 +08:00
William Chen
8e8ae79997 Bug 1176829 follow-up, finish removing unused member to fix bustage. CLOSED TREE 2015-09-17 15:25:24 -07:00
William Chen
0351948a6f Bug 1176829 - Remove custom elements base element queue. r=smaug 2015-09-17 14:49:00 -07:00
Brendan Dahl
3fe185be2e Bug 1202895 - Fix shift-reload check for setting up service worker. r=bkelly 2015-09-16 15:28:45 -07:00
Nicholas Nethercote
e7fadb1c11 Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)
2015-09-09 21:07:07 -07:00
Nathan Froyd
95e1026b8c Backout c5b25c30befc:b217dfd70e22 (bug 1204994) for browser-chrome oranges; r=me 2015-09-17 05:09:13 -04:00
Nathan Froyd
d5e2c2b5cf Bug 1204994 - part 2 - rename all USE_COUNTER_* histograms to USE_COUNTER2_* histograms; r=bz,vladan
We're changing the definition of each of the use counter histograms.
Therefore, they need new names, so as to not throw wrenches into the
server-side machinery.  This renaming is the most straightforward way to
do things and similar to how we have renamed other histograms before.
2015-09-15 20:44:37 -04:00
Nathan Froyd
86d433d87f Bug 1204994 - part 1 - add *CONTENT_DOCUMENTS_DESTROYED histograms; r=bz,vladan
These histograms will be used in conjunction with the revised use
counter histograms to ascertain the number of pages that don't use
particular features.  The associated comment in nsDocument.cpp explains
how things work.
2015-09-15 20:27:59 -04:00
Nathan Froyd
b642919bc1 Bug 1204994 - part 0 - separate debugging use counters check from value check; r=bz
This change is only here to make future changes more obvious.  It is a
no-op on its own: just adding a block and shifting whitespace around.
2015-09-15 20:20:44 -04:00
Nicholas Nethercote
f71059bd78 Bug 1121760 (part 6) - Move all remaining PL_DHash*() functions into PLDHashTable. r=poiru. 2015-09-14 14:23:47 -07:00
Nicholas Nethercote
4dafae0e81 Bug 1121760 (part 3) - Remove PL_DHashTableRemove(). r=poiru. 2015-09-14 14:23:24 -07:00
Nicholas Nethercote
6f753fbb80 Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru. 2015-09-14 14:23:12 -07:00
Nicholas Nethercote
e600d6de49 Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru. 2015-05-21 00:34:25 -07:00
Mihai Volmer
4e4c3a735c Bug 1024343: The document should not stop animations when it is being swapped. r=smaug 2015-08-21 17:23:14 -07:00
Phil Ringnalda
17e3761d9d Merge m-c to m-i 2015-09-11 22:04:40 -07:00
Phil Ringnalda
47a62b39dc Merge b-i to m-c, a=merge 2015-09-11 20:27:20 -07:00
Kartikaya Gupta
948b49d07a Bug 1200093 - Don't rely on finding the widget for a document in order to get the css-to-ld scale. r=botond 2015-09-11 15:12:29 -04:00
Boris Zbarsky
210368ce2f Bug 1191942. Make sure to not schedule requestAnimationFrame callbacks if animations are paused. r=roc 2015-09-11 21:59:43 -04:00
Nicholas Nethercote
87cb641549 Bug 1202526 (part 3) - Avoid PL_DHashTableRawRemove() in nsDocument. r=bz.
This assumes that it's safe to possibly shrink the table after the removal,
i.e. there are no surprising subtleties with how this table is managed.
2015-09-07 19:20:16 -07:00
Ehsan Akhgari
f407718d2e Bug 1201229 - Return an empty string for a header when an error occurs; r=dragana
This fixes nsIHttpChannel::GetRequestHeader() and
nsIHttpChannel::GetResponseHeader() to always empty out their string
argument even when they fail.  This prevents programming mistakes of
passing the same string object to multiple of these calls and using the
string value without checking the nsresult error code, since otherwise
the string value may be unchanged from a previous call.

Note that this doesn't affect JS consumers of these APIs since we only
empty out the string argument in case the method fails, which will be
translated to a JS exception, and the JS code will never get to see the
emptied string.
2015-09-08 20:08:35 -04:00
Masayuki Nakano
5fb0380080 Bug 895274 part.99 Rename NS_MUTATION_SUBTREEMODIFIED to eLegacySubtreeModified r=smaug 2015-09-07 23:55:51 +09:00
Wes Kocher
67f1a2cfde Merge inbound to central, a=merge 2015-09-03 12:20:40 -07:00
Wes Kocher
8700dcb6b5 Backed out 2 changesets (bug 1035091)
a=backout

Backed out changeset 1fc07bdd9aa8 (bug 1035091)
Backed out changeset f6e98029d1cb (bug 1035091)
2015-09-03 11:41:39 -07:00
Kartikaya Gupta
fc2f50551e Bug 1197824 - Remove the mAllowDoubleTapZoom field from nsViewportInfo as it is not needed. r=botond 2015-09-03 10:30:41 -04:00
Kartikaya Gupta
428ff70a50 Bug 1197824 - Support the browser.ui.zoom.force-user-scalable pref in the gecko zoom-constraints codepath. r=botond
The browser.ui.zoom.force-user-scalable pref can be modified by the user from
the Fennec settings screen, and allows them zoom pages despite the meta-viewport
tag that might otherwise restrict zooming. This effectively ignores the effect
of the user-scalable, minimum-scale, and maximum-scale meta-viewport tokens.
2015-09-03 10:30:41 -04:00
Kartikaya Gupta
ea34e9570d Bug 1197824 - Allow zooming in desktop mode. r=botond
This is a long-standing issue that has thus far never been exposed because
the values modified in this patch have not been used (desktop mode only exists
on Fennec, and Fennec does it's own computation for these values in browser.js).
However upcoming patches will change Fennec to use this, and so this issue needs
to be corrected.
2015-09-03 10:30:40 -04:00
Kartikaya Gupta
d37cefa620 Bug 1197824 - Remove unused state and normalize others. r=botond
In the case of DisplayWidthHeight viewports, setting the allowDoubleTapToZoom
flag to true is fine because the ZoomConstraintsClient code will flip it back
to false based on the width of the CSS viewport. Setting it to true in the
GetViewportInfo code allows us to maintain the invariant that the default value
of allowDoubleTapToZoom is the same as the initial value of allowZoom.
2015-09-03 10:30:40 -04:00
Zack Weinberg
50d9ee1776 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam 2015-09-02 13:52:49 -04:00